nft质押任务逻辑
This commit is contained in:
@@ -28,6 +28,19 @@ type GetTaskRewardResp struct {
|
||||
Points int `json:"points"` // 积分
|
||||
}
|
||||
|
||||
type StakeNftList struct {
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
}
|
||||
|
||||
type StakeTaskDetail struct {
|
||||
StartDate string `json:"start_date"` // 开始日期
|
||||
EndDate string `json:"end_date"` // 结束日期
|
||||
CountDown int `json:"count_down"` // 剩余结算时间
|
||||
ProduceTokensToday float64 `json:"produce_token_today"` // 今日产出代币
|
||||
GameBonus int `json:"game_bonus"` // 游戏加成比率
|
||||
CanReceiveTokens float64 `json:"can_receive_tokens"` // 可领取代币数量
|
||||
}
|
||||
|
||||
type Task struct {
|
||||
Id uint `json:"id"` // 任务ID
|
||||
CommunityId uint `json:"community_id"` // 所属社区ID
|
||||
@@ -51,6 +64,20 @@ type TaskIdPath struct {
|
||||
ID uint `path:"id"` // 任务ID
|
||||
}
|
||||
|
||||
type UnStakeNftReq struct {
|
||||
TokenId string `json:"token_id"` // nftID
|
||||
}
|
||||
|
||||
type UserNft struct {
|
||||
TokenId string `json:"token_id"` // nftID
|
||||
HasStake bool `json:"has_stake"` // 是否已质押
|
||||
StakeAt string `json:"stake_at"` // 质押时间
|
||||
}
|
||||
|
||||
type UserNftList struct {
|
||||
NftList []UserNft `json:"nft_list"`
|
||||
}
|
||||
|
||||
type VerifyTaskResultReq struct {
|
||||
ID uint `form:"id"` // 任务ID
|
||||
Params string `form:"params,optional"` // 额外的参数
|
||||
|
||||
Reference in New Issue
Block a user