email reward
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
|
||||
package types
|
||||
|
||||
type CarvResult struct {
|
||||
Result *Result `json:"result"`
|
||||
Error *Error `json:"error"`
|
||||
}
|
||||
|
||||
type Community struct {
|
||||
Id uint `json:"id"` // 社区ID
|
||||
Title string `json:"title"` // 社区标题
|
||||
@@ -12,6 +17,22 @@ type Community struct {
|
||||
EndAt int64 `json:"end_at"` // 结束时间
|
||||
}
|
||||
|
||||
type EmailKey struct {
|
||||
Email string `form:"email"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
}
|
||||
|
||||
type EmailReward struct {
|
||||
Email string `json:"email"`
|
||||
RewardType string `json:"reward_type"`
|
||||
Value float64 `json:"value"`
|
||||
}
|
||||
|
||||
type Error struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type GetCommunityListResp struct {
|
||||
CommunityList []Community `json:"community_list"` // 社区列表
|
||||
}
|
||||
@@ -32,9 +53,13 @@ type GetTaskRewardResp struct {
|
||||
Points int `json:"points"` // 积分
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
IsValid bool `json:"isValid"`
|
||||
}
|
||||
|
||||
type StakeNftList struct {
|
||||
RoleId uint64 `json:"role_id"` // 角色id
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
RoleId uint64 `json:"role_id,optional"` // 角色id
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
}
|
||||
|
||||
type StakeTaskDetail struct {
|
||||
@@ -73,6 +98,12 @@ type UnStakeNftReq struct {
|
||||
TokenId string `json:"token_id"` // nftID
|
||||
}
|
||||
|
||||
type UnlockChapterReq struct {
|
||||
Email string `form:"email"`
|
||||
Chapter int `form:"chapter"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
}
|
||||
|
||||
type UserNft struct {
|
||||
TokenId string `json:"token_id"` // nftID
|
||||
Image string `json:"image"` // nft图片
|
||||
|
||||
Reference in New Issue
Block a user