fix🐛: 修复参数验证信息
This commit is contained in:
1 parent
b4a6f82f5f
commit
2441412714
1 file changed
+3
-3
@@ -38,8 +38,8 @@ func (m *SysUserGetPageReq) GetNeedSearch() interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ResetSysUserPwdReq struct {
|
type ResetSysUserPwdReq struct {
|
||||||
UserId int `json:"userId" comment:"用户ID" binding:"required"` // 用户ID
|
UserId int `json:"userId" comment:"用户ID" vd:"$>0"` // 用户ID
|
||||||
Password string `json:"password" comment:"密码" binding:"required"`
|
Password string `json:"password" comment:"密码" vd:"len($)>0"`
|
||||||
common.ControlBy
|
common.ControlBy
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,4 +185,4 @@ func (s *SysUserById) GenerateM() (common.ActiveRecord, error) {
|
|||||||
type PassWord struct {
|
type PassWord struct {
|
||||||
NewPassword string `json:"newPassword" vd:"len($)>0"`
|
NewPassword string `json:"newPassword" vd:"len($)>0"`
|
||||||
OldPassword string `json:"oldPassword" vd:"len($)>0"`
|
OldPassword string `json:"oldPassword" vd:"len($)>0"`
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user