86 lines
3.4 KiB
Go
86 lines
3.4 KiB
Go
package v1
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
type RankingReq struct {
|
|
g.Meta `path:"/task/ranking" method:"get" tags:"Task" summary:"(PC)任务排行榜"`
|
|
StoreId int `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
|
|
Page int `json:"page" dc:"页数"`
|
|
Size int `json:"size" dc:"条数"`
|
|
Type int `json:"type" v:"required#请选择排行榜类型" dc:"排行榜类型"`
|
|
}
|
|
|
|
type RankingRes struct {
|
|
List interface{} `json:"list"`
|
|
Total int `json:"total"`
|
|
CompletedNum int `json:"completedNum"`
|
|
RankingNum int `json:"rankingNum"`
|
|
}
|
|
|
|
type NonLoginTaskListReq struct {
|
|
g.Meta `path:"/task/getNonLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧未登录、已登录未绑定任务列表"`
|
|
NetBarAccount string `json:"netBarAccount" v:"required#网关账号不能为空" dc:"网关账号"`
|
|
Gid int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
|
Num int `json:"num" v:"required#不能为空" dc:""`
|
|
Pageidx string `json:"pageidx" dc:"分页索引"`
|
|
//Source string `json:"source" v:"required#不能为空" dc:""`
|
|
//BrandId string `json:"brandId" dc:"品牌id(可选)"`
|
|
}
|
|
|
|
type NonLoginTaskListRes struct {
|
|
//List interface{} `json:"list"`
|
|
//Total int `json:"total"`
|
|
Data interface{} `json:"taskList"`
|
|
PageIdx string `json:"pageidx" dc:"分页索引"`
|
|
}
|
|
|
|
type GetLoginTaskListReq struct {
|
|
g.Meta `path:"/task/getLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧已登录已绑定任务列表"`
|
|
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" v:"required#popenId不能为空" dc:"用户详情接口返回的 wxPopenId 或者是 qqPopenId"`
|
|
BindType int `json:"bindType" v:"required#不能为空" dc:"绑定类型 1: QQ 2:微信"`
|
|
}
|
|
|
|
type GetLoginTaskListRes struct {
|
|
Data interface{} `json:"data"`
|
|
PageIdx string `json:"pageidx" dc:"分页索引"`
|
|
}
|
|
|
|
type ListReq struct {
|
|
g.Meta `path:"/task/completed/list" method:"get" tags:"Task" summary:"(商户、门店)用户任务已完成列表"`
|
|
StoreId int `json:"storeId" dc:"门店 id"`
|
|
Page int `json:"page" dc:"页数"`
|
|
Size int `json:"size" dc:"条数"`
|
|
}
|
|
|
|
type ListRes struct {
|
|
List interface{} `json:"list"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
// SelectorReq 系统管理员任务列表二级选择器
|
|
type SelectorReq struct {
|
|
g.Meta `path:"/task/selector" method:"get" tags:"Task" summary:"系统管理员任务列表二级选择器"`
|
|
}
|
|
|
|
type SelectorRes struct {
|
|
List interface{} `json:"list"`
|
|
}
|
|
|
|
// GetTaskReq 添加任务记录
|
|
type GetTaskReq struct {
|
|
g.Meta `path:"/task/get" method:"post" tags:"Task" summary:"(PC)任务领取"`
|
|
TaskId int `json:"taskId" v:"required#任务id不能为空" dc:"任务id"`
|
|
StoreId int `json:"storeId" v:"required#门店 id不能为空" dc:"门店 id"`
|
|
GameId int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
|
TaskName string `json:"taskName" v:"required#任务名称不能为空" dc:"任务名称"`
|
|
}
|
|
|
|
type GetTaskRes struct {
|
|
Success bool `json:"success"`
|
|
}
|