act_traffic_permit.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package model
  2. type TrafficPermitRepoConf struct {
  3. LvRange
  4. TrafficPermitConf
  5. }
  6. type TrafficPermitConf struct {
  7. Basic TrafficPermitBasic `json:"basic"` // 基础配置
  8. Task1 []TrafficPermitTaskConf `json:"task1"` // 任务(单日)
  9. Task2 []TrafficPermitTaskConf `json:"task2"` // 任务(双日)
  10. PermitRewards TrafficPermitOpenConf `json:"permitRewards"` // 礼包配置
  11. AlertConfig TrafficPermitAlertConfig `json:"alertConfig"` // 弹窗配置
  12. MaxRewards TrafficPermitReward `json:"maxRewards"` // 额外奖励
  13. Levels []TrafficPermitRewardConf `json:"levels"` // 等级奖励配置
  14. }
  15. type TrafficPermitBasic struct {
  16. OpenLv int64 `json:"openLv"`
  17. GuideLv int64 `json:"guideLv"`
  18. UpLvDiamondNum int64 `json:"upLvDiamondNum"`
  19. PassExp int64 `json:"passExp"`
  20. ItemColor string `json:"itemColor"`
  21. IconColor string `json:"iconColor"`
  22. MaxLevelExpGap int64 `json:"maxLevelExpGap"`
  23. }
  24. type TrafficPermitTaskConf struct {
  25. Id int64 `json:"id"`
  26. Type int64 `json:"type"`
  27. Num int64 `json:"num"`
  28. GetNum int64 `json:"getNum"`
  29. }
  30. type TrafficPermitOpenConf struct {
  31. Normal TrafficPermitGiftPackConf `json:"normal"` // 普通版
  32. Special TrafficPermitGiftPackConf `json:"special"` // 精英版
  33. }
  34. type TrafficPermitAlertConfig struct {
  35. Status int64 `json:"status"`
  36. FirstStage int64 `json:"firstStage"`
  37. IntervalStage int64 `json:"intervalStage"`
  38. }
  39. type TrafficPermitReward struct {
  40. Prize []ActPrize `json:"prize"`
  41. SpecialPrize []ActPrize `json:"specialPrize"`
  42. }
  43. type TrafficPermitRewardConf struct {
  44. LevelId int64 `json:"levelId"`
  45. Max int64 `json:"max"`
  46. IsGrandPrize int64 `json:"isGrandPrize"`
  47. TrafficPermitReward
  48. }
  49. type TrafficPermitGiftPackConf struct {
  50. Price float64 `json:"price"`
  51. Gid int64 `json:"gid"`
  52. Sku string `json:"sku"`
  53. Rewards []TrafficPermitPrize `json:"rewards"`
  54. }
  55. type TrafficPermitPrize struct {
  56. Type int64 `json:"type"`
  57. Value int64 `json:"value"`
  58. }
  59. type TrafficPermitShowConf struct {
  60. OneLayerLvGroup
  61. TrafficPermitConf
  62. }
  63. type TrafficPermitExcelPrize struct {
  64. Name string // 奖励名
  65. Num int64 // 奖励数量
  66. }