trans.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. package model
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // PendantGroupTrans pendant group pendant
  6. type PendantGroupTrans struct {
  7. Gid int64
  8. GroupName string
  9. Rank string
  10. GroupImage string
  11. IsOnline int32
  12. ModifyTime string
  13. }
  14. // PendantTrans pendant trans
  15. type PendantTrans struct {
  16. Pid int64
  17. Name string
  18. Image string
  19. ImageModel string
  20. DisplayExpire int64
  21. Gid int64
  22. Rank int32
  23. IsOnline int32
  24. ModifyTime string
  25. }
  26. // PendantPriceTrans pendantPrice
  27. type PendantPriceTrans struct {
  28. ID int64
  29. Pid int64
  30. Ecode string
  31. Price int64
  32. Active int32
  33. Ctime string
  34. Mtime string
  35. }
  36. // PTransStatus pendant history
  37. type PTransStatus struct {
  38. ID int64 `json:"id"`
  39. Mid int64 `json:"mid"`
  40. Pid int64 `json:"pid"`
  41. Expire int64 `json:"expire"`
  42. IsActivated int64 `json:"is_activated"`
  43. Mtime string `json:"modify_time"`
  44. }
  45. // PTransHistory pendant trans pendant info
  46. type PTransHistory struct {
  47. ID int64 `json:"id"`
  48. Mid int64 `json:"mid"`
  49. OrderID string `json:"order_id"`
  50. PayID string `json:"pay_id"`
  51. AppID int64 `json:"appid"`
  52. Status int32 `json:"status"`
  53. Pid int64 `json:"pid"`
  54. TimeLength int64 `json:"time_length"`
  55. Cost string `json:"cost"`
  56. BuyTime int64 `json:"buy_time"`
  57. IsCallback int32 `json:"is_callback"`
  58. CallbackTime int64 `json:"callback_time"`
  59. Mtime string `json:"modify_time"`
  60. }
  61. // PGTransHistory pendant grant history
  62. type PGTransHistory struct {
  63. ID int64
  64. Mid int64
  65. OperatorName string
  66. OperatorTime int64
  67. OperatorAction string
  68. OperatorType int32
  69. Mtime string
  70. }
  71. // MedalGroup struct .
  72. type MedalGroup struct {
  73. GID int64
  74. Name string `json:"group_name"`
  75. PID int64 `json:"parent_gid"`
  76. Rank int8 `json:"group_rank"`
  77. IsOnline int8 `json:"is_online"`
  78. IsDel int8
  79. Ctime xtime.Time
  80. Mtime string `json:"modify_time"`
  81. }
  82. // MedalOwner struct db bus trans.
  83. type MedalOwner struct {
  84. ID int64
  85. MID int64
  86. NID int64
  87. IsActivated int8 `json:"is_activated"`
  88. Ctime int64
  89. Mtime string `json:"modify_time"`
  90. }
  91. // MedalInfo struct .
  92. type MedalInfo struct {
  93. NID int64
  94. GID int64
  95. Name string
  96. Description string
  97. Image string `json:"image"`
  98. ImageSmall string `json:"image_small"`
  99. Condition string
  100. Level int8
  101. LevelRank string `json:"level_rank"`
  102. Sort int8
  103. IsOnline int8 `json:"is_online"`
  104. CTime xtime.Time
  105. MTime string `json:"modify_time"`
  106. }