diff --git a/app/hdl/institutional_management/public_platoon/hdl_basic.go b/app/hdl/institutional_management/public_platoon/hdl_basic.go index 08ad89f..f8cc63b 100644 --- a/app/hdl/institutional_management/public_platoon/hdl_basic.go +++ b/app/hdl/institutional_management/public_platoon/hdl_basic.go @@ -542,7 +542,7 @@ func AddCommunityDividends(c *gin.Context) { e.OutErr(c, e.ERR_DB_ORM, err1.Error()) return } - err2 := ruleSvc.AddCommunityDividends(db.Db, req.Nums, req.Name, *basic) + err2 := ruleSvc.AddCommunityDividends(db.Db, req.Amount, req.Name, *basic) if err2 != nil { e.OutErr(c, e.ERR_DB_ORM, err2.Error()) return diff --git a/app/md/institutional_management/public_platoon/md_public_platoon.go b/app/md/institutional_management/public_platoon/md_public_platoon.go index cd0c935..88c7b43 100644 --- a/app/md/institutional_management/public_platoon/md_public_platoon.go +++ b/app/md/institutional_management/public_platoon/md_public_platoon.go @@ -117,8 +117,8 @@ type ListCommunityDividendsResp struct { } type AddCommunityDividendsReq struct { - Name string `json:"name,required" example:"社区分红名称"` - Nums string `json:"nums,required"` // 社区分红数量 + Name string `json:"name,required" example:"社区分红名称"` + Amount string `json:"amount,required"` // 社区分红数量 } type ListCommunityDividendsWithUserReq struct {