Skip to content

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.

update short id

aichy1268070bcdcf480
diff --git a/docs/docs.go b/docs/docs.go
index f7ca566e..3c065c45 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -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": {
diff --git a/docs/swagger.json b/docs/swagger.json
index f9cc9422..000624b4 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -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": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 01fec9cd..b01b8555 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -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:
diff --git a/internal/schema/siteinfo_schema.go b/internal/schema/siteinfo_schema.go
index b420813f..dd66fa4f 100644
--- a/internal/schema/siteinfo_schema.go
+++ b/internal/schema/siteinfo_schema.go
@@ -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"`
}