From 304bf0f50d19807df1f7c482fe0baa0709c1aa34 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Sat, 31 Jan 2026 08:51:49 +0800 Subject: [PATCH] Update swagger docs Signed-off-by: Asai Neko --- api/user/other.go | 2 +- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/user/other.go b/api/user/other.go index 310e46b..0d5957d 100644 --- a/api/user/other.go +++ b/api/user/other.go @@ -20,7 +20,7 @@ import ( // @Success 200 {object} utils.RespStatus{data=service_user.UserInfoData} "Successful profile retrieval" // @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 404 {object} utils.RespStatus{data=nil} "User Not Found" -// @Failure 403 {object} utils.RespStatus{data=service_user.UserInfoData} "User Not Public" +// @Failure 403 {object} utils.RespStatus{data=nil} "User Not Public" // @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error (UUID Parse Failed)" // @Security ApiKeyAuth // @Router /user/info/{user_id} [get] diff --git a/docs/docs.go b/docs/docs.go index 1f86e26..1ea97f3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1190,7 +1190,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "$ref": "#/definitions/service_user.UserInfoData" + "type": "object" } } } diff --git a/docs/swagger.json b/docs/swagger.json index c27c865..496b8bb 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1188,7 +1188,7 @@ "type": "object", "properties": { "data": { - "$ref": "#/definitions/service_user.UserInfoData" + "type": "object" } } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 553bc3c..d00646b 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -788,7 +788,7 @@ paths: - $ref: '#/definitions/utils.RespStatus' - properties: data: - $ref: '#/definitions/service_user.UserInfoData' + type: object type: object "404": description: User Not Found