Ver Fonte

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

xyxie há 4 meses atrás
pai
commit
dd1f8c347b

+ 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
+}