update short id

This commit is contained in:
aichy126 2023-03-13 11:31:29 +08:00
parent 2d87c8d494
commit 8070bcdcf4
4 changed files with 7 additions and 7 deletions

View File

@ -7287,7 +7287,7 @@ const docTemplate = `{
"properties": {
"permalink": {
"type": "integer",
"maximum": 3,
"maximum": 4,
"minimum": 0
},
"robots": {
@ -7304,7 +7304,7 @@ const docTemplate = `{
"properties": {
"permalink": {
"type": "integer",
"maximum": 3,
"maximum": 4,
"minimum": 0
},
"robots": {

View File

@ -7275,7 +7275,7 @@
"properties": {
"permalink": {
"type": "integer",
"maximum": 3,
"maximum": 4,
"minimum": 0
},
"robots": {
@ -7292,7 +7292,7 @@
"properties": {
"permalink": {
"type": "integer",
"maximum": 3,
"maximum": 4,
"minimum": 0
},
"robots": {

View File

@ -1408,7 +1408,7 @@ definitions:
schema.SiteSeoReq:
properties:
permalink:
maximum: 3
maximum: 4
minimum: 0
type: integer
robots:
@ -1420,7 +1420,7 @@ definitions:
schema.SiteSeoResp:
properties:
permalink:
maximum: 3
maximum: 4
minimum: 0
type: integer
robots:

View File

@ -28,7 +28,7 @@ type SiteGeneralReq struct {
}
type SiteSeoReq struct {
PermaLink int `validate:"required,lte=3,gte=0" form:"permalink" json:"permalink"`
PermaLink int `validate:"required,lte=4,gte=0" form:"permalink" json:"permalink"`
Robots string `validate:"required" form:"robots" json:"robots"`
}