实现任务绑定奖励的接口

This commit is contained in:
2025-06-24 21:36:58 +08:00
parent 4c367bd9ca
commit 8cd9477f3d
9 changed files with 156 additions and 2 deletions

View File

@ -267,3 +267,13 @@ type GetGoodsDetailsReq struct {
type GetGoodsDetailsRes struct {
Water interface{} `json:"water" dc:"流水信息"`
}
type OperateTaskRewardReq struct {
g.Meta `path:"/reward/addTaskReward" method:"post" tags:"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 OperateTaskRewardRes struct {
Success bool `json:"success" dc:"是否成功"`
}