Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop

This commit is contained in:
zzw
2026-08-21 11:09:15 +08:00
4 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -96,7 +96,7 @@ func (p AdminStatusValidator) GetMessage() validate.ValidatorMessages {
}
type LoginValidator struct {
Username string `validate:"required"`
Username string `validate:"required,mobile"`
Password string `validate:"required"`
}
@@ -104,6 +104,7 @@ type LoginValidator struct {
func (p LoginValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"Username.required": "账号不能为空",
"Username.mobile": "账号不正确",
"Password.required": "密码不能为空",
}
}