bws.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package model
  2. import (
  3. "time"
  4. )
  5. // ActBws def.
  6. type ActBws struct {
  7. ID int64 `json:"id" form:"id"`
  8. Name string `json:"name" form:"name"`
  9. Image string `json:"image" form:"image"`
  10. Dic string `json:"dic" form:"dic"`
  11. Del int8 `json:"del" form:"del"`
  12. Ctime time.Time `json:"ctime"`
  13. Mtime time.Time `json:"mtime"`
  14. }
  15. // ActBwsAchievement def.
  16. type ActBwsAchievement struct {
  17. ID int64 `json:"id" form:"id"`
  18. Name string `json:"name" form:"name"`
  19. Icon string `json:"icon" form:"icon"`
  20. Dic string `json:"dic" form:"dic"`
  21. Image string `json:"image" form:"image"`
  22. LinkType int64 `json:"link_type" form:"link_type"`
  23. Unlock int64 `json:"unlock" form:"unlock"`
  24. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  25. IconBig string `json:"icon_big" form:"icon_big"`
  26. IconActive string `json:"icon_active" form:"icon_active"`
  27. IconActiveBig string `json:"icon_active_big" form:"icon_active_big"`
  28. Award int8 `json:"award" form:"award"`
  29. Ctime time.Time `json:"ctime"`
  30. Mtime time.Time `json:"mtime"`
  31. Del int8 `json:"del" form:"del"`
  32. SuitID int64 `json:"suit_id" gorm:"column:suit_id" form:"suit_id"`
  33. }
  34. // ActBwsField def.
  35. type ActBwsField struct {
  36. ID int64 `json:"id" form:"id"`
  37. Name string `json:"name" form:"name"`
  38. Area string `json:"area" form:"area"`
  39. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  40. Del int8 `json:"del" form:"del"`
  41. Ctime time.Time `json:"ctime"`
  42. Mtime time.Time `json:"mtime"`
  43. }
  44. // ActBwsPoint def.
  45. type ActBwsPoint struct {
  46. ID int64 `json:"id" form:"id"`
  47. Name string `json:"name" form:"name"`
  48. Icon string `json:"icon" form:"icon"`
  49. FID int64 `json:"fid" gorm:"column:fid" form:"fid"`
  50. Ower int64 `json:"ower" gorm:"column:ower" form:"ower"`
  51. Image string `json:"image" form:"image"`
  52. Unlocked int64 `json:"unlocked" form:"unlocked"`
  53. LoseUnlocked int64 `json:"lose_unlocked" form:"lose_unlocked"`
  54. LockType int64 `json:"lock_type" form:"lock_type"`
  55. Dic string `json:"dic" form:"dic"`
  56. Rule string `json:"rule" form:"rule"`
  57. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  58. OtherIP string `json:"other_ip" gorm:"column:other_ip" form:"other_ip"`
  59. Del int8 `json:"del" form:"del"`
  60. Ctime time.Time `json:"ctime"`
  61. Mtime time.Time `json:"mtime"`
  62. }
  63. // ActBwsUserAchievement def.
  64. type ActBwsUserAchievement struct {
  65. ID int64 `json:"id" form:"id"`
  66. MID int64 `json:"mid" gorm:"column:mid" form:"mid"`
  67. AID int64 `json:"aid" gorm:"column:aid" form:"aid"`
  68. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  69. Key string `json:"key" form:"key"`
  70. Del int8 `json:"del" form:"del"`
  71. Ctime time.Time `json:"ctime"`
  72. Mtime time.Time `json:"mtime"`
  73. }
  74. // ActBwsUserPoint def.
  75. type ActBwsUserPoint struct {
  76. ID int64 `json:"id" form:"id"`
  77. MID int64 `json:"mid" gorm:"column:mid" form:"mid"`
  78. PID int64 `json:"pid" gorm:"column:pid" form:"pid"`
  79. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  80. Key string `json:"key" form:"key"`
  81. Points int64 `json:"points" form:"points"`
  82. Del int8 `json:"del" form:"del"`
  83. Ctime time.Time `json:"ctime"`
  84. Mtime time.Time `json:"mtime"`
  85. }
  86. // ActBwsUser def.
  87. type ActBwsUser struct {
  88. ID int64 `json:"id" form:"id"`
  89. MID int64 `json:"mid" gorm:"column:mid" form:"mid"`
  90. BID int64 `json:"bid" gorm:"column:bid" form:"bid"`
  91. Key string `json:"key" form:"key"`
  92. Del int8 `json:"del" form:"del"`
  93. Ctime time.Time `json:"ctime"`
  94. Mtime time.Time `json:"mtime"`
  95. }
  96. // TableName ActBws def.
  97. func (ActBws) TableName() string {
  98. return "act_bws"
  99. }