Skip to content

Commit

Permalink
wip: more cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed May 29, 2024
1 parent 6577ca8 commit 0a3662d
Show file tree
Hide file tree
Showing 16 changed files with 301 additions and 558 deletions.
118 changes: 0 additions & 118 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,61 +578,6 @@ const docTemplate = `{
}
},
"/games/{id}": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Game"
],
"summary": "比赛查询",
"parameters": [
{
"type": "integer",
"name": "id",
"in": "query"
},
{
"type": "boolean",
"name": "is_enabled",
"in": "query"
},
{
"type": "integer",
"name": "page",
"in": "query"
},
{
"type": "integer",
"name": "size",
"in": "query"
},
{
"type": "string",
"name": "sort_key",
"in": "query"
},
{
"type": "string",
"name": "sort_order",
"in": "query"
},
{
"type": "string",
"name": "title",
"in": "query"
}
],
"responses": {}
},
"put": {
"security": [
{
Expand Down Expand Up @@ -901,26 +846,6 @@ const docTemplate = `{
"responses": {}
}
},
"/games/{id}/scoreboard": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Game"
],
"summary": "查询比赛的积分榜",
"responses": {}
}
},
"/games/{id}/teams": {
"get": {
"security": [
Expand Down Expand Up @@ -1128,26 +1053,6 @@ const docTemplate = `{
}
},
"/pods/{id}": {
"get": {
"description": "实例查询",
"produces": [
"application/json"
],
"tags": [
"Pod"
],
"summary": "实例查询",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {}
},
"put": {
"security": [
{
Expand Down Expand Up @@ -1434,29 +1339,6 @@ const docTemplate = `{
}
},
"/teams/{id}": {
"get": {
"description": "查找团队",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Team"
],
"summary": "查找团队",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {}
},
"put": {
"description": "更新团队",
"consumes": [
Expand Down
118 changes: 0 additions & 118 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,61 +569,6 @@
}
},
"/games/{id}": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Game"
],
"summary": "比赛查询",
"parameters": [
{
"type": "integer",
"name": "id",
"in": "query"
},
{
"type": "boolean",
"name": "is_enabled",
"in": "query"
},
{
"type": "integer",
"name": "page",
"in": "query"
},
{
"type": "integer",
"name": "size",
"in": "query"
},
{
"type": "string",
"name": "sort_key",
"in": "query"
},
{
"type": "string",
"name": "sort_order",
"in": "query"
},
{
"type": "string",
"name": "title",
"in": "query"
}
],
"responses": {}
},
"put": {
"security": [
{
Expand Down Expand Up @@ -892,26 +837,6 @@
"responses": {}
}
},
"/games/{id}/scoreboard": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Game"
],
"summary": "查询比赛的积分榜",
"responses": {}
}
},
"/games/{id}/teams": {
"get": {
"security": [
Expand Down Expand Up @@ -1119,26 +1044,6 @@
}
},
"/pods/{id}": {
"get": {
"description": "实例查询",
"produces": [
"application/json"
],
"tags": [
"Pod"
],
"summary": "实例查询",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {}
},
"put": {
"security": [
{
Expand Down Expand Up @@ -1425,29 +1330,6 @@
}
},
"/teams/{id}": {
"get": {
"description": "查找团队",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Team"
],
"summary": "查找团队",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {}
},
"put": {
"description": "更新团队",
"consumes": [
Expand Down
75 changes: 0 additions & 75 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,39 +1153,6 @@ paths:
summary: 删除比赛
tags:
- Game
get:
consumes:
- application/json
parameters:
- in: query
name: id
type: integer
- in: query
name: is_enabled
type: boolean
- in: query
name: page
type: integer
- in: query
name: size
type: integer
- in: query
name: sort_key
type: string
- in: query
name: sort_order
type: string
- in: query
name: title
type: string
produces:
- application/json
responses: {}
security:
- ApiKeyAuth: []
summary: 比赛查询
tags:
- Game
put:
consumes:
- application/json
Expand Down Expand Up @@ -1332,18 +1299,6 @@ paths:
summary: 保存头图
tags:
- Game
/games/{id}/scoreboard:
get:
consumes:
- application/json
produces:
- application/json
responses: {}
security:
- ApiKeyAuth: []
summary: 查询比赛的积分榜
tags:
- Game
/games/{id}/teams:
get:
consumes:
Expand Down Expand Up @@ -1488,20 +1443,6 @@ paths:
summary: 停止并删除容器
tags:
- Pod
get:
description: 实例查询
parameters:
- description: id
in: path
name: id
required: true
type: string
produces:
- application/json
responses: {}
summary: 实例查询
tags:
- Pod
put:
description: 容器续期
parameters:
Expand Down Expand Up @@ -1683,22 +1624,6 @@ paths:
summary: 删除团队
tags:
- Team
get:
consumes:
- application/json
description: 查找团队
parameters:
- description: id
in: path
name: id
required: true
type: string
produces:
- application/json
responses: {}
summary: 查找团队
tags:
- Team
put:
consumes:
- application/json
Expand Down
Loading

0 comments on commit 0a3662d

Please sign in to comment.