103 lines
4.4 KiB
Go
103 lines
4.4 KiB
Go
package v1
|
||
|
||
import "github.com/gogf/gf/v2/frame/g"
|
||
|
||
type RankingReq struct {
|
||
g.Meta `path:"/task/ranking" method:"get" tags:"PC/Task" summary:"(PC)任务排行榜"`
|
||
StoreId int `json:"storeId" dc:"门店id"`
|
||
NetBarAccount string `json:"netBarAccount" dc:"网关账号"`
|
||
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:"PC/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:"PC/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:"Backend/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:"Backend/Task" summary:"(系统后台)系统管理员任务列表二级选择器"`
|
||
}
|
||
|
||
type SelectorRes struct {
|
||
List interface{} `json:"list"`
|
||
}
|
||
|
||
// GetTaskReq 添加任务记录
|
||
type GetTaskReq struct {
|
||
g.Meta `path:"/task/get" method:"post" tags:"PC/Task" summary:"(PC)任务领取"`
|
||
TaskId string `json:"taskId" v:"required#任务id不能为空" dc:"任务id"`
|
||
StoreId int `json:"storeId" dc:"门店 id、网关账号必传一个"`
|
||
NetBarAccount string `json:"netBarAccount" dc:"门店 id、网关账号必传一个"`
|
||
GameId int `json:"gameId" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
||
TaskName string `json:"taskName" v:"required#任务名称不能为空" dc:"任务名称"`
|
||
}
|
||
|
||
type GetTaskRes struct {
|
||
Success bool `json:"success"`
|
||
}
|
||
|
||
type GetUserTaskRecordsListReq struct {
|
||
g.Meta `path:"/task/records" method:"get" tags:"PC/Task" summary:"(PC)用户任务记录列表"`
|
||
RewardTypeId int `json:"rewardTypeId" dc:"奖励类型 id,暂时没有"` // TODO
|
||
StoreId int `json:"storeId" dc:"门店 id"`
|
||
GameId int `json:"gameId" dc:"游戏 id"`
|
||
NetbarAccount string `json:"netbarAccount" dc:"网关账号, 用户查询在本店完成的任务记录"`
|
||
Page int `json:"page" dc:"页数"`
|
||
Size int `json:"size" dc:"条数"`
|
||
TimeType int `json:"timeType" dc:"时间类型, 暂时没有"` //TODO
|
||
}
|
||
type GetUserTaskRecordsListRes struct {
|
||
List interface{} `json:"list"`
|
||
Total int `json:"total"`
|
||
}
|