增加任务接口逻辑

This commit is contained in:
lianghuanjie
2024-12-11 21:15:59 +08:00
parent e2ba6924b8
commit 9f4fb0a9d0
24 changed files with 765 additions and 63 deletions

View File

@@ -45,6 +45,36 @@
]
}
},
"/api/task/v1/task/{id}": {
"get": {
"summary": "校验任务结果",
"operationId": "VerifyTaskResult",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/VerifyTaskResultResp"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/api/task/v1/tasks": {
"get": {
"summary": "获取任务列表",
@@ -109,10 +139,6 @@
"tasks"
]
},
"GetTaskRewardReq": {
"type": "object",
"title": "GetTaskRewardReq"
},
"GetTaskRewardResp": {
"type": "object",
"properties": {
@@ -133,6 +159,10 @@
"type": "integer",
"format": "uint32"
},
"community_id": {
"type": "integer",
"format": "uint32"
},
"title": {
"type": "string"
},
@@ -153,29 +183,57 @@
"type": "integer",
"format": "int8"
},
"url": {
"type": "string"
},
"status": {
"type": "integer",
"format": "int8"
},
"start_at": {
"type": "string"
},
"end_at": {
"type": "string"
},
"status": {
"finish_state": {
"type": "integer",
"format": "int8"
"format": "int8",
"description": " 0:未完成 1:待校验 2:已完成未领取 3:已领取"
}
},
"title": "Task",
"required": [
"id",
"community_id",
"title",
"sub_title",
"description",
"points",
"button_text",
"type",
"url",
"status",
"start_at",
"end_at",
"status"
"finish_state"
]
},
"TaskIdPath": {
"type": "object",
"title": "TaskIdPath"
},
"VerifyTaskResultResp": {
"type": "object",
"properties": {
"finish": {
"type": "boolean",
"format": "boolean"
}
},
"title": "VerifyTaskResultResp",
"required": [
"finish"
]
}
},