Files
novatask/doc/swagger/nova.json
2025-05-29 15:51:28 +08:00

2214 lines
51 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"swagger": "2.0",
"info": {
"title": "",
"version": ""
},
"schemes": [
"http",
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/gapi/admin/email_reward": {
"get": {
"summary": "执行发放奖励操作",
"operationId": "SendEmailReward",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"tags": [
"admin"
]
},
"post": {
"summary": "给指定邮箱增加待发放奖励",
"operationId": "AddEmailReward",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/EmailReward"
}
}
],
"tags": [
"admin"
]
}
},
"/gapi/admin/fix_nft_staker": {
"get": {
"summary": "修正 NFT 质押者",
"operationId": "FixNftStaker",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"tags": [
"admin"
]
}
},
"/gapi/admin/game_action": {
"post": {
"summary": "GameAction",
"operationId": "GameAction",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GameActionResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GameActionReq"
}
}
],
"tags": [
"admin"
]
}
},
"/gapi/admin/nft_holder_update": {
"get": {
"summary": "NFT持有者更新",
"operationId": "NftHolderUpdate",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"tags": [
"admin"
]
}
},
"/gapi/admin/stake_by_address": {
"post": {
"summary": "根据地址修复质押",
"operationId": "StakeByAddress",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StakeByAddressReq"
}
}
],
"tags": [
"admin"
]
}
},
"/gapi/admin/stake_settle": {
"get": {
"summary": "软质压手动结算",
"operationId": "StakeSettle",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "date",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"admin"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/carv/bind_role": {
"get": {
"summary": "下载并绑定Castile游戏角色",
"operationId": "DownloadAndBindRole",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/CarvResult"
}
}
},
"parameters": [
{
"name": "x-api-key",
"description": " x-api-key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "begin_time",
"description": "begin_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "end_time",
"description": " end_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "email",
"description": " email",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"carv"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/carv/bind_wallet": {
"get": {
"summary": "注册绑定钱包任务",
"operationId": "BindWallet",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/CarvResult"
}
}
},
"parameters": [
{
"name": "x-api-key",
"description": " x-api-key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "begin_time",
"description": "begin_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "end_time",
"description": " end_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "email",
"description": " email",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"carv"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/carv/check_in_wallet": {
"get": {
"summary": "每日钱包签到任务",
"operationId": "WalletCheckIn",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/CarvResult"
}
}
},
"parameters": [
{
"name": "x-api-key",
"description": " x-api-key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "begin_time",
"description": "begin_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "end_time",
"description": " end_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "email",
"description": " email",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"carv"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/carv/unlock_chapter/{chapter}": {
"get": {
"summary": "游戏主线解锁第x章节",
"operationId": "UnlockChapter",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/CarvResult"
}
}
},
"parameters": [
{
"name": "chapter",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "x-api-key",
"description": " x-api-key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "begin_time",
"description": "begin_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "end_time",
"description": " end_time",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "email",
"description": " email",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"carv"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/game7/task": {
"get": {
"summary": "Game7任务完成检查",
"operationId": "Game7TaskCheck",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/Game7Result"
}
}
},
"parameters": [
{
"name": "x-api-key",
"description": " api key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "email",
"description": " 邮箱",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "type",
"description": " 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄是/否) 6. 是否完成了主线第一章(是/否)",
"in": "query",
"required": true,
"type": "integer",
"format": "int8"
}
],
"tags": [
"game7"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/kgen/task": {
"get": {
"summary": "KGeN任务完成检查",
"operationId": "KGeNTaskCheck",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/KGeNResult"
}
}
},
"parameters": [
{
"name": "x-api-key",
"description": " api key",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "email",
"description": " 邮箱",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "type",
"description": " 1.在官网注册(是否) 2.链接钱包(是否) 3.下载并绑定游戏账号(是否)",
"in": "query",
"required": true,
"type": "integer",
"format": "int8"
}
],
"tags": [
"kgen"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/stakepoint/v1/level": {
"get": {
"summary": "获取质押档位列表",
"operationId": "GetStakeLevelList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetStakeLevelListResp"
}
}
},
"parameters": [
{
"name": "role_id",
"description": " 角色id",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
}
],
"tags": [
"stakepoint"
],
"consumes": [
"multipart/form-data"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/stakepoint/v1/log": {
"get": {
"summary": "积分质押日志列表",
"operationId": "GetStakeLogList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetStakeLogListResp"
}
}
},
"parameters": [
{
"name": "role_id",
"description": " 角色id",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "page",
"description": " 页码",
"in": "query",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "size",
"description": " 每页数量",
"in": "query",
"required": true,
"type": "integer",
"format": "int32"
}
],
"tags": [
"stakepoint"
],
"consumes": [
"multipart/form-data"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/stakepoint/v1/stake": {
"post": {
"summary": "质押积分操作",
"operationId": "StakePoint",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StakePointReq"
}
}
],
"tags": [
"stakepoint"
],
"security": [
{
"apiKey": []
}
]
}
},
"/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": "获取社区列表",
"operationId": "GetCommunityList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetCommunityListResp"
}
}
},
"tags": [
"task"
]
}
},
"/gapi/task/v1/nft/stake": {
"post": {
"summary": "质押NFT",
"operationId": "StakeNft",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "body",
"description": " StakeNftList 质押请求参数NFT列表",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StakeNftList"
}
}
],
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/nft/stake_reward": {
"get": {
"summary": "质押奖励发放列表",
"operationId": "StakeRewardList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/StakeRewardList"
}
}
},
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/nft/unstake": {
"post": {
"summary": "取消质押NFT",
"operationId": "UnStakeNft",
"responses": {
"200": {
"description": "A successful response.",
"schema": {}
}
},
"parameters": [
{
"name": "body",
"description": " UnStakeNftReq 取消质押请求参数",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UnStakeNftReq"
}
}
],
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/nfts": {
"get": {
"summary": "拉取玩家持有的nft列表",
"operationId": "GetNftList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/UserNftList"
}
}
},
"parameters": [
{
"name": "wallet_address",
"in": "query",
"required": true,
"type": "string"
}
],
"tags": [
"task"
],
"consumes": [
"multipart/form-data"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/pioneer_reward": {
"get": {
"summary": "赛季奖励数据",
"operationId": "PioneerReward",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/PioneerReward"
}
}
},
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/reward": {
"get": {
"summary": "领取任务奖励",
"operationId": "GetTaskReward",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetTaskRewardResp"
}
}
},
"parameters": [
{
"name": "id",
"description": " 任务ID",
"in": "query",
"required": true,
"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": []
}
]
}
},
"/gapi/task/v1/task": {
"get": {
"summary": "校验任务结果",
"operationId": "VerifyTaskResult",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/VerifyTaskResultResp"
}
}
},
"parameters": [
{
"name": "id",
"description": " 任务ID",
"in": "query",
"required": true,
"type": "integer",
"format": "uint32"
},
{
"name": "params",
"description": " 额外的参数",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"task"
],
"consumes": [
"multipart/form-data"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/task/stake": {
"get": {
"summary": "质押任务详情",
"operationId": "GetStakeTaskDetail",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/StakeTaskDetail"
}
}
},
"tags": [
"task"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/task/v1/tasks": {
"get": {
"summary": "获取任务列表",
"operationId": "GetTaskList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetTaskListResp"
}
}
},
"parameters": [
{
"name": "community_id",
"description": " 所属社区ID",
"in": "query",
"required": false,
"type": "integer",
"format": "uint32"
}
],
"tags": [
"task"
],
"consumes": [
"multipart/form-data"
]
}
},
"/gapi/transfercastile/v1/getBalance": {
"post": {
"summary": "查询castile代币余额",
"operationId": "GetCastileBalance",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/UserCastileBalanceResp"
}
}
},
"tags": [
"transfercastile"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/transfercastile/v1/list": {
"post": {
"summary": "获取提取castile到游戏的记录",
"operationId": "TransferCastileToGameList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/TransferCastileToGameListResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/TransferCastileToGameListReq"
}
}
],
"tags": [
"transfercastile"
],
"security": [
{
"apiKey": []
}
]
}
},
"/gapi/transfercastile/v1/save": {
"post": {
"summary": "提取castile到游戏",
"operationId": "TransferCastileToGame",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/TransferCastileToGameResp"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/TransferCastileToGameReq"
}
}
],
"tags": [
"transfercastile"
],
"security": [
{
"apiKey": []
}
]
}
}
},
"definitions": {
"BindTriballyReply": {
"type": "object",
"properties": {
"auth_url": {
"type": "string",
"description": " 授权地址"
}
},
"title": "BindTriballyReply",
"required": [
"auth_url"
]
},
"CarvResult": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/Result"
},
"error": {
"$ref": "#/definitions/Error"
}
},
"title": "CarvResult",
"required": [
"result",
"error"
]
},
"Community": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint32",
"description": " 社区ID"
},
"title": {
"type": "string",
"description": " 社区标题"
},
"logo": {
"type": "string",
"description": " 社区图标"
},
"description": {
"type": "string",
"description": " 社区描述"
},
"start_at": {
"type": "integer",
"format": "int64",
"description": " 开始时间"
},
"end_at": {
"type": "integer",
"format": "int64",
"description": " 结束时间"
}
},
"title": "Community",
"required": [
"id",
"title",
"logo",
"description",
"start_at",
"end_at"
]
},
"EmailKey": {
"type": "object",
"properties": {
"begin_time": {
"type": "integer",
"format": "int64",
"description": "begin_time"
},
"end_time": {
"type": "integer",
"format": "int64",
"description": " end_time"
},
"email": {
"type": "string",
"description": " email"
}
},
"title": "EmailKey",
"required": [
"begin_time",
"end_time",
"email"
]
},
"EmailReward": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": " 邮箱,多个邮箱分号隔开"
},
"reward_type": {
"type": "string",
"description": " 奖励类型: points elite_points castile keys"
},
"value": {
"type": "number",
"format": "double",
"description": " 数量"
},
"remark": {
"type": "string",
"description": " 备注"
}
},
"title": "EmailReward",
"required": [
"email",
"reward_type",
"value",
"remark"
]
},
"Error": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
},
"title": "Error",
"required": [
"code",
"message"
]
},
"Game7Result": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/Status",
"description": " 状态"
},
"data": {
"$ref": "#/definitions/Game7ResultData",
"description": " 数据"
}
},
"title": "Game7Result",
"required": [
"status",
"data"
]
},
"Game7ResultData": {
"type": "object",
"properties": {
"isValid": {
"type": "boolean",
"format": "boolean",
"description": " true:是false:否"
}
},
"title": "Game7ResultData",
"required": [
"isValid"
]
},
"Game7TaskCheckReq": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": " 邮箱"
},
"type": {
"type": "integer",
"format": "int8",
"description": " 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄是/否) 6. 是否完成了主线第一章(是/否)"
}
},
"title": "Game7TaskCheckReq",
"required": [
"email",
"type"
]
},
"GameActionReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64"
},
"action": {
"type": "string"
}
},
"title": "GameActionReq",
"required": [
"role_id",
"action"
]
},
"GameActionResp": {
"type": "object",
"properties": {
"ret": {
"type": "integer",
"format": "int32"
},
"msg": {
"type": "string"
},
"data": {
"type": "object"
}
},
"title": "GameActionResp",
"required": [
"ret",
"msg",
"data"
]
},
"GetCommunityListResp": {
"type": "object",
"properties": {
"community_list": {
"type": "array",
"items": {
"$ref": "#/definitions/Community"
},
"description": " 社区列表"
}
},
"title": "GetCommunityListResp",
"required": [
"community_list"
]
},
"GetNftListReq": {
"type": "object",
"properties": {
"wallet_address": {
"type": "string"
}
},
"title": "GetNftListReq",
"required": [
"wallet_address"
]
},
"GetStakeLevelListReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
}
},
"title": "GetStakeLevelListReq",
"required": [
"role_id"
]
},
"GetStakeLevelListResp": {
"type": "object",
"properties": {
"state": {
"type": "integer",
"format": "int32",
"description": " 状态1表示已开启可质押 0表示不可质押"
},
"staking": {
"$ref": "#/definitions/StakeLevel",
"description": " 质押中的档位信息"
},
"renew_level": {
"$ref": "#/definitions/StakeLevel",
"description": " 已续约的档位信息"
},
"levels": {
"type": "array",
"items": {
"$ref": "#/definitions/PointStakeLevel"
},
"description": " 档位列表"
}
},
"title": "GetStakeLevelListResp",
"required": [
"state",
"levels"
]
},
"GetStakeLogListReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"page": {
"type": "integer",
"format": "int32",
"description": " 页码"
},
"size": {
"type": "integer",
"format": "int32",
"description": " 每页数量"
}
},
"title": "GetStakeLogListReq",
"required": [
"page",
"size"
]
},
"GetStakeLogListResp": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int32",
"description": " 总数"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/StakeLog"
},
"description": " 列表"
}
},
"title": "GetStakeLogListResp",
"required": [
"total",
"list"
]
},
"GetTaskListReq": {
"type": "object",
"properties": {
"community_id": {
"type": "integer",
"format": "uint32",
"description": " 所属社区ID"
}
},
"title": "GetTaskListReq"
},
"GetTaskListResp": {
"type": "object",
"properties": {
"tasks": {
"type": "array",
"items": {
"$ref": "#/definitions/Task"
}
}
},
"title": "GetTaskListResp",
"required": [
"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": {
"points": {
"type": "integer",
"format": "int32",
"description": " 积分"
}
},
"title": "GetTaskRewardResp",
"required": [
"points"
]
},
"KGeNResult": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/KGeNStatus",
"description": " 状态"
},
"data": {
"$ref": "#/definitions/KGeNResultData",
"description": " 数据"
}
},
"title": "KGeNResult",
"required": [
"status",
"data"
]
},
"KGeNResultData": {
"type": "object",
"properties": {
"isValid": {
"type": "boolean",
"format": "boolean",
"description": " true:是false:否"
}
},
"title": "KGeNResultData",
"required": [
"isValid"
]
},
"KGeNStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32",
"description": " 状态码"
},
"msg": {
"type": "string",
"description": " 状态信息"
}
},
"title": "KGeNStatus",
"required": [
"code",
"msg"
]
},
"KGeNTaskCheckReq": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": " 邮箱"
},
"type": {
"type": "integer",
"format": "int8",
"description": " 1.在官网注册(是否) 2.链接钱包(是否) 3.下载并绑定游戏账号(是否)"
}
},
"title": "KGeNTaskCheckReq",
"required": [
"email",
"type"
]
},
"PioneerReward": {
"type": "object",
"properties": {
"in_game": {
"type": "number",
"format": "double",
"description": " 游戏代币"
},
"stake": {
"type": "number",
"format": "double",
"description": " 挖矿代币"
},
"ambassador": {
"type": "number",
"format": "double",
"description": " 大使额外代币"
},
"nft_bonus": {
"type": "number",
"format": "double",
"description": " nft 加成"
},
"total": {
"type": "number",
"format": "double",
"description": " 总额"
}
},
"title": "PioneerReward",
"required": [
"in_game",
"stake",
"ambassador",
"nft_bonus",
"total"
]
},
"PointStakeLevel": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": " 档位id"
},
"title": {
"type": "string",
"description": " 档位标题"
},
"elf_name": {
"type": "string",
"description": " 精灵名称"
},
"level": {
"type": "integer",
"format": "int32",
"description": " 精灵等级"
},
"points": {
"type": "integer",
"format": "int32",
"description": " 积分数量"
},
"days": {
"type": "number",
"format": "double",
"description": " 质押天数"
},
"renew_days": {
"type": "number",
"format": "double",
"description": " 续期天数"
},
"rate": {
"type": "number",
"format": "double",
"description": " 返利比率"
}
},
"title": "PointStakeLevel",
"required": [
"id",
"title",
"elf_name",
"level",
"points",
"days",
"renew_days",
"rate"
]
},
"Result": {
"type": "object",
"properties": {
"isValid": {
"type": "boolean",
"format": "boolean"
}
},
"title": "Result",
"required": [
"isValid"
]
},
"StakeByAddressReq": {
"type": "object",
"properties": {
"address": {
"type": "array",
"items": {
"type": "string"
}
}
},
"title": "StakeByAddressReq",
"required": [
"address"
]
},
"StakeLevel": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string",
"description": " 档位标题"
},
"level": {
"type": "integer",
"format": "int32",
"description": " 精灵等级"
},
"elf_name": {
"type": "string",
"description": " 精灵名称"
},
"points": {
"type": "integer",
"format": "int32",
"description": " 积分数量"
},
"days": {
"type": "number",
"format": "double",
"description": " 质押天数"
},
"renew_days": {
"type": "number",
"format": "double",
"description": " 续期天数"
},
"start_time": {
"type": "integer",
"format": "int64",
"description": " 开始时间"
},
"end_time": {
"type": "integer",
"format": "int64",
"description": " 结束时间"
},
"can_renew": {
"type": "boolean",
"format": "boolean",
"description": " 是否可续约"
}
},
"title": "StakeLevel",
"required": [
"id",
"title",
"level",
"elf_name",
"points",
"days",
"renew_days",
"start_time",
"end_time",
"can_renew"
]
},
"StakeLog": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint32",
"description": " id"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"level_id": {
"type": "integer",
"format": "uint32",
"description": " 档位id"
},
"level": {
"type": "integer",
"format": "uint32",
"description": " 精灵等级"
},
"points": {
"type": "integer",
"format": "int32",
"description": " 积分数量"
},
"action": {
"type": "integer",
"format": "uint8",
"description": " 操作类型1=质押2=升级3=续约4=解除"
},
"created_at": {
"type": "integer",
"format": "int64",
"description": " 创建时间"
}
},
"title": "StakeLog",
"required": [
"id",
"role_id",
"level_id",
"level",
"points",
"action",
"created_at"
]
},
"StakeNftList": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"token_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": " nft列表"
}
},
"title": "StakeNftList",
"required": [
"token_ids"
]
},
"StakePointReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"level_id": {
"type": "integer",
"format": "int32",
"description": " 档位id"
},
"action": {
"type": "integer",
"format": "int32",
"description": " 操作类型1表示质押2表示升级质押 3表示续约"
}
},
"title": "StakePointReq",
"required": [
"role_id",
"level_id",
"action"
]
},
"StakeReward": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": " 日期"
},
"reward": {
"type": "number",
"format": "double",
"description": " 当日发放奖励"
}
},
"title": "StakeReward",
"required": [
"date",
"reward"
]
},
"StakeRewardList": {
"type": "object",
"properties": {
"reward_list": {
"type": "array",
"items": {
"$ref": "#/definitions/StakeReward"
}
}
},
"title": "StakeRewardList",
"required": [
"reward_list"
]
},
"StakeSettleReq": {
"type": "object",
"properties": {
"date": {
"type": "string"
}
},
"title": "StakeSettleReq",
"required": [
"date"
]
},
"StakeTaskDetail": {
"type": "object",
"properties": {
"start_date": {
"type": "string",
"description": " 开始日期"
},
"end_date": {
"type": "string",
"description": " 结束日期"
},
"count_down": {
"type": "integer",
"format": "int32",
"description": " 剩余结算时间"
},
"produce_token_today": {
"type": "number",
"format": "double",
"description": " 今日产出代币"
},
"game_bonus": {
"type": "integer",
"format": "int32",
"description": " 游戏加成比率"
},
"can_receive_tokens": {
"type": "number",
"format": "double",
"description": " 可领取代币数量"
},
"total_income_tokens": {
"type": "number",
"format": "double",
"description": " 累计收益"
}
},
"title": "StakeTaskDetail",
"required": [
"start_date",
"end_date",
"count_down",
"produce_token_today",
"game_bonus",
"can_receive_tokens",
"total_income_tokens"
]
},
"Status": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32",
"description": " 状态码"
},
"msg": {
"type": "string",
"description": " 状态信息"
}
},
"title": "Status",
"required": [
"code",
"msg"
]
},
"Task": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint32",
"description": " 任务ID"
},
"community_id": {
"type": "integer",
"format": "uint32",
"description": " 所属社区ID"
},
"title": {
"type": "string",
"description": " 任务标题"
},
"sub_title": {
"type": "string",
"description": " 副标题"
},
"description": {
"type": "string",
"description": " 任务描述"
},
"points": {
"type": "integer",
"format": "int32",
"description": " 任务积分"
},
"button_text": {
"type": "string",
"description": " 按钮文字"
},
"params": {
"type": "string",
"description": " 参数"
},
"type": {
"type": "integer",
"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,10=invite_user,11=ambassador_task"
},
"url": {
"type": "string",
"description": " 跳转链接"
},
"sort": {
"type": "integer",
"format": "int32",
"description": " 排序"
},
"start_at": {
"type": "string",
"description": " 开始时间"
},
"end_at": {
"type": "string",
"description": " 结束时间"
},
"has_finish_count": {
"type": "integer",
"format": "int32",
"description": " 当前完成进度"
},
"total_count": {
"type": "integer",
"format": "int32",
"description": " 总进度"
},
"finish_state": {
"type": "integer",
"format": "int8",
"description": " 0:未完成 1:待校验 2:已完成未领取 3:已领取 4:不可参与"
}
},
"title": "Task",
"required": [
"id",
"community_id",
"title",
"sub_title",
"description",
"points",
"button_text",
"params",
"type",
"url",
"sort",
"start_at",
"end_at",
"has_finish_count",
"total_count",
"finish_state"
]
},
"TransferCastileToGameListReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"page": {
"type": "integer",
"format": "int32",
"default": "1",
"description": " 页码"
},
"size": {
"type": "integer",
"format": "int32",
"default": "10",
"description": " 每页数量",
"maximum": 100,
"minimum": 10
}
},
"title": "TransferCastileToGameListReq"
},
"TransferCastileToGameListResp": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int32",
"description": " 总数"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/TransferCastileToGameResp"
},
"description": " 列表"
}
},
"title": "TransferCastileToGameListResp",
"required": [
"total",
"list"
]
},
"TransferCastileToGameReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"amount": {
"type": "integer",
"format": "int64",
"description": " 数量"
}
},
"title": "TransferCastileToGameReq",
"required": [
"role_id",
"amount"
]
},
"TransferCastileToGameResp": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": " id"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"amount": {
"type": "integer",
"format": "int64",
"description": " 数量"
},
"status": {
"type": "integer",
"format": "int64",
"description": " 状态"
},
"created_at": {
"type": "string",
"description": " 创建时间"
}
},
"title": "TransferCastileToGameResp",
"required": [
"id",
"role_id",
"amount",
"status",
"created_at"
]
},
"UnStakeNftReq": {
"type": "object",
"properties": {
"token_id": {
"type": "string",
"description": " nftID"
}
},
"title": "UnStakeNftReq",
"required": [
"token_id"
]
},
"UnlockChapterReq": {
"type": "object",
"properties": {
"begin_time": {
"type": "integer",
"format": "int64",
"description": "begin_time"
},
"end_time": {
"type": "integer",
"format": "int64",
"description": " end_time"
},
"email": {
"type": "string",
"description": " email"
}
},
"title": "UnlockChapterReq",
"required": [
"begin_time",
"end_time",
"email"
]
},
"UserCastileBalanceResp": {
"type": "object",
"properties": {
"total_castile": {
"type": "integer",
"format": "int32",
"description": "总数"
},
"transfer_amount": {
"type": "integer",
"format": "int32",
"description": "已转回游戏内的数量"
},
"total_balance": {
"type": "integer",
"format": "int32",
"description": "castile当前余额"
}
},
"title": "UserCastileBalanceResp",
"required": [
"total_castile",
"transfer_amount",
"total_balance"
]
},
"UserNft": {
"type": "object",
"properties": {
"token_id": {
"type": "string",
"description": " nftID"
},
"image": {
"type": "string",
"description": " nft图片"
},
"has_stake": {
"type": "boolean",
"format": "boolean",
"description": " 是否已质押"
},
"stake_at": {
"type": "string",
"description": " 质押时间"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
}
},
"title": "UserNft",
"required": [
"token_id",
"image",
"has_stake",
"stake_at",
"role_id"
]
},
"UserNftList": {
"type": "object",
"properties": {
"nft_list": {
"type": "array",
"items": {
"$ref": "#/definitions/UserNft"
}
}
},
"title": "UserNftList",
"required": [
"nft_list"
]
},
"VerifyTaskResultReq": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint32",
"description": " 任务ID"
},
"params": {
"type": "string",
"description": " 额外的参数"
}
},
"title": "VerifyTaskResultReq",
"required": [
"id"
]
},
"VerifyTaskResultResp": {
"type": "object",
"properties": {
"finish": {
"type": "boolean",
"format": "boolean",
"description": " 是否完成"
}
},
"title": "VerifyTaskResultResp",
"required": [
"finish"
]
}
},
"securityDefinitions": {
"apiKey": {
"type": "apiKey",
"description": "Enter JWT Bearer token **_only_**",
"name": "Authorization",
"in": "header"
}
}
}