fix: administrator add user failure

This commit is contained in:
Luffy
2024-11-29 15:37:31 +08:00
committed by LinkinStars
parent 57b0d0e84d
commit e7672c109d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7829,7 +7829,7 @@ const docTemplate = `{
"display_name": {
"type": "string",
"maxLength": 30,
"minLength": 4
"minLength": 2
},
"email": {
"type": "string",
+1 -1
View File
@@ -7802,7 +7802,7 @@
"display_name": {
"type": "string",
"maxLength": 30,
"minLength": 4
"minLength": 2
},
"email": {
"type": "string",
+1 -1
View File
@@ -270,7 +270,7 @@ definitions:
properties:
display_name:
maxLength: 30
minLength: 4
minLength: 2
type: string
email:
maxLength: 500
+1 -1
View File
@@ -120,7 +120,7 @@ type EditUserProfileReq struct {
// AddUserReq add user request
type AddUserReq struct {
DisplayName string `validate:"required,gte=4,lte=30" json:"display_name"`
DisplayName string `validate:"required,gte=2,lte=30" json:"display_name"`
Email string `validate:"required,email,gt=0,lte=500" json:"email"`
Password string `validate:"required,gte=8,lte=32" json:"password"`
LoginUserID string `json:"-"`