Fix swagget docs
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-31 08:49:52 +08:00
parent c05724a9ee
commit 8c90837a67
10 changed files with 245 additions and 16 deletions

View File

@@ -595,6 +595,24 @@ const docTemplate = `{
]
}
},
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error",
"schema": {
@@ -834,6 +852,24 @@ const docTemplate = `{
]
}
},
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
]
}
},
"404": {
"description": "Event Not Found",
"schema": {
@@ -946,6 +982,24 @@ const docTemplate = `{
]
}
},
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error (Database query failed)",
"schema": {
@@ -1004,7 +1058,7 @@ const docTemplate = `{
]
}
},
"403": {
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
@@ -1107,7 +1161,7 @@ const docTemplate = `{
]
}
},
"403": {
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
@@ -1125,7 +1179,7 @@ const docTemplate = `{
]
}
},
"404": {
"403": {
"description": "User Not Public",
"schema": {
"allOf": [
@@ -1143,6 +1197,24 @@ const docTemplate = `{
]
}
},
"404": {
"description": "User Not Found",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error (UUID Parse Failed)",
"schema": {
@@ -1237,6 +1309,24 @@ const docTemplate = `{
]
}
},
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [
{
"$ref": "#/definitions/utils.RespStatus"
},
{
"type": "object",
"properties": {
"data": {
"type": "object"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error (Search Engine or Missing Offset)",
"schema": {
@@ -1324,7 +1414,7 @@ const docTemplate = `{
]
}
},
"403": {
"401": {
"description": "Missing User ID / Unauthorized",
"schema": {
"allOf": [