diff --git a/api/wx/v1/wx.go b/api/wx/v1/wx.go index 6f99c35..d5d21f9 100644 --- a/api/wx/v1/wx.go +++ b/api/wx/v1/wx.go @@ -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:"(用户)获取微信二维码登录"` - SceneId string `json:"sceneId" v:"required" dc:"场景ID,规则:[门店id]_[6位随机字符串]"` + SceneId string `json:"sceneId" v:"required" dc:"场景ID,规则:[门店code]_[6位随机字符串]"` } type WeChatLoginRes struct { } diff --git a/internal/logic/user/user.go b/internal/logic/user/user.go index 5dad05e..78c1d1f 100644 --- a/internal/logic/user/user.go +++ b/internal/logic/user/user.go @@ -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) { return } + +func (s *sUser) List(ctx context.Context, in *model.UserListIn) (out *model.UserListOut, err error) { + return +} diff --git a/internal/model/user.go b/internal/model/user.go index 184b757..9cc46a9 100644 --- a/internal/model/user.go +++ b/internal/model/user.go @@ -49,11 +49,6 @@ type UserUpdateIn struct { Status int } -// UserOut 用户响应 -type UserOut struct { - *User -} - type LoginCache struct { Token string `json:"token"` Status int `json:"status" dc:"0-准备扫码,1-已扫码"` @@ -77,3 +72,15 @@ type UserInfoOut struct { type UserBindPhoneIn struct { } + +type UserListIn struct { + OperatorId int64 + Role string + Nickname string + Page int + Size int +} +type UserListOut struct { + List []User + Total int +}