caipin 4 years ago
parent
commit
fe83cf3193
2 changed files with 10 additions and 1 deletions
  1. 2 0
      conf/project.go
  2. 8 1
      services/contract_service.go

+ 2 - 0
conf/project.go

@@ -41,5 +41,7 @@ var CookieSecret = "cm_login_account"
 // 是否需要启动全局计划任务服务
 var RunningCrontabService = false
 
+var MergeLocalRootDir = "/public/"
+
 // 分页-页数
 var PageSize = 10

+ 8 - 1
services/contract_service.go

@@ -2,7 +2,7 @@
  * @description: 合同数据相关操作
  * @Author: CP
  * @Date: 2020-10-27 11:28:24
- * @FilePath: \construction_management\services\contract_service.go
+ * @FilePath: \design_quantity\services\contract_service.go
  */
 package services
 
@@ -39,6 +39,8 @@ type ContractService interface {
 	SectionDelete(treeId int) error
 	MoveDepth(sectionData *viewmodels.TreeSectionContract) error
 	MoveSerial(sectionData *viewmodels.TreeSectionContract) error
+
+	SaveUpload(Location string, Filename string, id int) error
 }
 
 //返回service操作类
@@ -243,3 +245,8 @@ func (s *contractService) Add(contractData *viewmodels.Contracts, treeId int) er
 
 	return nil
 }
+
+// 保存上传文件
+func (s *contractService) SaveUpload(Location string, Filename string, id int) error {
+	return nil
+}