Quellcode durchsuchen

Merge branch 'feature/eta2.3.4_business_user' into debug

xyxie vor 3 Monaten
Ursprung
Commit
dd1f8c347b
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 3 1
      controllers/eta_business/eta_business.go
  2. 4 0
      models/eta_business/eta_business.go

+ 3 - 1
controllers/eta_business/eta_business.go

@@ -468,7 +468,8 @@ func (this *EtaBusinessController) Add() {
 		br.ErrMsg = "新增商家分类文档权限失败, Err: " + e.Error()
 		return
 	}
-
+	resp := new(eta_business.EtaBusinessAddResp)
+	resp.EtaBusinessId = businessItem.EtaBusinessId
 	// 操作日志
 	go func() {
 		recordOb := new(eta_business.EtaBusinessOperationRecord)
@@ -485,6 +486,7 @@ func (this *EtaBusinessController) Add() {
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "操作成功"
+	br.Data = resp
 }
 
 // Edit

+ 4 - 0
models/eta_business/eta_business.go

@@ -368,3 +368,7 @@ type EtaBusinessEditSignReq struct {
 type EtaBusinessRemoveSignReq struct {
 	EtaBusinessContractId int `description:"商家合约ID"`
 }
+
+type EtaBusinessAddResp struct {
+	EtaBusinessId int
+}