nft task reward

This commit is contained in:
lianghuanjie
2024-12-31 20:39:02 +08:00
parent 029289e84c
commit ea86ab71e8
20 changed files with 945 additions and 170 deletions

View File

@@ -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 {