diff --git a/api/task/v1/task.go b/api/task/v1/task.go new file mode 100644 index 0000000..6a8735a --- /dev/null +++ b/api/task/v1/task.go @@ -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 { +} diff --git a/api/user/v1/user.go b/api/user/v1/user.go index c120555..bc27ead 100644 --- a/api/user/v1/user.go +++ b/api/user/v1/user.go @@ -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"` +}