app.go 568 B

12345678910111213141516171819
  1. package databus
  2. import "go-common/library/time"
  3. // TableName case tablename
  4. func (*App) TableName() string {
  5. return "app2"
  6. }
  7. // App app model
  8. type App struct {
  9. ID int `gorm:"column:id" json:"id"`
  10. AppKey string `gorm:"column:app_key" json:"app_key"`
  11. AppSecret string `gorm:"column:app_secret" json:"app_secret"`
  12. Project string `gorm:"column:project" json:"cluster"`
  13. Remark string `gorm:"column:remark" json:"remark"`
  14. Ctime time.Time `gorm:"column:ctime" json:"ctime"`
  15. Mtime time.Time `gorm:"column:mtime" json:"-"`
  16. }