update userinfo

This commit is contained in:
aichy126 2023-01-11 11:31:22 +08:00
parent 8f4a4ca985
commit 290ab87d13
4 changed files with 2 additions and 24 deletions

View File

@ -6948,10 +6948,6 @@ const docTemplate = `{
},
"schema.SiteBrandingReq": {
"type": "object",
"required": [
"logo",
"square_icon"
],
"properties": {
"favicon": {
"type": "string",
@ -6973,10 +6969,6 @@ const docTemplate = `{
},
"schema.SiteBrandingResp": {
"type": "object",
"required": [
"logo",
"square_icon"
],
"properties": {
"favicon": {
"type": "string",

View File

@ -6936,10 +6936,6 @@
},
"schema.SiteBrandingReq": {
"type": "object",
"required": [
"logo",
"square_icon"
],
"properties": {
"favicon": {
"type": "string",
@ -6961,10 +6957,6 @@
},
"schema.SiteBrandingResp": {
"type": "object",
"required": [
"logo",
"square_icon"
],
"properties": {
"favicon": {
"type": "string",

View File

@ -1241,9 +1241,6 @@ definitions:
square_icon:
maxLength: 512
type: string
required:
- logo
- square_icon
type: object
schema.SiteBrandingResp:
properties:
@ -1259,9 +1256,6 @@ definitions:
square_icon:
maxLength: 512
type: string
required:
- logo
- square_icon
type: object
schema.SiteCustomCssHTMLReq:
properties:

View File

@ -228,7 +228,7 @@ type UserEmailLogin struct {
// UserRegisterReq user register request
type UserRegisterReq struct {
// name
Name string `validate:"required,gt=4,lte=30" json:"name"`
Name string `validate:"required,gt=3,lte=30" json:"name"`
// email
Email string `validate:"required,email,gt=0,lte=500" json:"e_mail" `
// password
@ -277,7 +277,7 @@ type UpdateInfoRequest struct {
// display_name
DisplayName string `validate:"required,gt=0,lte=30" json:"display_name"`
// username
Username string `validate:"omitempty,gt=0,lte=30" json:"username"`
Username string `validate:"omitempty,gt=3,lte=30" json:"username"`
// avatar
Avatar AvatarInfo `json:"avatar"`
// bio