完善任务接口逻辑以及Eran事件上报接入

This commit is contained in:
lianghuanjie
2024-12-13 16:15:20 +08:00
parent 9f4fb0a9d0
commit f9084a0eb3
20 changed files with 408 additions and 84 deletions

View File

@@ -90,8 +90,9 @@
"parameters": [
{
"name": "community_id",
"description": " 所属社区ID",
"in": "query",
"required": true,
"required": false,
"type": "integer",
"format": "uint32"
}
@@ -116,13 +117,11 @@
"properties": {
"community_id": {
"type": "integer",
"format": "uint32"
"format": "uint32",
"description": " 所属社区ID"
}
},
"title": "GetTaskListReq",
"required": [
"community_id"
]
"title": "GetTaskListReq"
},
"GetTaskListResp": {
"type": "object",
@@ -144,7 +143,8 @@
"properties": {
"points": {
"type": "integer",
"format": "int32"
"format": "int32",
"description": " 积分"
}
},
"title": "GetTaskRewardResp",
@@ -157,44 +157,56 @@
"properties": {
"id": {
"type": "integer",
"format": "uint32"
"format": "uint32",
"description": " 任务ID"
},
"community_id": {
"type": "integer",
"format": "uint32"
"format": "uint32",
"description": " 所属社区ID"
},
"title": {
"type": "string"
"type": "string",
"description": " 任务标题"
},
"sub_title": {
"type": "string"
"type": "string",
"description": " 副标题"
},
"description": {
"type": "string"
"type": "string",
"description": " 任务描述"
},
"points": {
"type": "integer",
"format": "int32"
"format": "int32",
"description": " 任务积分"
},
"button_text": {
"type": "string"
"type": "string",
"description": " 按钮文字"
},
"type": {
"type": "integer",
"format": "int8"
"format": "int8",
"description": " 任务类型: 0=follow_twitter,1=bind_twitter,2=cast_twitter,3=publish_twitter,4=repost_twitter,5=watch_youtube,6=follow_youtube,7=bind_discord,8=join_telegram,9=daily_pay"
},
"url": {
"type": "string"
"type": "string",
"description": " 跳转链接"
},
"status": {
"type": "integer",
"format": "int8"
"format": "int8",
"description": " 任务状态: 0=不启用1=启用"
},
"start_at": {
"type": "string"
"type": "string",
"description": " 开始时间"
},
"end_at": {
"type": "string"
"type": "string",
"description": " 结束时间"
},
"finish_state": {
"type": "integer",
@@ -228,7 +240,8 @@
"properties": {
"finish": {
"type": "boolean",
"format": "boolean"
"format": "boolean",
"description": " 是否完成"
}
},
"title": "VerifyTaskResultResp",