notify.go 757 B

12345678910111213141516171819202122
  1. package databus
  2. import "go-common/library/time"
  3. // TableName case tablename
  4. func (*Notify) TableName() string {
  5. return "notify"
  6. }
  7. // Notify apply model
  8. type Notify struct {
  9. ID int `gorm:"column:id" json:"id"`
  10. Gid int `gorm:"column:gid" json:"gid"`
  11. Offset string `gorm:"column:offset" json:"offset"`
  12. State int8 `gorm:"column:state" json:"state"`
  13. Filter int8 `gorm:"column:filter" json:"filter"`
  14. Concurrent int8 `gorm:"column:concurrent" json:"concurrent"`
  15. Callback string `gorm:"column:callback" json:"callback"`
  16. Zone string `gorm:"column:zone" json:"zone"`
  17. Ctime time.Time `gorm:"column:ctime" json:"ctime"`
  18. Mtime time.Time `gorm:"column:mtime" json:"mtime"`
  19. }