From 5ead851b99d840a64f0209c272bd4fbb5947edae Mon Sep 17 00:00:00 2001 From: denghui <1016848185@qq.com> Date: Mon, 9 Jun 2025 10:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BB=BB=E5=8A=A1=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E6=8E=A5=E5=8F=A3=E3=80=81=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=B8=B8=E6=88=8F=E4=BA=BA=E7=94=9F=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/task/v1/task.go | 15 +++++++++++++++ api/user/v1/user.go | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 api/task/v1/task.go 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"` +}