新增任务排行榜接口、用户绑定游戏人生账号接口定义

This commit is contained in:
2025-06-09 10:25:24 +08:00
parent e07b3dd0e1
commit 5ead851b99
2 changed files with 32 additions and 0 deletions

15
api/task/v1/task.go Normal file
View 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 {
}

View File

@ -58,3 +58,20 @@ type GetPhoneCodeReq struct {
type GetPhoneCodeRes struct {
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"`
}