oldauth.go 646 B

12345678910111213141516171819202122
  1. package databus
  2. import (
  3. "go-common/library/time"
  4. )
  5. // TableName case tablename
  6. func (*OldAuth) TableName() string {
  7. return "auth"
  8. }
  9. // OldAuth group model
  10. type OldAuth struct {
  11. ID int64 `gorm:"column:id" json:"id"`
  12. GroupName string `gorm:"column:group_name" json:"group_name"`
  13. Topic string `gorm:"column:topic" json:"topic"`
  14. Business string `gorm:"business" json:"business"`
  15. AppID int64 `gorm:"column:app_id" json:"app_id"`
  16. Operation int8 `gorm:"column:operation" json:"operation"`
  17. Ctime time.Time `gorm:"column:ctime" json:"ctime"`
  18. Mtime time.Time `gorm:"column:mtime" json:"mtime"`
  19. }