Files
novatask/internal/types/types.go
lianghuanjie b098e50eb0 email reward
2025-01-03 20:44:03 +08:00

127 lines
4.0 KiB
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.3
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"` // 社区标题
Logo string `json:"logo"` // 社区图标
Description string `json:"description"` // 社区描述
StartAt int64 `json:"start_at"` // 开始时间
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"` // 社区列表
}
type GetNftListReq struct {
WalletAddress string `form:"wallet_address"`
}
type GetTaskListReq struct {
CommunityId uint `form:"community_id,optional"` // 所属社区ID
}
type GetTaskListResp struct {
Tasks []Task `json:"tasks"`
}
type GetTaskRewardResp struct {
Points int `json:"points"` // 积分
}
type Result struct {
IsValid bool `json:"isValid"`
}
type StakeNftList struct {
RoleId uint64 `json:"role_id,optional"` // 角色id
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
Title string `json:"title"` // 任务标题
SubTitle string `json:"sub_title"` // 副标题
Description string `json:"description"` // 任务描述
Points int `json:"points"` // 任务积分
ButtonText string `json:"button_text"` // 按钮文字
Params string `json:"params"` // 参数
Type int8 `json:"type"` // 任务类型: 0=follow_twitter,1=bind_twitter,2=cast_twitter,3=publish_twitter,4=repost_twitter,5=watch_youtube,6=follow_youtube,7=bind_discord,8=join_telegram,9=daily_pay,10=invite_user
Url string `json:"url"` // 跳转链接
Sort int `json:"sort"` // 排序
StartAt string `json:"start_at"` // 开始时间
EndAt string `json:"end_at"` // 结束时间
HasFinishCount int `json:"has_finish_count"` // 当前完成进度
TotalCount int `json:"total_count"` // 总进度
FinishState int8 `json:"finish_state"` // 0:未完成 1:待校验 2:已完成未领取 3:已领取
}
type TaskIdPath struct {
ID uint `path:"id"` // 任务ID
}
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图片
HasStake bool `json:"has_stake"` // 是否已质押
StakeAt string `json:"stake_at"` // 质押时间
RoleId uint64 `json:"role_id"` // 角色id
}
type UserNftList struct {
NftList []UserNft `json:"nft_list"`
}
type VerifyTaskResultReq struct {
ID uint `form:"id"` // 任务ID
Params string `form:"params,optional"` // 额外的参数
}
type VerifyTaskResultResp struct {
Finish bool `json:"finish"` // 是否完成
}