From 5bbdc7ec7cac4af6fd7134aa662db22e987a7944 Mon Sep 17 00:00:00 2001 From: denghui <1016848185@qq.com> Date: Wed, 4 Jun 2025 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/wx/v1/wx.go | 2 +- internal/logic/user/user.go | 4 ++++ internal/model/user.go | 17 ++++++++++++----- 3 files changed, 17 insertions(+), 6 deletions(-) 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 +}