实现任务绑定奖励的接口
This commit is contained in:
@ -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:"是否成功"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user