package luckydrawser import "time" type PrizeType int32 const ( // 实物 InKindPrize PrizeType = iota + 1 // VIP VipPrize // 金币 GoldPrize ) type VipType int32 const ( // 默认值 Default VipType = iota // 月卡 MonthCard // 季卡 QuarterlyCard // 年卡 YearCard // 终身会员卡 LifelongCard ) type CenterBaseInfo struct { FreeCount int32 `json:"freeCount"` // 免费次数 RefreshTime time.Time `json:"refreshTime"` // 免费次数恢复时间 PrizeList []*PrizeInfo `json:"prizeList"` // 奖品列表 DrawPrize int64 `json:"drawPrize"` // 单次抽奖价格 ActivityTitle string `json:"activityTitle"` // 活动标题 ActivityDesc string `json:"activityDesc"` // 活动注意事项 ActivityDate string `json:"activityDate"` // 活动时间 } // 奖品信息 type PrizeInfo struct { PrizeId int64 `json:"prizeId"` PrizeName string `json:"prizeName"` PrizeImgCover string `json:"prizeImgCover"` PrizePrice int64 `json:"prizePrice"` PrizeCount int32 `json:"prizeCount"` PrizeType int32 `json:"prizeType"` VipCard int32 `json:"vipCard"` } type CenterDrawReq struct { AppId int32 `json:"appId"` // 应用id ActivityId int64 `json:"activityId"` // 活动id UserId int64 `json:"userId"` // 用户id UserName string `json:"userName"` UserAvatar string `json:"userAvatar"` Count int `json:"count"` // 抽奖次数 } // 抽奖返回 type CenterDrawResp struct { List []*PrizeInfo `json:"list"` } // 抽奖记录 type CenterRecordReq struct { AppId int32 `json:"appId"` // 应用id ActivityId int64 `json:"activityId"` // 活动id UserId int64 `json:"userId"` // 用户id } // 抽奖记录返回 type CenterRecordResp struct { List []*RecordInfo `json:"list"` } // 跑马灯 type CenterMarqueeReq struct { AppId int32 `json:"appId"` // 应用id ActivityId int64 `json:"activityId"` // 活动id } // 跑马灯返回 type CenterMarqueeResp struct { List []*RecordInfo `json:"list"` } // 幸运狼友 type CenterLuckUserReq struct { AppId int32 `json:"appId"` // 应用id ActivityId int64 `json:"activityId"` // 活动id } type CenterLuckUserResp struct { List []*RecordInfo `json:"list"` } type RecordInfo struct { PrizeName string `json:"prizeName"` // 奖品名称 CreateTime time.Time `json:"createTime"` // 创建时间 }