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.
29 lines
634 B
29 lines
634 B
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" |
|
}
|
|
|