apply.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package databus
  2. import "go-common/library/time"
  3. // TableName case tablename
  4. func (*Apply) TableName() string {
  5. return "group_apply"
  6. }
  7. // Apply apply model
  8. type Apply struct {
  9. ID int `gorm:"column:id" json:"id"`
  10. Group string `gorm:"column:group" json:"group"`
  11. Cluster string `gorm:"column:cluster" json:"cluster"`
  12. TopicRemark string `gorm:"column:topic_remark" json:"topic_remark"`
  13. TopicID int `gorm:"column:topic_id" json:"topic_id"`
  14. TopicName string `gorm:"column:topic_name" json:"topic"`
  15. AppID int `gorm:"column:app_id" json:"app_id"`
  16. Project string `gorm:"column:project" json:"project"`
  17. Operation int8 `gorm:"column:operation" json:"operation"`
  18. State int8 `gorm:"column:state" json:"state"`
  19. Operator string `gorm:"column:operator" json:"operator"`
  20. Remark string `gorm:"column:remark" json:"remark"`
  21. Ctime time.Time `gorm:"column:ctime" json:"ctime"`
  22. Mtime time.Time `gorm:"column:mtime" json:"mtime"`
  23. // notify
  24. Gid int `gorm:"-" json:"notify_gid"`
  25. Nid int64 `gorm:"-" json:"notify_id"`
  26. Offset string `gorm:"-" json:"notify_offset"`
  27. Nstate int8 `gorm:"-" json:"notify_state"`
  28. Filter int8 `gorm:"-" json:"notify_filter"`
  29. Concurrent int8 `gorm:"-" json:"notify_concurrent"`
  30. Callback string `gorm:"-" json:"notify_callback"`
  31. Filters string `gorm:"-" json:"-"`
  32. FilterList []*Filter `gorm:"-" json:"filters"`
  33. Zone string `gorm:"-" json:"notify_zone"`
  34. }