add getTeam method

This commit is contained in:
2025-05-17 01:35:40 +07:00
parent f710207782
commit 6177a05eac
6 changed files with 521 additions and 44 deletions
+64 -3
View File
@@ -34,6 +34,26 @@
}
},
"/teams": {
"get": {
"operationId": "EveningDetective_GetTeams",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetTeamsRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"EveningDetective"
]
},
"post": {
"operationId": "EveningDetective_AddTeams",
"responses": {
@@ -89,17 +109,58 @@
}
}
},
"evening_detectiveApplication": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"evening_detectiveGetTeamsRsp": {
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveTeamAdvanced"
}
}
}
},
"evening_detectivePingRsp": {
"type": "object"
},
"evening_detectiveTeam": {
"type": "object",
"properties": {
"Name": {
"name": {
"type": "string"
}
}
},
"evening_detectiveTeamAdvanced": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"name": {
"type": "string"
},
"spendTime": {
"type": "string",
"format": "int64"
},
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveApplication"
}
}
}
},
"evening_detectiveTeamFull": {
"type": "object",
"properties": {
@@ -107,10 +168,10 @@
"type": "string",
"format": "int64"
},
"Name": {
"name": {
"type": "string"
},
"Password": {
"password": {
"type": "string"
}
}