Fix user other api endpoint
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:41:38 +08:00
parent cbc358b96e
commit c05724a9ee
4 changed files with 7 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ import (
// @Success 200 {object} utils.RespStatus{data=service_user.UserInfoData} "Successful profile retrieval" // @Success 200 {object} utils.RespStatus{data=service_user.UserInfoData} "Successful profile retrieval"
// @Failure 403 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 403 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized"
// @Failure 404 {object} utils.RespStatus{data=nil} "User Not Found" // @Failure 404 {object} utils.RespStatus{data=nil} "User Not Found"
// @Failure 404 {object} utils.RespStatus{data=service_user.UserInfoData} "User Not Public"
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error (UUID Parse Failed)" // @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error (UUID Parse Failed)"
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @Router /user/info/{user_id} [get] // @Router /user/info/{user_id} [get]

View File

@@ -1126,7 +1126,7 @@ const docTemplate = `{
} }
}, },
"404": { "404": {
"description": "User Not Found", "description": "User Not Public",
"schema": { "schema": {
"allOf": [ "allOf": [
{ {
@@ -1136,7 +1136,7 @@ const docTemplate = `{
"type": "object", "type": "object",
"properties": { "properties": {
"data": { "data": {
"type": "object" "$ref": "#/definitions/service_user.UserInfoData"
} }
} }
} }

View File

@@ -1124,7 +1124,7 @@
} }
}, },
"404": { "404": {
"description": "User Not Found", "description": "User Not Public",
"schema": { "schema": {
"allOf": [ "allOf": [
{ {
@@ -1134,7 +1134,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"data": { "data": {
"type": "object" "$ref": "#/definitions/service_user.UserInfoData"
} }
} }
} }

View File

@@ -755,13 +755,13 @@ paths:
type: object type: object
type: object type: object
"404": "404":
description: User Not Found description: User Not Public
schema: schema:
allOf: allOf:
- $ref: '#/definitions/utils.RespStatus' - $ref: '#/definitions/utils.RespStatus'
- properties: - properties:
data: data:
type: object $ref: '#/definitions/service_user.UserInfoData'
type: object type: object
"500": "500":
description: Internal Server Error (UUID Parse Failed) description: Internal Server Error (UUID Parse Failed)