调整任务存储,任务查询

This commit is contained in:
chy
2025-07-01 14:14:26 +08:00
parent c56b96b0c2
commit 0c1f2568e7
9 changed files with 316 additions and 115 deletions

View File

@ -102,7 +102,16 @@ type GetUserTaskRecordsListRes struct {
}
type GetTaskListReq struct {
g.Meta `path:"/task/list" method:"get" tags:"Backend-PC/Task" summary:"任务列表"`
g.Meta `path:"/task/list" method:"get" tags:"Backend-PC/Task" summary:"任务列表"`
NetBarAccount string `json:"netBarAccount" v:"required#网关账号不能为空" dc:"网关账号"`
Num int `json:"num" v:"required#不能为空" dc:""`
Pageidx string `json:"pageidx" dc:"分页索引"`
Gid int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
//BrandId string `json:"brandId" dc:"品牌id(可选)"`
PopenId string `json:"popenId" dc:"用户详情接口返回的 wxPopenId 或者是 qqPopenId"`
BindType int `json:"bindType" dc:"绑定类型 1: QQ 2:微信"`
IsBound int `json:"IsBound" v:"required#不能为空" dc:"是否绑定 0否 1是"`
StoreId int64 `json:"storeId" dc:"门店 id"`
}
type GetTaskListRes struct {
List interface{} `json:"list"`
@ -113,4 +122,5 @@ type SyncTaskReq struct {
g.Meta `path:"/task/sync" method:"post" tags:"Backend/Task" summary:"同步任务"`
}
type SyncTaskRes struct {
Message string `json:"message"`
}