nft task reward
This commit is contained in:
@@ -16,6 +16,10 @@ type GetCommunityListResp struct {
|
||||
CommunityList []Community `json:"community_list"` // 社区列表
|
||||
}
|
||||
|
||||
type GetNftListReq struct {
|
||||
WalletAddress string `form:"wallet_address"`
|
||||
}
|
||||
|
||||
type GetTaskListReq struct {
|
||||
CommunityId uint `form:"community_id,optional"` // 所属社区ID
|
||||
}
|
||||
@@ -29,6 +33,7 @@ type GetTaskRewardResp struct {
|
||||
}
|
||||
|
||||
type StakeNftList struct {
|
||||
RoleId uint64 `json:"role_id"` // 角色id
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
}
|
||||
|
||||
@@ -70,8 +75,10 @@ type UnStakeNftReq struct {
|
||||
|
||||
type UserNft struct {
|
||||
TokenId string `json:"token_id"` // nftID
|
||||
Image string `json:"image"` // nft图片
|
||||
HasStake bool `json:"has_stake"` // 是否已质押
|
||||
StakeAt string `json:"stake_at"` // 质押时间
|
||||
RoleId uint64 `json:"role_id"` // 角色id
|
||||
}
|
||||
|
||||
type UserNftList struct {
|
||||
|
||||
Reference in New Issue
Block a user