增加 8圈自动登录

This commit is contained in:
2025-07-04 14:28:24 +08:00
parent 9adc43f6e3
commit 37ca5a7462
34 changed files with 497 additions and 314 deletions

View File

@ -16,4 +16,5 @@ type IAuthV1 interface {
MerchantCode(ctx context.Context, req *v1.MerchantCodeReq) (res *v1.MerchantCodeRes, err error)
MerchantRegister(ctx context.Context, req *v1.MerchantRegisterReq) (res *v1.MerchantRegisterRes, err error)
StoreLogin(ctx context.Context, req *v1.StoreLoginReq) (res *v1.StoreLoginRes, err error)
Quan8Autologin(ctx context.Context, req *v1.Quan8AutologinReq) (res *v1.Quan8AutologinRes, err error)
}

View File

@ -58,3 +58,12 @@ type StoreLoginRes struct {
g.Meta `mime:"application/json"`
Token string `json:"token"`
}
type Quan8AutologinReq struct {
g.Meta `path:"/quan8/autologin" method:"post" tags:"PC/Auth" summary:"8圈用户自动登录该系统"`
UUID string `json:"uuid" v:"required#UUID不能为空" dc:"UUID"`
StoreId int64
}
type Quan8AutologinRes struct {
Token string `json:"token"`
}

View File

@ -44,8 +44,9 @@ type WeChatPollingRes struct {
}
type GetWechatSceneIdReq struct {
g.Meta `path:"/wechat/sceneId" method:"get" tags:"PC/WeChat" summary:"(PC)获取微信场景ID"`
NetbarAccount string `json:"netbarAccount" v:"required" dc:"网关账号"`
g.Meta `path:"/wechat/sceneId" method:"get" tags:"PC/WeChat" summary:"(PC)获取微信场景ID"`
StoreId int `json:"storeId" v:"required#门店 id 账号不能为空" dc:"门店ID"`
UUID string `json:"uuid" dc:"8圈唯一 id"`
}
type GetWechatSceneIdRes struct {