Skip to content

Commit

Permalink
Merge branch 'dev' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Jan 13, 2025
2 parents dae16c6 + 6d84720 commit 8a33548
Show file tree
Hide file tree
Showing 17 changed files with 170 additions and 230 deletions.
145 changes: 60 additions & 85 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ const docTemplate = `{
},
"/answer/admin/api/language/options": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get language options",
"produces": [
"application/json"
Expand Down Expand Up @@ -690,6 +695,11 @@ const docTemplate = `{
},
"/answer/admin/api/roles": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get role list",
"produces": [
"application/json"
Expand Down Expand Up @@ -2296,11 +2306,6 @@ const docTemplate = `{
},
"/answer/api/v1/answer/page": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "AnswerList \u003cbr\u003e \u003cb\u003eorder\u003c/b\u003e (default or updated)",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2393,11 +2398,6 @@ const docTemplate = `{
},
"/answer/api/v1/badge": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get badge info",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2443,11 +2443,6 @@ const docTemplate = `{
},
"/answer/api/v1/badge/awards/page": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get badge award list",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2510,11 +2505,6 @@ const docTemplate = `{
},
"/answer/api/v1/badge/user/awards": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user badge award list",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2562,11 +2552,6 @@ const docTemplate = `{
},
"/answer/api/v1/badge/user/awards/recent": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user badge award list",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2614,11 +2599,6 @@ const docTemplate = `{
},
"/answer/api/v1/badges": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "list all badges group by group",
"consumes": [
"application/json"
Expand Down Expand Up @@ -3365,11 +3345,6 @@ const docTemplate = `{
},
"/answer/api/v1/meta/reaction": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get reaction for an object",
"consumes": [
"application/json"
Expand Down Expand Up @@ -3934,11 +3909,6 @@ const docTemplate = `{
},
"/answer/api/v1/personal/qa/top": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "UserTop",
"consumes": [
"application/json"
Expand Down Expand Up @@ -4157,11 +4127,6 @@ const docTemplate = `{
},
"/answer/api/v1/plugin/status": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get all plugins status",
"consumes": [
"application/json"
Expand Down Expand Up @@ -4391,11 +4356,6 @@ const docTemplate = `{
},
"/answer/api/v1/question/info": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get question details",
"consumes": [
"application/json"
Expand Down Expand Up @@ -4429,11 +4389,6 @@ const docTemplate = `{
},
"/answer/api/v1/question/invite": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get question invite user info",
"consumes": [
"application/json"
Expand Down Expand Up @@ -5771,6 +5726,11 @@ const docTemplate = `{
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update tag",
"consumes": [
"application/json"
Expand Down Expand Up @@ -5803,6 +5763,11 @@ const docTemplate = `{
}
},
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "add tag",
"consumes": [
"application/json"
Expand Down Expand Up @@ -5835,6 +5800,11 @@ const docTemplate = `{
}
},
"delete": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "delete tag",
"consumes": [
"application/json"
Expand Down Expand Up @@ -5869,6 +5839,11 @@ const docTemplate = `{
},
"/answer/api/v1/tag/recover": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "recover delete tag",
"consumes": [
"application/json"
Expand Down Expand Up @@ -5903,6 +5878,11 @@ const docTemplate = `{
},
"/answer/api/v1/tag/synonym": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update tag",
"consumes": [
"application/json"
Expand Down Expand Up @@ -6230,6 +6210,11 @@ const docTemplate = `{
},
"/answer/api/v1/user/email/change/code": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "send email to the user email then change their email",
"consumes": [
"application/json"
Expand Down Expand Up @@ -6310,6 +6295,9 @@ const docTemplate = `{
"/answer/api/v1/user/email/verification/send": {
"post": {
"security": [
{
"ApiKeyAuth": []
},
{
"ApiKeyAuth": []
}
Expand Down Expand Up @@ -6578,6 +6566,11 @@ const docTemplate = `{
},
"/answer/api/v1/user/logout": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "user logout",
"consumes": [
"application/json"
Expand Down Expand Up @@ -6945,11 +6938,6 @@ const docTemplate = `{
},
"/answer/api/v1/user/ranking": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user ranking",
"consumes": [
"application/json"
Expand Down Expand Up @@ -7031,11 +7019,6 @@ const docTemplate = `{
},
"/answer/api/v1/user/staff": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get user staff",
"consumes": [
"application/json"
Expand All @@ -7049,13 +7032,18 @@ const docTemplate = `{
"summary": "get user staff",
"parameters": [
{
"description": "GetUserStaffReq",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.GetUserStaffReq"
}
"type": "string",
"description": "username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "page_size",
"name": "page_size",
"in": "query",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -9422,19 +9410,6 @@ const docTemplate = `{
}
}
},
"schema.GetUserStaffReq": {
"type": "object",
"properties": {
"page_size": {
"type": "integer",
"minimum": 1
},
"username": {
"type": "string",
"maxLength": 500
}
}
},
"schema.GetUserStaffResp": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 8a33548

Please sign in to comment.