特朗普头像任务
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user