go-common/app/infra/config/model/config.go
2019-04-22 18:49:16 +08:00

30 lines
634 B
Go

package model
import "go-common/library/time"
var (
//ConfigIng config ing.
ConfigIng = int8(1)
//ConfigEnd config ing.
ConfigEnd = int8(2)
)
// Config config.
type Config struct {
ID int64 `json:"id" gorm:"primary_key"`
AppID int64 `json:"app_id"`
Name string `json:"name"`
Comment string `json:"comment"`
From int64 `json:"from"`
State int8 `json:"state"`
Mark string `json:"mark"`
Operator string `json:"operator"`
Ctime time.Time `json:"ctime"`
Mtime time.Time `json:"mtime"`
}
// TableName config
func (Config) TableName() string {
return "config"
}