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

@@ -85,6 +85,17 @@ type GetStakeLevelListResp struct {
Levels []PointStakeLevel `json:"levels"` // 档位列表
}
type GetStakeLogListReq struct {
RoleID uint64 `form:"role_id,optional"` // 角色id
Page int `form:"page"` // 页码
Size int `form:"size"` // 每页数量
}
type GetStakeLogListResp struct {
Total int `json:"total"` // 总数
List []StakeLog `json:"list"` // 列表
}
type GetTaskListReq struct {
CommunityId uint `form:"community_id,optional"` // 所属社区ID
}
@@ -159,6 +170,16 @@ type StakeLevel struct {
CanRenew bool `json:"can_renew"` // 是否可续约
}
type StakeLog struct {
Id uint `json:"id"` // id
RoleID uint64 `json:"role_id"` // 角色id
LevelId uint `json:"level_id"` // 档位id
Level uint `json:"level"` // 精灵等级
Points int `json:"points"` // 积分数量
Action uint8 `json:"action"` // 操作类型1=质押2=升级3=续约4=解除
CreatedAt int64 `json:"created_at"` // 创建时间
}
type StakeNftList struct {
RoleId uint64 `json:"role_id,optional"` // 角色id
TokenIds []string `json:"token_ids"` // nft列表