add validator model
CI / changes (push) Successful in 4s
CI / docker-bff (push) Failing after 2s
CI / docker-product (push) Failing after 2s
CI / docker-admin (push) Failing after 2s
CI / docker-user (push) Failing after 2s

This commit is contained in:
2026-08-21 10:53:31 +08:00
parent 736240e8d2
commit 0dbec86c00
6 changed files with 11 additions and 25 deletions
-7
View File
@@ -1,7 +0,0 @@
Nacos:
Hosts:
- rnacos:8848
NamespaceId: test
Group: LONE_SERVICES
RegisterIP: admin
ConfigID: admin
+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": "密码不能为空",
}
}
-7
View File
@@ -1,7 +0,0 @@
Nacos:
Hosts:
- rnacos:8848
NamespaceId: test
Group: LONE_SERVICES
RegisterIP: log
ConfigID: develop-logs
-7
View File
@@ -1,7 +0,0 @@
Nacos:
Hosts:
- rnacos:8848
NamespaceId: test
Group: LONE_SERVICES
RegisterIP: order
ConfigID: develop-order