调整任务存储,任务查询
This commit is contained in:
@ -18,4 +18,6 @@ type ITaskV1 interface {
|
||||
Selector(ctx context.Context, req *v1.SelectorReq) (res *v1.SelectorRes, err error)
|
||||
GetTask(ctx context.Context, req *v1.GetTaskReq) (res *v1.GetTaskRes, err error)
|
||||
GetUserTaskRecordsList(ctx context.Context, req *v1.GetUserTaskRecordsListReq) (res *v1.GetUserTaskRecordsListRes, err error)
|
||||
GetTaskList(ctx context.Context, req *v1.GetTaskListReq) (res *v1.GetTaskListRes, err error)
|
||||
SyncTask(ctx context.Context, req *v1.SyncTaskReq) (res *v1.SyncTaskRes, err error)
|
||||
}
|
||||
|
||||
@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user