auto_case.go 760 B

123456789101112131415161718192021
  1. package blocked
  2. import xtime "go-common/library/time"
  3. // AutoCase is blocked_auto_case model.
  4. type AutoCase struct {
  5. ID int64 `gorm:"column:id" json:"id"`
  6. Platform int8 `gorm:"column:platform" json:"platform"`
  7. OPID int64 `gorm:"column:oper_id" json:"oper_id"`
  8. ReasonStr string `gorm:"column:reasons" json:"-"`
  9. Reasons []int64 `gorm:"-" json:"reasons"`
  10. ReportScore int `gorm:"column:report_score" json:"report_score"`
  11. Likes int `gorm:"column:likes" json:"likes"`
  12. CTime xtime.Time `gorm:"column:ctime" json:"ctime"`
  13. MTime xtime.Time `gorm:"column:mtime" json:"mtime"`
  14. }
  15. // TableName AutoCase tablename
  16. func (*AutoCase) TableName() string {
  17. return "blocked_auto_case"
  18. }