vip.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. //VipAppInfo app info
  6. type VipAppInfo struct {
  7. ID int64 `json:"id"`
  8. Type int8 `json:"type"`
  9. Name string `json:"name"`
  10. PurgeURL string `json:"purgeUrl"`
  11. AppKey string `json:"appKey"`
  12. }
  13. // VipPoint vip_point table
  14. type VipPoint struct {
  15. ID int `json:"id"`
  16. Mid int `json:"mid"`
  17. PointBalance int `json:"point_balance"`
  18. Ver int `json:"ver"`
  19. }
  20. //VipPointChangeHistory vip_point_change_history table
  21. type VipPointChangeHistory struct {
  22. ID int `json:"id"`
  23. Mid int `json:"mid"`
  24. Point int `json:"point"`
  25. OrderID string `json:"orderId"`
  26. ChangeType int `json:"changeType"`
  27. ChangeTime time.Time `json:"changeTime"`
  28. RelationID string `json:"relationId"`
  29. PointBalance int `json:"pointBalance"`
  30. Remark string `json:"remark"`
  31. Operator string `json:"operator"`
  32. }
  33. //VipPayOrderLog vip pay order log table
  34. type VipPayOrderLog struct {
  35. ID int64 `json:"id"`
  36. OrderNo string `json:"orderNo"`
  37. Mid int64 `json:"mid"`
  38. Status int8 `json:"status"`
  39. }
  40. //VipPayOrder VipPayOrder table
  41. type VipPayOrder struct {
  42. ID int64 `json:"id"`
  43. OrderNo string `json:"orderNo"`
  44. AppID int64 `json:"appId"`
  45. Platform int8 `json:"platform"`
  46. OrderType int8 `json:"orderType"`
  47. Mid int64 `json:"mid"`
  48. ToMid int64 `json:"toMid"`
  49. BuyMonths int16 `json:"buyMonths"`
  50. Money float64 `json:"money"`
  51. RechargeBp float64 `json:"rechargeBp"`
  52. Status int8 `json:"status"`
  53. PayType int8 `json:"payType"`
  54. ThirdTradeNo string `json:"thirdTradeNo"`
  55. PaymentTime time.Time `json:"paymentTime"`
  56. Ver int64 `json:"ver"`
  57. AppSubID string `json:"appSubId"`
  58. CouponMoney float64 `json:"coupon_money"`
  59. Ctime time.Time `json:"ctime"`
  60. Mtime time.Time `json:"mtime"`
  61. }
  62. //VipUserInfo vip user info table
  63. type VipUserInfo struct {
  64. ID int64 `json:"id"`
  65. Mid int64 `json:"mid"`
  66. Type int8 `json:"vipType"`
  67. PayType int8 `json:"payType"`
  68. PayChannelID int64 `json:"payChannelId"`
  69. Status int8 `json:"vipStatus"`
  70. Ver int64 `json:"ver"`
  71. OldVer int64 `json:"old_ver"`
  72. StartTime time.Time `json:"vipStartTime"`
  73. RecentTime time.Time `json:"vipRecentTime"`
  74. OverdueTime time.Time `json:"vipOverdueTime"`
  75. AnnualVipOverdueTime time.Time `json:"annualVipOverdueTime"`
  76. AutoRenewed int8 `json:"auto_renewed"`
  77. IosOverdueTime time.Time `json:"ios_overdue_time"`
  78. Ctime time.Time `json:"ctime"`
  79. Mtime time.Time `json:"mtime"`
  80. }
  81. //VipPushData .
  82. type VipPushData struct {
  83. ID int64 `json:"id"`
  84. DisableType int8 `json:"disable_type"`
  85. GroupName string `json:"group_name"`
  86. Title string `json:"title" `
  87. Content string `json:"content"`
  88. PushTotalCount int32 `json:"-"`
  89. PushedCount int32 `json:"-"`
  90. PushProgress string `json:"push_progress"`
  91. ProgressStatus int8 `json:"progress_status"`
  92. Status int8 `json:"status"`
  93. Platform string `json:"platform"`
  94. LinkType int32 `json:"link_type"`
  95. ErrorCode int32 `json:"error_code"`
  96. LinkURL string `json:"link_url"`
  97. ExpiredDayStart int32 `json:"expired_day_start" `
  98. ExpiredDayEnd int64 `json:"expired_day_end" `
  99. EffectStartDate time.Time `json:"effect_start_date" `
  100. EffectEndDate time.Time `json:"effect_end_date" `
  101. PushStartTime string `json:"push_start_time" `
  102. PushEndTime string `json:"push_end_time" `
  103. }
  104. //VipUserDiscountHistory vip user discount history table
  105. type VipUserDiscountHistory struct {
  106. ID int64 `json:"id"`
  107. Mid int64 `json:"mid"`
  108. DiscountID int32 `json:"discountId"`
  109. OrderNo string `json:"orderNo"`
  110. Status int8 `json:"status"`
  111. }
  112. //VipBcoinSalary .
  113. type VipBcoinSalary struct {
  114. ID int64 `json:"id"`
  115. Mid int64 `json:"mid"`
  116. Status int8 `json:"status"`
  117. GiveNowStatus int8 `json:"giveNowStatus"`
  118. Payday time.Time `json:"month"`
  119. Amount int32 `json:"amount"`
  120. Memo string `json:"memo"`
  121. Ctime time.Time `json:"ctime"`
  122. Mtime time.Time `json:"mtime"`
  123. }
  124. //VipInfoDB vip user info db
  125. type VipInfoDB struct {
  126. ID int64 `json:"id"`
  127. Mid int64 `json:"mid"`
  128. Ver int64 `json:"ver"`
  129. Type int8 `json:"vip_type"`
  130. PayType int8 `json:"vip_pay_type"`
  131. PayChannelID int64 `json:"pay_channel_id"`
  132. Status int8 `json:"vip_status"`
  133. StartTime time.Time `json:"vip_start_time"`
  134. RecentTime time.Time `json:"vip_recent_time"`
  135. OverdueTime time.Time `json:"vip_overdue_time"`
  136. AnnualVipOverdueTime time.Time `json:"annual_vip_overdue_time"`
  137. IosOverdueTime time.Time `json:"ios_overdue_time"`
  138. Ctime time.Time `json:"ctime"`
  139. Mtime time.Time `json:"mtime"`
  140. }
  141. //VipConfig .
  142. type VipConfig struct {
  143. ID int64 `json:"id"`
  144. ConfigKey string `json:"config_key"`
  145. Content string `json:"content"`
  146. }
  147. //VipResourceBatchCode .
  148. type VipResourceBatchCode struct {
  149. ID int64 `json:"id"`
  150. BusinessID int64 `json:"business_id"`
  151. PoolID int64 `json:"pool_id"`
  152. Status int8 `json:"status"`
  153. Type int8 `json:"type"`
  154. BatchName string `json:"batch_name"`
  155. Reason string `json:"reason"`
  156. Unit int32 `json:"unit"`
  157. Count int64 `json:"count"`
  158. SurplusCount int64 `json:"surplus_count"`
  159. Price float64 `json:"price"`
  160. StartTime time.Time `json:"start_time"`
  161. EndTime time.Time `json:"end_time"`
  162. }
  163. //VipResourceCode vip resource code
  164. type VipResourceCode struct {
  165. ID int64 `json:"id"`
  166. Bmid int64 `json:"bmid"`
  167. RelationID string `json:"relation_id"`
  168. Code string `json:"code"`
  169. Status int8 `json:"status"`
  170. BatchCodeID int64 `json:"batch_code_id"`
  171. }