blacklist.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package model
  2. import (
  3. "go-common/library/time"
  4. )
  5. // Blacklist black list
  6. type Blacklist struct {
  7. ID int64 `json:"id" gorm:"column:id"`
  8. AvID int64 `json:"av_id" gorm:"column:av_id"`
  9. MID int64 `json:"mid" gorm:"column:mid"`
  10. Reason int `json:"reason" gorm:"column:reason"`
  11. CType int `json:"ctype" gorm:"column:ctype"`
  12. HasSigned int `json:"has_signed" gorm:"column:has_signed"`
  13. Nickname string `json:"nickname" gorm:"column:nickname"`
  14. CTime time.Time `json:"ctime" gorm:"column:ctime"`
  15. MTime time.Time `json:"mtime" gorm:"column:mtime"`
  16. IsDeleted int `json:"-"`
  17. }
  18. // AvBreach av_breach_record
  19. type AvBreach struct {
  20. ID int64
  21. MID int64
  22. AvID int64
  23. Money int64
  24. Reason string
  25. Date time.Time
  26. }
  27. // BreachRecord breach record
  28. type BreachRecord struct {
  29. ID int64 `json:"id" gorm:"column:id"`
  30. AvID int64 `json:"av_id" gorm:"column:av_id"`
  31. CType int `json:"ctype" gorm:"column:ctype"`
  32. CTime time.Time `json:"ctime" gorm:"column:ctime"`
  33. MTime time.Time `json:"mtime" gorm:"column:mtime"`
  34. IsDeleted int `json:"-"`
  35. }
  36. // PorderRes porder response
  37. type PorderRes struct {
  38. Code int `json:"code"`
  39. Data []*Porder `json:"data"`
  40. Message string `json:"message"`
  41. TTL int `json:"ttl"`
  42. }
  43. // Porder porder
  44. type Porder struct {
  45. AID int64 `json:"aid"`
  46. IndustryID int64 `json:"industry_id"`
  47. BrandID int64 `json:"brand_id"`
  48. BrandName string `json:"brand_name"`
  49. Official int64 `json:"official"`
  50. ShowType string `json:"show_type"`
  51. Advertiser string `json:"advertiser"`
  52. Agent string `json:"agent"`
  53. State int64 `json:"state"`
  54. ShowFront int64 `json:"show_front"`
  55. CTime time.Time `json:"ctime"`
  56. MTime time.Time `json:"mtime"`
  57. }
  58. // ExecuteOrder execute order
  59. type ExecuteOrder struct {
  60. AvID int64 `json:"av_id"`
  61. MID int64 `json:"mid"`
  62. CTime time.Time `json:"ctime"`
  63. }
  64. // ArchiveRes archive response
  65. type ArchiveRes struct {
  66. Code int `json:"code"`
  67. Data map[string]*Archive `json:"data"`
  68. Message string `json:"message"`
  69. }
  70. // Archive archive
  71. type Archive struct {
  72. AID int64 `json:"aid"`
  73. Owner *Owner `json:"owner"`
  74. }
  75. // Owner archive owner
  76. type Owner struct {
  77. MID int64 `json:"mid"`
  78. Name string `json:"name"`
  79. }