特朗普头像任务

This commit is contained in:
lianghuanjie
2025-01-20 21:55:43 +08:00
parent 38bb283fa1
commit 9c742c50c3
18 changed files with 266 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ service novatask {
@doc "领取任务奖励"
@handler GetTaskReward
get /reward/:id (TaskIdPath) returns (GetTaskRewardResp)
get /reward (GetTaskRewardReq) returns (GetTaskRewardResp)
@doc "拉取玩家持有的nft列表"
@handler GetNftList
@@ -81,8 +81,9 @@ type VerifyTaskResultReq {
Params string `form:"params,optional"` // 额外的参数
}
type TaskIdPath {
ID uint `path:"id"` // 任务ID
type GetTaskRewardReq {
ID uint `form:"id"` // 任务ID
RoleId int64 `form:"role_id,optional"` // 游戏角色ID
}
type VerifyTaskResultResp {

View File

@@ -571,7 +571,7 @@
]
}
},
"/gapi/task/v1/reward/{id}": {
"/gapi/task/v1/reward": {
"get": {
"summary": "领取任务奖励",
"operationId": "GetTaskReward",
@@ -586,14 +586,27 @@
"parameters": [
{
"name": "id",
"in": "path",
"description": " 任务ID",
"in": "query",
"required": true,
"type": "string"
"type": "integer",
"format": "uint32"
},
{
"name": "role_id",
"description": " 游戏角色ID",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
"task"
],
"consumes": [
"multipart/form-data"
],
"security": [
{
"apiKey": []
@@ -930,6 +943,25 @@
"tasks"
]
},
"GetTaskRewardReq": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint32",
"description": " 任务ID"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 游戏角色ID"
}
},
"title": "GetTaskRewardReq",
"required": [
"id"
]
},
"GetTaskRewardResp": {
"type": "object",
"properties": {
@@ -1272,10 +1304,6 @@
"finish_state"
]
},
"TaskIdPath": {
"type": "object",
"title": "TaskIdPath"
},
"UnStakeNftReq": {
"type": "object",
"properties": {