feat: 拉取积分质押操作记录的接口

This commit is contained in:
2025-04-08 20:25:23 +08:00
parent 8119bcefdc
commit 85daa4b093
12 changed files with 500 additions and 11 deletions

View File

@@ -499,6 +499,57 @@
]
}
},
"/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": "质押积分操作",
@@ -1148,6 +1199,53 @@
"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": {
@@ -1444,6 +1542,56 @@
"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": {