新增返回用户扫码登录的场景 id

This commit is contained in:
2025-06-24 09:06:54 +08:00
parent 3166edc3dd
commit 5777219c07
3 changed files with 23 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import "github.com/gogf/gf/v2/frame/g"
type WeChatLoginReq struct {
g.Meta `path:"/wechat/login" method:"post" tags:"WeChat" summary:"(PC)获取微信二维码登录"`
SceneId string `json:"sceneId" v:"required" dc:"场景ID,规则:[门店code]_[6位随机字符串]"`
SceneId string `json:"sceneId" v:"required" dc:"场景ID"`
}
type WeChatLoginRes struct {
}
@ -42,3 +42,12 @@ type WeChatPollingRes struct {
Status string `json:"status" dc:"状态"`
Token string `json:"token" dc:"token"`
}
type GetWechatSceneIdReq struct {
g.Meta `path:"/wechat/sceneId" method:"get" tags:"WeChat" summary:"(PC)获取微信场景ID"`
NetbarAccount string `json:"netbarAccount" v:"required" dc:"网关账号"`
}
type GetWechatSceneIdRes struct {
SceneId string `json:"sceneId" v:"required" dc:"场景ID"`
}