Merge remote-tracking branch 'origin/master'

This commit is contained in:
chy
2025-06-05 10:12:30 +08:00
3 changed files with 17 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import "github.com/gogf/gf/v2/frame/g"
type WeChatLoginReq struct { type WeChatLoginReq struct {
g.Meta `path:"/wechat/login" method:"post" tags:"WeChat" summary:"(用户)获取微信二维码登录"` g.Meta `path:"/wechat/login" method:"post" tags:"WeChat" summary:"(用户)获取微信二维码登录"`
SceneId string `json:"sceneId" v:"required" dc:"场景ID,规则:[门店id]_[6位随机字符串]"` SceneId string `json:"sceneId" v:"required" dc:"场景ID,规则:[门店code]_[6位随机字符串]"`
} }
type WeChatLoginRes struct { type WeChatLoginRes struct {
} }

View File

@ -124,3 +124,7 @@ func (s *sUser) Update(ctx context.Context, in *model.UserUpdateIn) (out *model.
func (s *sUser) BindPhone(ctx context.Context, in *model.UserBindPhoneIn) (out *model.UpdateOut, err error) { func (s *sUser) BindPhone(ctx context.Context, in *model.UserBindPhoneIn) (out *model.UpdateOut, err error) {
return return
} }
func (s *sUser) List(ctx context.Context, in *model.UserListIn) (out *model.UserListOut, err error) {
return
}

View File

@ -49,11 +49,6 @@ type UserUpdateIn struct {
Status int Status int
} }
// UserOut 用户响应
type UserOut struct {
*User
}
type LoginCache struct { type LoginCache struct {
Token string `json:"token"` Token string `json:"token"`
Status int `json:"status" dc:"0-准备扫码1-已扫码"` Status int `json:"status" dc:"0-准备扫码1-已扫码"`
@ -77,3 +72,15 @@ type UserInfoOut struct {
type UserBindPhoneIn struct { type UserBindPhoneIn struct {
} }
type UserListIn struct {
OperatorId int64
Role string
Nickname string
Page int
Size int
}
type UserListOut struct {
List []User
Total int
}