增加提取castile到游戏的数据库表,定义API接口等;

This commit is contained in:
yuming88
2025-04-28 14:12:44 +08:00
parent 109d76cd2e
commit e50137a90e
14 changed files with 692 additions and 3 deletions

View File

@@ -894,6 +894,70 @@
"multipart/form-data"
]
}
},
"/gapi/transfercastile/v1/list": {
"post": {
"summary": "获取提取castile到游戏的记录",
"operationId": "TransferCastileToGameList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/TransferCastileToGameResp"
}
}
},
"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": {
@@ -1859,6 +1923,115 @@
"finish_state"
]
},
"TransferCastileToGameListReq": {
"type": "object",
"properties": {
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
}
},
"title": "TransferCastileToGameListReq"
},
"TransferCastileToGameListResp": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int32",
"description": " 总数"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/TransferToGameLog"
},
"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": " 数量"
},
"elf_name": {
"type": "string",
"description": " 状态"
}
},
"title": "TransferCastileToGameResp"
},
"TransferToGameLog": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": " id"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"amount": {
"type": "integer",
"format": "int64",
"description": " 数量"
},
"elf_name": {
"type": "string",
"description": " 状态"
}
},
"title": "TransferToGameLog",
"required": [
"id",
"role_id",
"amount",
"elf_name"
]
},
"UnStakeNftReq": {
"type": "object",
"properties": {