diff --git a/docs/docs.go b/docs/docs.go index ad067ad7..b28986b7 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,4 +1,5 @@ -// Code generated by swaggo/swag. DO NOT EDIT +// Package docs GENERATED BY SWAG; DO NOT EDIT +// This file was generated by swaggo/swag package docs import "github.com/swaggo/swag" @@ -6982,11 +6983,7 @@ const docTemplate = `{ }, "user_info": { "description": "user info", - "allOf": [ - { - "$ref": "#/definitions/schema.UserBasicInfo" - } - ] + "$ref": "#/definitions/schema.UserBasicInfo" }, "vote_count": { "type": "integer" @@ -6998,11 +6995,7 @@ const docTemplate = `{ "properties": { "object": { "description": "this object", - "allOf": [ - { - "$ref": "#/definitions/schema.SearchObject" - } - ] + "$ref": "#/definitions/schema.SearchObject" }, "object_type": { "description": "object_type", @@ -7515,11 +7508,7 @@ const docTemplate = `{ "properties": { "avatar": { "description": "avatar", - "allOf": [ - { - "$ref": "#/definitions/schema.AvatarInfo" - } - ] + "$ref": "#/definitions/schema.AvatarInfo" }, "bio": { "description": "bio", @@ -8000,6 +7989,10 @@ const docTemplate = `{ "label": { "type": "string" }, + "progress": { + "description": "Translation completion percentage", + "type": "integer" + }, "value": { "type": "string" } diff --git a/docs/swagger.json b/docs/swagger.json index f1736557..21be9a5c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -6971,11 +6971,7 @@ }, "user_info": { "description": "user info", - "allOf": [ - { - "$ref": "#/definitions/schema.UserBasicInfo" - } - ] + "$ref": "#/definitions/schema.UserBasicInfo" }, "vote_count": { "type": "integer" @@ -6987,11 +6983,7 @@ "properties": { "object": { "description": "this object", - "allOf": [ - { - "$ref": "#/definitions/schema.SearchObject" - } - ] + "$ref": "#/definitions/schema.SearchObject" }, "object_type": { "description": "object_type", @@ -7504,11 +7496,7 @@ "properties": { "avatar": { "description": "avatar", - "allOf": [ - { - "$ref": "#/definitions/schema.AvatarInfo" - } - ] + "$ref": "#/definitions/schema.AvatarInfo" }, "bio": { "description": "bio", @@ -7989,6 +7977,10 @@ "label": { "type": "string" }, + "progress": { + "description": "Translation completion percentage", + "type": "integer" + }, "value": { "type": "string" } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 75e27074..c57892fa 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1199,8 +1199,7 @@ definitions: title: type: string user_info: - allOf: - - $ref: '#/definitions/schema.UserBasicInfo' + $ref: '#/definitions/schema.UserBasicInfo' description: user info vote_count: type: integer @@ -1208,8 +1207,7 @@ definitions: schema.SearchResp: properties: object: - allOf: - - $ref: '#/definitions/schema.SearchObject' + $ref: '#/definitions/schema.SearchObject' description: this object object_type: description: object_type @@ -1563,8 +1561,7 @@ definitions: schema.UpdateInfoRequest: properties: avatar: - allOf: - - $ref: '#/definitions/schema.AvatarInfo' + $ref: '#/definitions/schema.AvatarInfo' description: avatar bio: description: bio @@ -1910,6 +1907,9 @@ definitions: properties: label: type: string + progress: + description: Translation completion percentage + type: integer value: type: string type: object diff --git a/internal/controller/lang_controller.go b/internal/controller/lang_controller.go index b48080ee..0cf2637a 100644 --- a/internal/controller/lang_controller.go +++ b/internal/controller/lang_controller.go @@ -41,7 +41,6 @@ func (u *LangController) GetLangMapping(ctx *gin.Context) { // @Tags Lang // @Produce json // @Success 200 {object} handler.RespBody{} -// @Router /answer/api/v1/language/options [get] // @Router /answer/admin/api/language/options [get] func (u *LangController) GetAdminLangOptions(ctx *gin.Context) { handler.HandleResponse(ctx, nil, translator.LanguageOptions)