feat: 拉取积分质押操作记录的接口
This commit is contained in:
@@ -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列表
|
||||
|
||||
Reference in New Issue
Block a user