feat: 积分质押功能
This commit is contained in:
@@ -55,6 +55,17 @@ type Game7TaskCheckReq struct {
|
||||
Type int8 `form:"type"` // 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄(是/否) 6. 是否完成了主线第一章(是/否)
|
||||
}
|
||||
|
||||
type GameActionReq struct {
|
||||
RoleId int64 `json:"role_id"`
|
||||
Action string `json:"action"`
|
||||
}
|
||||
|
||||
type GameActionResp struct {
|
||||
Ret int `json:"ret"`
|
||||
Msg string `json:"msg"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
type GetCommunityListResp struct {
|
||||
CommunityList []Community `json:"community_list"` // 社区列表
|
||||
}
|
||||
@@ -63,6 +74,17 @@ type GetNftListReq struct {
|
||||
WalletAddress string `form:"wallet_address"`
|
||||
}
|
||||
|
||||
type GetStakeLevelListReq struct {
|
||||
RoleID int64 `form:"role_id"` // 角色id
|
||||
}
|
||||
|
||||
type GetStakeLevelListResp struct {
|
||||
State int `json:"state"` // 状态:1表示已开启,可质押, 0表示不可质押
|
||||
Staking *StakeLevel `json:"staking,optional"` // 质押中的档位信息
|
||||
RenewLevel *StakeLevel `json:"renew_level,optional"` // 已续约的档位信息
|
||||
Levels []PointStakeLevel `json:"levels"` // 档位列表
|
||||
}
|
||||
|
||||
type GetTaskListReq struct {
|
||||
CommunityId uint `form:"community_id,optional"` // 所属社区ID
|
||||
}
|
||||
@@ -108,6 +130,15 @@ type PioneerReward struct {
|
||||
Total float64 `json:"total"` // 总额
|
||||
}
|
||||
|
||||
type PointStakeLevel struct {
|
||||
Id int `json:"id"` // 档位id
|
||||
Title string `json:"title"` // 档位标题
|
||||
Level int `json:"level"` // 精灵等级
|
||||
Points int `json:"points"` // 积分数量
|
||||
Days float64 `json:"days"` // 质押天数
|
||||
RenewDays float64 `json:"renew_days"` // 续期天数
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
IsValid bool `json:"isValid"`
|
||||
}
|
||||
@@ -116,11 +147,29 @@ type StakeByAddressReq struct {
|
||||
Address []string `json:"address"`
|
||||
}
|
||||
|
||||
type StakeLevel struct {
|
||||
Id int `json:"id"`
|
||||
Title string `json:"title"` // 档位标题
|
||||
Level int `json:"level"` // 精灵等级
|
||||
Points int `json:"points"` // 积分数量
|
||||
Days float64 `json:"days"` // 质押天数
|
||||
RenewDays float64 `json:"renew_days"` // 续期天数
|
||||
StartTime string `json:"start_time"` // 开始时间
|
||||
EndTime string `json:"end_time"` // 结束时间
|
||||
CanRenew bool `json:"can_renew"` // 是否可续约
|
||||
}
|
||||
|
||||
type StakeNftList struct {
|
||||
RoleId uint64 `json:"role_id,optional"` // 角色id
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
}
|
||||
|
||||
type StakePointReq struct {
|
||||
RoleID int64 `json:"role_id"` // 角色id
|
||||
LevelId int `json:"level_id"` // 档位id
|
||||
Action int `json:"action"` // 操作类型:1表示质押,2表示升级质押, 3表示续约
|
||||
}
|
||||
|
||||
type StakeReward struct {
|
||||
Date string `json:"date"` // 日期
|
||||
Reward float64 `json:"reward"` // 当日发放奖励
|
||||
|
||||
Reference in New Issue
Block a user