File tree Expand file tree Collapse file tree 4 files changed +22
-38
lines changed Expand file tree Collapse file tree 4 files changed +22
-38
lines changed Original file line number Diff line number Diff line change 1
- // Code generated by swaggo/swag. DO NOT EDIT
1
+ // Package docs GENERATED BY SWAG; DO NOT EDIT
2
+ // This file was generated by swaggo/swag
2
3
package docs
3
4
4
5
import "github.com/swaggo/swag"
@@ -6982,11 +6983,7 @@ const docTemplate = `{
6982
6983
},
6983
6984
"user_info": {
6984
6985
"description": "user info",
6985
- "allOf": [
6986
- {
6987
- "$ref": "#/definitions/schema.UserBasicInfo"
6988
- }
6989
- ]
6986
+ "$ref": "#/definitions/schema.UserBasicInfo"
6990
6987
},
6991
6988
"vote_count": {
6992
6989
"type": "integer"
@@ -6998,11 +6995,7 @@ const docTemplate = `{
6998
6995
"properties": {
6999
6996
"object": {
7000
6997
"description": "this object",
7001
- "allOf": [
7002
- {
7003
- "$ref": "#/definitions/schema.SearchObject"
7004
- }
7005
- ]
6998
+ "$ref": "#/definitions/schema.SearchObject"
7006
6999
},
7007
7000
"object_type": {
7008
7001
"description": "object_type",
@@ -7515,11 +7508,7 @@ const docTemplate = `{
7515
7508
"properties": {
7516
7509
"avatar": {
7517
7510
"description": "avatar",
7518
- "allOf": [
7519
- {
7520
- "$ref": "#/definitions/schema.AvatarInfo"
7521
- }
7522
- ]
7511
+ "$ref": "#/definitions/schema.AvatarInfo"
7523
7512
},
7524
7513
"bio": {
7525
7514
"description": "bio",
@@ -8000,6 +7989,10 @@ const docTemplate = `{
8000
7989
"label": {
8001
7990
"type": "string"
8002
7991
},
7992
+ "progress": {
7993
+ "description": "Translation completion percentage",
7994
+ "type": "integer"
7995
+ },
8003
7996
"value": {
8004
7997
"type": "string"
8005
7998
}
Original file line number Diff line number Diff line change 6971
6971
},
6972
6972
"user_info" : {
6973
6973
"description" : " user info" ,
6974
- "allOf" : [
6975
- {
6976
- "$ref" : " #/definitions/schema.UserBasicInfo"
6977
- }
6978
- ]
6974
+ "$ref" : " #/definitions/schema.UserBasicInfo"
6979
6975
},
6980
6976
"vote_count" : {
6981
6977
"type" : " integer"
6987
6983
"properties" : {
6988
6984
"object" : {
6989
6985
"description" : " this object" ,
6990
- "allOf" : [
6991
- {
6992
- "$ref" : " #/definitions/schema.SearchObject"
6993
- }
6994
- ]
6986
+ "$ref" : " #/definitions/schema.SearchObject"
6995
6987
},
6996
6988
"object_type" : {
6997
6989
"description" : " object_type" ,
7504
7496
"properties" : {
7505
7497
"avatar" : {
7506
7498
"description" : " avatar" ,
7507
- "allOf" : [
7508
- {
7509
- "$ref" : " #/definitions/schema.AvatarInfo"
7510
- }
7511
- ]
7499
+ "$ref" : " #/definitions/schema.AvatarInfo"
7512
7500
},
7513
7501
"bio" : {
7514
7502
"description" : " bio" ,
7989
7977
"label" : {
7990
7978
"type" : " string"
7991
7979
},
7980
+ "progress" : {
7981
+ "description" : " Translation completion percentage" ,
7982
+ "type" : " integer"
7983
+ },
7992
7984
"value" : {
7993
7985
"type" : " string"
7994
7986
}
Original file line number Diff line number Diff line change @@ -1199,17 +1199,15 @@ definitions:
1199
1199
title :
1200
1200
type : string
1201
1201
user_info :
1202
- allOf :
1203
- - $ref : ' #/definitions/schema.UserBasicInfo'
1202
+ $ref : ' #/definitions/schema.UserBasicInfo'
1204
1203
description : user info
1205
1204
vote_count :
1206
1205
type : integer
1207
1206
type : object
1208
1207
schema.SearchResp :
1209
1208
properties :
1210
1209
object :
1211
- allOf :
1212
- - $ref : ' #/definitions/schema.SearchObject'
1210
+ $ref : ' #/definitions/schema.SearchObject'
1213
1211
description : this object
1214
1212
object_type :
1215
1213
description : object_type
@@ -1563,8 +1561,7 @@ definitions:
1563
1561
schema.UpdateInfoRequest :
1564
1562
properties :
1565
1563
avatar :
1566
- allOf :
1567
- - $ref : ' #/definitions/schema.AvatarInfo'
1564
+ $ref : ' #/definitions/schema.AvatarInfo'
1568
1565
description : avatar
1569
1566
bio :
1570
1567
description : bio
@@ -1910,6 +1907,9 @@ definitions:
1910
1907
properties :
1911
1908
label :
1912
1909
type : string
1910
+ progress :
1911
+ description : Translation completion percentage
1912
+ type : integer
1913
1913
value :
1914
1914
type : string
1915
1915
type : object
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ func (u *LangController) GetLangMapping(ctx *gin.Context) {
41
41
// @Tags Lang
42
42
// @Produce json
43
43
// @Success 200 {object} handler.RespBody{}
44
- // @Router /answer/api/v1/language/options [get]
45
44
// @Router /answer/admin/api/language/options [get]
46
45
func (u * LangController ) GetAdminLangOptions (ctx * gin.Context ) {
47
46
handler .HandleResponse (ctx , nil , translator .LanguageOptions )
You can’t perform that action at this time.
0 commit comments