新增用户列表接口定义
This commit is contained in:
@ -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 {
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user