resource.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. //VipBusinessInfo vip_business_info table
  6. type VipBusinessInfo struct {
  7. ID int64 `json:"id"`
  8. BusinessName string `json:"businessName"`
  9. BusinessType int8 `json:"businessType"`
  10. Status int8 `json:"status"`
  11. AppKey string `json:"appKey"`
  12. Secret string `json:"secret"`
  13. Contacts string `json:"contacts"`
  14. ContactsNumber string `json:"contactsNumber"`
  15. Ctime time.Time `json:"ctime"`
  16. Mtime time.Time `json:"mtime"`
  17. }
  18. // VipResourcePool vip_resource_pool table
  19. type VipResourcePool struct {
  20. ID int64 `json:"id"`
  21. PoolName string `json:"poolName"`
  22. BusinessID int64 `json:"businessId"`
  23. BusinessName string `json:"businessName"`
  24. Reason string `json:"reason"`
  25. CodeExpireTime time.Time `json:"codeExpireTime"`
  26. StartTime time.Time `json:"startTime"`
  27. EndTime time.Time `json:"endTime"`
  28. Contacts string `json:"contacts"`
  29. ContactsNumber string `json:"contactsNumber"`
  30. Ctime time.Time `json:"ctime"`
  31. Mtime time.Time `json:"mtime"`
  32. }
  33. // VipResourceBatch vip_resource_batch table
  34. type VipResourceBatch struct {
  35. ID int64 `json:"id"`
  36. PoolID int64 `json:"poolId"`
  37. Unit int64 `json:"unit"`
  38. Count int64 `json:"count"`
  39. Ver int64 `json:"ver"`
  40. StartTime time.Time `json:"startTime"`
  41. EndTime time.Time `json:"endTime"`
  42. SurplusCount int64 `json:"surplusCount"`
  43. CodeUseCount int64 `json:"codeUseCount"`
  44. DirectUseCount int64 `json:"directUseCount"`
  45. Ctime time.Time `json:"ctime"`
  46. Mtime time.Time `json:"mtime"`
  47. }
  48. //VipResourceCode vip resource code.
  49. type VipResourceCode struct {
  50. ID int64 `json:"id"`
  51. BatchCodeID int64 `json:"batch_code_id"`
  52. Status int8 `json:"status"`
  53. Days int32 `json:"days"`
  54. RelationID string `json:"relation_id"`
  55. Code string `json:"code"`
  56. Mid int64 `json:"mid"`
  57. UseTime time.Time `json:"use_time"`
  58. }
  59. //VipResourceBatchCode vip resource batchcode.
  60. type VipResourceBatchCode struct {
  61. ID int64 `json:"id"`
  62. BusinessID int64 `json:"business_id"`
  63. PoolID int64 `json:"pool_id"`
  64. Status int8 `json:"status"`
  65. Type int8 `json:"type"`
  66. MaxCount int64 `json:"max_count"`
  67. LimitDay int64 `json:"limit_day"`
  68. BatchName string `json:"batch_name"`
  69. Reason string `json:"reason"`
  70. Unit int32 `json:"unit"`
  71. Count int32 `json:"count"`
  72. SurplusCount int32 `json:"surplus_count"`
  73. Price float64 `json:"price"`
  74. StartTime time.Time `json:"start_time"`
  75. EndTime time.Time `json:"end_time"`
  76. }
  77. //VipActiveShow vip active show.
  78. type VipActiveShow struct {
  79. ID int64 `json:"id"`
  80. ProductName string `json:"product_name"`
  81. ProductPic string `json:"product_pic"`
  82. ProductDetail string `json:"product_detail"`
  83. RelationID string `json:"relation_id"`
  84. BusID string `json:"bus_id"`
  85. UseType string `json:"use_type"`
  86. Type int16 `json:"type"`
  87. }
  88. //CodeInfoResp code info Response
  89. type CodeInfoResp struct {
  90. ID int64 `json:"id"`
  91. UserTime time.Time `json:"user_time"`
  92. Code string `json:"code"`
  93. }