You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
568 B
19 lines
568 B
package databus |
|
|
|
import "go-common/library/time" |
|
|
|
// TableName case tablename |
|
func (*App) TableName() string { |
|
return "app2" |
|
} |
|
|
|
// App app model |
|
type App struct { |
|
ID int `gorm:"column:id" json:"id"` |
|
AppKey string `gorm:"column:app_key" json:"app_key"` |
|
AppSecret string `gorm:"column:app_secret" json:"app_secret"` |
|
Project string `gorm:"column:project" json:"cluster"` |
|
Remark string `gorm:"column:remark" json:"remark"` |
|
Ctime time.Time `gorm:"column:ctime" json:"ctime"` |
|
Mtime time.Time `gorm:"column:mtime" json:"-"` |
|
}
|
|
|