From 00236a96899619fcc7f92daa80b4e48478e27763 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 13 Nov 2024 09:09:32 +0800 Subject: [PATCH] update --- app/hdl/institutional_management/public_platoon/hdl_basic.go | 2 +- .../public_platoon/md_public_platoon.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {