model.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package model
  2. //Eunm vip enum value
  3. const (
  4. //ChangeType
  5. ChangeTypePointExhchange = 1 // 积分兑换
  6. ChangeTypeRechange = 2 //充值开通
  7. ChangeTypeSystem = 3 // 系统发放
  8. ChangeTypeActiveGive = 4 //活动赠送
  9. ChangeTypeRepeatDeduction = 5 //重复领取扣除
  10. VipDaysMonth = 31
  11. VipDaysYear = 366
  12. NotVip = 0 //非大会员
  13. Vip = 1 //月度大会员
  14. AnnualVip = 2 //年度会员
  15. VipStatusOverTime = 0 //过期
  16. VipStatusNotOverTime = 1 //未过期
  17. VipStatusFrozen = 2 //冻结
  18. VipStatusBan = 3 //封禁
  19. VipAppUser = 1 //大会员对接业务方user缓存
  20. VipAppPoint = 2 //大会员对接业务方积分缓存
  21. VipChangeFrozen = -1 //冻结
  22. VipChangeUnFrozen = 0 //解冻
  23. VipChangeOpen = 1 //开通
  24. VipChangeModify = 2 //变更
  25. VipBusinessStatusOpen = 0 //有效
  26. VipBusinessStatusClose = 1 //无效
  27. VipUserFirstDiscount = 1
  28. AnnualVipBcoinDay = "annual_vip_bcoin_day" //年费VIPB券发放每月第几天
  29. AnnualVipBcoinCouponMoney = "annual_vip_bcoin_coupon_money" //年费VIP返回B券金额
  30. AnnualVipBcoinCouponActivityID = "annual_vip_bcoin_coupon_activity_id" //年费VIP返B券活动ID
  31. HadSalaryState = 1 // 已发放
  32. NormalVipSalaryType = 1
  33. AnnualVipSalaryType = 2
  34. VipSupplyType = 3
  35. TimingSalaryType = 4
  36. SalaryVipOrigin = 1
  37. TimeFormatSec = "2006-01-02 15:04:05"
  38. DayOfHour = 24
  39. IsAutoRenew = 1
  40. IAPChannelID = 100
  41. MsgSystemNotify = 4
  42. MsgCouponSalaryMc = "10_99_2"
  43. CouponSalaryTitle = `观影劵到账通知`
  44. CouponSalaryMsg = `大会员专享观影券已到账,#{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}`
  45. CouponToAnnualSalaryMsg = `升级年度大会员赠送观影券%d张已到账,#{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}`
  46. CouponCartoonSalaryTitle = `漫画阅读劵到账通知`
  47. CouponCartoonSalaryMsg = `大会员漫画阅读券已到账 #{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}`
  48. CouponCartoonToAnnualSalaryMsg = `升级年度大会员赠送漫画阅读券%d张已到账,#{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}`
  49. )
  50. // dicount type
  51. const (
  52. DiscountNotUse = iota
  53. DiscountUsed
  54. )
  55. // coupon salary type
  56. const (
  57. CouponSalaryTiming int8 = iota
  58. CouponSalaryAtonce
  59. )
  60. // coupon type
  61. const (
  62. SalaryCouponType int8 = iota + 1
  63. SalaryCartoonCouponType
  64. )
  65. //pay order type
  66. const (
  67. Normal = iota
  68. AutoRenew
  69. IAPAutoRenew
  70. )
  71. //pay order status
  72. const (
  73. PAYING = iota + 1
  74. SUCCESS
  75. FAILED
  76. SIGN
  77. UNSIGN
  78. )