A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: administrator add user failure
Luffye7672c109dcd
diff --git a/docs/docs.go b/docs/docs.goindex 424bd669..9863b0c0 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -7829,7 +7829,7 @@ const docTemplate = `{"display_name": {"type": "string","maxLength": 30,- "minLength": 4+ "minLength": 2},"email": {"type": "string",diff --git a/docs/swagger.json b/docs/swagger.jsonindex 7ec493b2..5c2f459c 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -7802,7 +7802,7 @@"display_name": {"type": "string","maxLength": 30,- "minLength": 4+ "minLength": 2},"email": {"type": "string",diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 4622e964..811b3c28 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -270,7 +270,7 @@ definitions:properties:display_name:maxLength: 30- minLength: 4+ minLength: 2type: stringemail:maxLength: 500diff --git a/internal/schema/backyard_user_schema.go b/internal/schema/backyard_user_schema.goindex 9f8733b2..7c690aee 100644--- a/internal/schema/backyard_user_schema.go+++ b/internal/schema/backyard_user_schema.go@@ -120,7 +120,7 @@ type EditUserProfileReq struct {// AddUserReq add user requesttype 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:"-"`