reason.go 636 B

1234567891011121314151617181920
  1. package blocked
  2. import xtime "go-common/library/time"
  3. // Reason is blocked_reason model.
  4. type Reason struct {
  5. ID int `gorm:"column:id" json:"id"`
  6. Content string `gorm:"column:content" json:"content"`
  7. Reason string `gorm:"column:reason" json:"reason"`
  8. Status int8 `gorm:"column:status" json:"status"`
  9. OperID int `gorm:"column:oper_id" json:"oper_id"`
  10. CTime xtime.Time `gorm:"column:ctime" json:"-"`
  11. MTime xtime.Time `gorm:"column:mtime" json:"-"`
  12. OPName string `gorm:"-" json:"oname"`
  13. }
  14. // TableName publish tablename
  15. func (*Reason) TableName() string {
  16. return "blocked_reason"
  17. }