调整任务存储,任务查询

This commit is contained in:
chy
2025-07-01 09:57:16 +08:00
parent 09e9ebe8c3
commit 2791322a76
12 changed files with 81 additions and 84 deletions

View File

@ -212,9 +212,9 @@ type CallbackRes struct {
type GetLiftReq struct {
g.Meta `path:"/reward/getLift" method:"post" tags:"PC/Reward" summary:"(PC)奖励领取"`
RewradType int `json:"rewardType" v:"required#奖励类型不能为空" dc:"奖励类型"`
RewradId int `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励id"`
PopenId string `json:"popenid" v:"required#popenId不能为空" dc:"popenId不能为空"`
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:门店"`
TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"`
GameId int `json:"gameId" v:"required#游戏id不能为空" dc:"游戏Id"`

View File

@ -100,3 +100,17 @@ type GetUserTaskRecordsListRes struct {
List interface{} `json:"list"`
Total int `json:"total"`
}
type GetTaskListReq struct {
g.Meta `path:"/task/list" method:"get" tags:"Backend-PC/Task" summary:"任务列表"`
}
type GetTaskListRes struct {
List interface{} `json:"list"`
Total int `json:"total"`
}
type SyncTaskReq struct {
g.Meta `path:"/task/sync" method:"post" tags:"Backend/Task" summary:"同步任务"`
}
type SyncTaskRes struct {
}