feat: bind tribally account

This commit is contained in:
2025-03-20 17:15:54 +08:00
parent 3f09a65806
commit 937244a1a0
10 changed files with 202 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ service novatask {
@doc "赛季奖励数据"
@handler PioneerReward
get /pioneer_reward returns (PioneerReward)
@doc "绑定Tribally账号"
@handler BindTribally
get /bind_tribally returns (BindTriballyReply)
}
type GetTaskListReq {
@@ -168,3 +172,7 @@ type PioneerReward {
Total float64 `json:"total"` // 总额
}
type BindTriballyReply {
AuthUrl string `json:"auth_url"` // 授权地址
}

View File

@@ -437,6 +437,28 @@
]
}
},
"/gapi/task/v1/bind_tribally": {
"get": {
"summary": "绑定Tribally账号",
"operationId": "BindTribally",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/BindTriballyReply"
}
}
},
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/community": {
"get": {
"summary": "获取社区列表",
@@ -732,6 +754,19 @@
}
},
"definitions": {
"BindTriballyReply": {
"type": "object",
"properties": {
"auth_url": {
"type": "string",
"description": " 授权地址"
}
},
"title": "BindTriballyReply",
"required": [
"auth_url"
]
},
"CarvResult": {
"type": "object",
"properties": {