调整接口分组
This commit is contained in:
@ -3,7 +3,7 @@ package v1
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type RankingReq struct {
|
||||
g.Meta `path:"/task/ranking" method:"get" tags:"Task" summary:"(PC)任务排行榜"`
|
||||
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:"页数"`
|
||||
@ -19,7 +19,7 @@ type RankingRes struct {
|
||||
}
|
||||
|
||||
type NonLoginTaskListReq struct {
|
||||
g.Meta `path:"/task/getNonLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧未登录、已登录未绑定任务列表"`
|
||||
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:""`
|
||||
@ -36,7 +36,7 @@ type NonLoginTaskListRes struct {
|
||||
}
|
||||
|
||||
type GetLoginTaskListReq struct {
|
||||
g.Meta `path:"/task/getLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧已登录已绑定任务列表"`
|
||||
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:"分页索引"`
|
||||
@ -52,7 +52,7 @@ type GetLoginTaskListRes struct {
|
||||
}
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/task/completed/list" method:"get" tags:"Task" summary:"(商户、门店)用户任务已完成列表"`
|
||||
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:"条数"`
|
||||
@ -65,7 +65,7 @@ type ListRes struct {
|
||||
|
||||
// SelectorReq 系统管理员任务列表二级选择器
|
||||
type SelectorReq struct {
|
||||
g.Meta `path:"/task/selector" method:"get" tags:"Task" summary:"系统管理员任务列表二级选择器"`
|
||||
g.Meta `path:"/task/selector" method:"get" tags:"Backend/Task" summary:"(系统后台)系统管理员任务列表二级选择器"`
|
||||
}
|
||||
|
||||
type SelectorRes struct {
|
||||
@ -74,7 +74,7 @@ type SelectorRes struct {
|
||||
|
||||
// GetTaskReq 添加任务记录
|
||||
type GetTaskReq struct {
|
||||
g.Meta `path:"/task/get" method:"post" tags:"Task" summary:"(PC)任务领取"`
|
||||
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、网关账号必传一个"`
|
||||
@ -87,7 +87,7 @@ type GetTaskRes struct {
|
||||
}
|
||||
|
||||
type GetUserTaskRecordsListReq struct {
|
||||
g.Meta `path:"/task/records" method:"get" tags:"Task" summary:"(PC)用户任务记录列表"`
|
||||
g.Meta `path:"/task/records" method:"get" tags:"PC/Task" summary:"(PC)用户任务记录列表"`
|
||||
TaskId string `json:"taskId" dc:"任务 id"`
|
||||
StoreId int `json:"storeId" dc:"门店 id"`
|
||||
NetbarAccount string `json:"netbarAccount" dc:"网关账号"`
|
||||
|
||||
Reference in New Issue
Block a user