新增任务排行榜接口、用户绑定游戏人生账号接口定义
This commit is contained in:
15
api/task/v1/task.go
Normal file
15
api/task/v1/task.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package v1
|
||||||
|
|
||||||
|
import "github.com/gogf/gf/v2/frame/g"
|
||||||
|
|
||||||
|
type TaskListReq struct {
|
||||||
|
}
|
||||||
|
type TaskRankingReq struct {
|
||||||
|
g.Meta `path:"/task/ranking" method:"get" tags:"Task" summary:"任务排行榜"`
|
||||||
|
StoreId int `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
|
||||||
|
Page int `json:"page" dc:"页数"`
|
||||||
|
Size int `json:"size" dc:"条数"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type TaskRankingRes struct {
|
||||||
|
}
|
||||||
@ -58,3 +58,20 @@ type GetPhoneCodeReq struct {
|
|||||||
type GetPhoneCodeRes struct {
|
type GetPhoneCodeRes struct {
|
||||||
Success bool `json:"success" dc:"是否成功"`
|
Success bool `json:"success" dc:"是否成功"`
|
||||||
}
|
}
|
||||||
|
type GetGameLifeBondReq struct {
|
||||||
|
g.Meta `path:"/user/getGameLifeBond" method:"post" tags:"User" summary:"获取GameLife绑定情况"`
|
||||||
|
}
|
||||||
|
type GetGameLifeBondRes struct {
|
||||||
|
}
|
||||||
|
type BundleGameLifeReq struct {
|
||||||
|
g.Meta `path:"/user/bindGameLife" method:"post" tags:"User" summary:"绑定GameLife账号"`
|
||||||
|
}
|
||||||
|
type BundleGameLifeRes struct {
|
||||||
|
Url string `json:"url" dc:"绑定游戏人生的 h5 页面 url"`
|
||||||
|
}
|
||||||
|
type UnbundleGameLifeReq struct {
|
||||||
|
g.Meta `path:"/user/unbindGameLife" method:"post" tags:"User" summary:"解绑GameLife账号"`
|
||||||
|
}
|
||||||
|
type UnbundleGameLifeRes struct {
|
||||||
|
Url string `json:"url" dc:"解绑游戏人生的 h5 页面 url"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user