From 2441412714c8c41fa7d508f0370f857616233af0 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Thu, 19 Aug 2021 19:03:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8D=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=AA=8C=E8=AF=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/dto/sys_user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/service/dto/sys_user.go b/app/admin/service/dto/sys_user.go index 51123430..469844dc 100644 --- a/app/admin/service/dto/sys_user.go +++ b/app/admin/service/dto/sys_user.go @@ -38,8 +38,8 @@ func (m *SysUserGetPageReq) GetNeedSearch() interface{} { } type ResetSysUserPwdReq struct { - UserId int `json:"userId" comment:"用户ID" binding:"required"` // 用户ID - Password string `json:"password" comment:"密码" binding:"required"` + UserId int `json:"userId" comment:"用户ID" vd:"$>0"` // 用户ID + Password string `json:"password" comment:"密码" vd:"len($)>0"` common.ControlBy } @@ -185,4 +185,4 @@ func (s *SysUserById) GenerateM() (common.ActiveRecord, error) { type PassWord struct { NewPassword string `json:"newPassword" vd:"len($)>0"` OldPassword string `json:"oldPassword" vd:"len($)>0"` -} +} \ No newline at end of file