|
|
|
|
package values
|
|
|
|
|
|
|
|
|
|
import "server/common"
|
|
|
|
|
|
|
|
|
|
// GetPromotionsResp 促销中心
|
|
|
|
|
type GetPromotionsResp struct {
|
|
|
|
|
ActivityList []*common.ConfigActivity
|
|
|
|
|
TaskList []*OneTask
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UploadActivityReq 上传活动点击数据
|
|
|
|
|
type UploadActivityReq struct {
|
|
|
|
|
ActivityID int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetAllActivityResp 获取所有活动信息
|
|
|
|
|
type GetAllActivityResp struct {
|
|
|
|
|
List []*common.ConfigActivity
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityAppSpinInfoResp struct {
|
|
|
|
|
List []*common.ConfigAppSpin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ID 转到的物品id
|
|
|
|
|
type ActivityAppSpinDrawResp struct {
|
|
|
|
|
ID int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Count 可转动次数
|
|
|
|
|
type ActivityFreeSpinInfoResp struct {
|
|
|
|
|
Count int
|
|
|
|
|
List []*common.ConfigActivityFreeSpin
|
|
|
|
|
NewReward int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ID 转到的物品id
|
|
|
|
|
// Reward 实际获得的金额
|
|
|
|
|
type ActivityFreeSpinDrawResp struct {
|
|
|
|
|
ID int
|
|
|
|
|
Reward int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Recharge 充值总额
|
|
|
|
|
// Back 可领取的总额
|
|
|
|
|
type ActivityFirstRechargeBackInfoResp struct {
|
|
|
|
|
Recharge int64
|
|
|
|
|
Back int64
|
|
|
|
|
BackPer int64
|
|
|
|
|
CanRecharge bool
|
|
|
|
|
PayAmount int64 // 支付金额
|
|
|
|
|
DrawTime int64 // 领取时间
|
|
|
|
|
Draw bool // 是否领取
|
|
|
|
|
NeedRechargeAmount int64 //
|
|
|
|
|
ChannelList []*common.ConfigPayChannels
|
|
|
|
|
ProductList []*common.ConfigPayProduct
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ID 物品id
|
|
|
|
|
// Reward 奖励
|
|
|
|
|
// Per 概率
|
|
|
|
|
type OneActivityLuckyCodeConfig struct {
|
|
|
|
|
ID int
|
|
|
|
|
Reward int64
|
|
|
|
|
Per string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityLuckyCodeInfoResp struct {
|
|
|
|
|
List []OneActivityLuckyCodeConfig
|
|
|
|
|
TelegramChannel string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityLuckyCodeInfoReq struct {
|
|
|
|
|
Type int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Type 类型,预留用于后续其他活动兑换码
|
|
|
|
|
type ActivityLuckyCodeDrawReq struct {
|
|
|
|
|
Type int
|
|
|
|
|
LuckyCode int `json:"LuckyCode" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ID 奖品id
|
|
|
|
|
type ActivityLuckyCodeDrawResp struct {
|
|
|
|
|
ID int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sign 玩家签到情况数据 二进制 如第一天签了,第二天没签,第三天签了,第四天签了 就是1101
|
|
|
|
|
// Day 当前天数
|
|
|
|
|
// CanSign 能否签到
|
|
|
|
|
type ActivitySignInfoResp struct {
|
|
|
|
|
List []*common.ConfigActivitySign
|
|
|
|
|
Sign int // 累计天数
|
|
|
|
|
Day int
|
|
|
|
|
CanSign bool
|
|
|
|
|
Recharge int64 // 充值金额
|
|
|
|
|
Bet int64 // 下注额度
|
|
|
|
|
RewardCount int64 // 累计奖金
|
|
|
|
|
LatestSignTime int64 // 最新签到时间
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivitySignDrawResp struct {
|
|
|
|
|
Reward int64
|
|
|
|
|
Day int
|
|
|
|
|
Sign int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBreakGiftInfoResp struct {
|
|
|
|
|
Amount int64
|
|
|
|
|
Reward int64
|
|
|
|
|
ProductID int
|
|
|
|
|
CountDown int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Level 周卡等级
|
|
|
|
|
// Rebate 返利率
|
|
|
|
|
// OriginPrice 显示的原价
|
|
|
|
|
// Price 购买价格
|
|
|
|
|
// Reward 购买后立即获得的金额
|
|
|
|
|
// DayReward 每天可领取的金额
|
|
|
|
|
// DayCount 总共可领取天数
|
|
|
|
|
// Discount 折扣券折扣
|
|
|
|
|
// Day 剩余可领取天数
|
|
|
|
|
// Next 下次可领取倒计时,单位秒,如果为0则可领取,为-1时候表示未购买
|
|
|
|
|
type OneWeekCard struct {
|
|
|
|
|
Level int
|
|
|
|
|
Rebate string
|
|
|
|
|
OriginPrice int64
|
|
|
|
|
Price int64
|
|
|
|
|
Reward int64
|
|
|
|
|
DayReward int64
|
|
|
|
|
DayCount int
|
|
|
|
|
Discount string
|
|
|
|
|
Day int
|
|
|
|
|
Next int64
|
|
|
|
|
ProductID int
|
|
|
|
|
TotalReward int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WeekCardInfo struct {
|
|
|
|
|
Min int64
|
|
|
|
|
Val int64
|
|
|
|
|
Max int64
|
|
|
|
|
}
|
|
|
|
|
type ActivityWeekCardInfoResp struct {
|
|
|
|
|
RewardList []WeekCardInfo // 奖励列表
|
|
|
|
|
RewardDay int // 领取天数
|
|
|
|
|
Status bool // 是否可领取
|
|
|
|
|
RechargeStatus bool // 是否充值
|
|
|
|
|
ChannelList []*common.ConfigPayChannels
|
|
|
|
|
ProductList []*common.ConfigPayProduct
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Level 领取的周卡的等级
|
|
|
|
|
type ActivityWeekCardDrawReq struct {
|
|
|
|
|
Level int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reward 获得的奖励
|
|
|
|
|
// DiscountTicket 获得的折扣券折扣
|
|
|
|
|
type ActivityWeekCardDrawResp struct {
|
|
|
|
|
Reward int64
|
|
|
|
|
DiscountTicket string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Spin 可转次数
|
|
|
|
|
// BestNumber 抽到的最大数字
|
|
|
|
|
// LastReward 昨日中奖情况
|
|
|
|
|
type ActivitySlotsResp struct {
|
|
|
|
|
ActivityID int
|
|
|
|
|
Spin int
|
|
|
|
|
BestNumber int
|
|
|
|
|
RankList []*OneActivitySlotsRank
|
|
|
|
|
LastReward *OneActivitySlotsLastReward
|
|
|
|
|
Product OneActivitySlotsProduct
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OneActivitySlotsProduct struct {
|
|
|
|
|
ProductID int
|
|
|
|
|
OriginAmount int64
|
|
|
|
|
Amount int64
|
|
|
|
|
Reward int64
|
|
|
|
|
SpinCount int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Draw 是否已领取奖励
|
|
|
|
|
type OneActivitySlotsLastReward struct {
|
|
|
|
|
Rank int
|
|
|
|
|
Number int
|
|
|
|
|
Reward int64
|
|
|
|
|
Draw bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OneActivitySlotsRank struct {
|
|
|
|
|
UID int
|
|
|
|
|
Nick string
|
|
|
|
|
Avatar string
|
|
|
|
|
Number int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Number 抽中的数字
|
|
|
|
|
type ActivitySlotsDrawResp struct {
|
|
|
|
|
Number int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivitySlotsDrawLastResp struct {
|
|
|
|
|
Reward int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Recharge 充值金额
|
|
|
|
|
// Value 可获得的金额
|
|
|
|
|
// ProductID 商品id
|
|
|
|
|
// CountDown 倒计时
|
|
|
|
|
type ActivityLuckyShopResp struct {
|
|
|
|
|
Recharge int64
|
|
|
|
|
Value int64
|
|
|
|
|
ProductID int
|
|
|
|
|
CountDown int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ProductID 商品id
|
|
|
|
|
// RewardRange 奖励金币范围
|
|
|
|
|
// Open 是否可开启宝箱
|
|
|
|
|
// Buy 是否可购买
|
|
|
|
|
type ActivitySevenDayBoxInfoResp struct {
|
|
|
|
|
ProductID int
|
|
|
|
|
RewardRange []int64
|
|
|
|
|
Open bool
|
|
|
|
|
Buy bool
|
|
|
|
|
Recharge int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reward 获得的金币
|
|
|
|
|
// Discount 获得的折扣券比例,为0时就是没获得
|
|
|
|
|
type ActivitySevenDayBoxDrawResp struct {
|
|
|
|
|
Reward int64
|
|
|
|
|
Discount int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RewardPool 奖池,数组
|
|
|
|
|
// Recharge 需要充值的额度
|
|
|
|
|
// ProductID 商品id
|
|
|
|
|
// Buy 能否购买
|
|
|
|
|
type ActivitySuperInfoResp struct {
|
|
|
|
|
RewardPool []OneActivitySuperBox
|
|
|
|
|
Recharge int64
|
|
|
|
|
ProductID int
|
|
|
|
|
Buy bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Index 奖池序号
|
|
|
|
|
// Status 该奖池状态 0锁 1可开启 2已开启
|
|
|
|
|
// Rewards 改奖池列表
|
|
|
|
|
// Type 物品类型 1为金额 2为折扣券
|
|
|
|
|
// Value 物品数量 Type为2时代表折扣券数额
|
|
|
|
|
type OneActivitySuperBox struct {
|
|
|
|
|
Index int
|
|
|
|
|
Status int
|
|
|
|
|
Rewards []ActivitySuperOneReward
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivitySuperOneReward struct {
|
|
|
|
|
RewardType int
|
|
|
|
|
Reward int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Index 领取的奖池序号
|
|
|
|
|
type ActivitySuperDrawReq struct {
|
|
|
|
|
Index int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivitySuperDrawResp struct {
|
|
|
|
|
Reward ActivitySuperOneReward
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBetDrawInfoResp struct {
|
|
|
|
|
List []*common.ConfigActivityBetDraw // 配置
|
|
|
|
|
Lucky int64 // 幸运值
|
|
|
|
|
SpinInfo []common.LuckyData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBetDrawDrawReq struct {
|
|
|
|
|
WheelType int // 转盘类型
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBetDrawDrawResp struct {
|
|
|
|
|
Reward int64 // 奖励
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBetDrawRecordReq struct {
|
|
|
|
|
WheelType int // 转盘类型
|
|
|
|
|
Page int
|
|
|
|
|
Num int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityBetDrawRecordResp struct {
|
|
|
|
|
RecordList []*common.ESActivityBetDraw // 历史记录
|
|
|
|
|
SelfList []*common.ESActivityBetDraw // 个人记录
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityPopupReq struct {
|
|
|
|
|
JumpType int // 跳转类型
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityPopupResp struct {
|
|
|
|
|
List []*common.ConfigActivityPopup
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ActivityFirstRechargeInfoResp struct {
|
|
|
|
|
List []*common.ConfigActivityPopup
|
|
|
|
|
}
|