data.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package coupontask
  2. const (
  3. status_active = iota // 进行中
  4. status_complete // 完成,可领取
  5. status_awardedMultiple // 已领取多倍
  6. TeacherAdd = 50 // 师徒绑定加成
  7. PlayMultiple = 1 // 播放赠送红包券数
  8. ItemID = 620100 // 红包券ID
  9. )
  10. // 播放配置
  11. type videoConfig struct {
  12. PlayTimes int // 播放次数
  13. CouponLimit int // 券上限
  14. }
  15. // 任务
  16. type task struct {
  17. TaskId int // 任务ID
  18. GameID int // 游戏ID
  19. BaseScore int // 底分
  20. Players int // 玩家人数
  21. DoubleType int // 加倍类型(0=普通场 1=加倍场 10=超级加倍普通场 11=超级加倍加倍场)
  22. Coupons int // 券数量
  23. }
  24. // 用户任务
  25. type UserTask struct {
  26. UserTaskId int // 用户任务ID
  27. GameId int // 游戏ID
  28. ChineseName string // 游戏名称
  29. BaseScore int // 底分
  30. GameCount int // 游戏局数(1~3局)
  31. Coupons int // 数量
  32. GiftStatus int // 状态(0=进行中 1=已领取 2=已领取多倍)
  33. Crdate string // 时间
  34. }
  35. // 基础信息
  36. type BaseInfo struct {
  37. TodayCount int // 今天券数量
  38. BaseLimit int // 基础上限(永久)
  39. TmpAdd int // 临时加成
  40. MaxAddTimes int // 最大加成次数
  41. PlayTimes int // 观看次数
  42. updateTime int // 时间戳
  43. isFacebook int // 是否Facebook账号
  44. }
  45. // 奖励信息
  46. type (
  47. award_req struct {
  48. UserTaskId int // 用户任务ID
  49. UserId int // 用户ID
  50. Status int // 状态(1=领取 2=领取多倍)
  51. }
  52. award_resp struct {
  53. RetCode int // 操作结果
  54. UserTaskId int // 用户任务ID
  55. Coupons int // 券数量
  56. TodayCount int // 今天券数量
  57. }
  58. )