diff --git a/api/reward/v1/reward.go b/api/reward/v1/reward.go index 3dfbc72..2dced9f 100644 --- a/api/reward/v1/reward.go +++ b/api/reward/v1/reward.go @@ -215,7 +215,7 @@ type GetLiftReq struct { RewardType int `json:"rewardType" dc:"奖励类型"` RewardId int `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励id"` PopenId string `json:"popenId" v:"required#popenId不能为空" dc:"popenId不能为空"` - Source int `json:"source" v:"required#来源不能为空" dc:"来源" d:"1:系统 2:门店"` + Source int `json:"source" v:"required#来源不能为空" dc:"来源,1:系统 2:门店"` TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` GameId int `json:"gameId" v:"required#游戏id不能为空" dc:"游戏Id"` BindType int `json:"bindType" v:"required#绑定类型不能为空" dc:"绑定类型"` @@ -275,9 +275,9 @@ type GetGoodsDetailsRes struct { type OperateTaskRewardReq struct { g.Meta `path:"/reward/taskReward" method:"post" tags:"Backend/Reward" summary:"(系统管理员、商户管理员、门店管理员)添加任务奖励"` - Type int `json:"type" v:"required#操作类型只能为1或2,1是添加、2是删除" dc:"操作类型"` - TaskId int64 `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` - RewardId int64 `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励Id"` + Type int `json:"type" v:"required#操作类型只能为1或2,1是添加、2是删除" dc:"操作类型"` + TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"` + RewardId int64 `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励Id"` } type OperateTaskRewardRes struct { Success bool `json:"success" dc:"是否成功"` diff --git a/internal/model/reward.go b/internal/model/reward.go index ca50d69..597cf86 100644 --- a/internal/model/reward.go +++ b/internal/model/reward.go @@ -231,7 +231,7 @@ type GetGoodsDetailsOut struct { type OperateTaskRewardIn struct { OperatorId int64 OperatorRole string - TaskId int64 + TaskId string RewardId int64 Type int // 1: 任务添加奖励 2: 任务删除奖励 StoreId int64 // 当前操作门店, 当操作为门店或者是商户时