mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 16:06:51 +08:00
初次提交
This commit is contained in:
16
model/process.go
Normal file
16
model/process.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package model
|
||||
|
||||
type Process struct {
|
||||
Uuid int `gorm:"primaryKey;autoIncrement;column:uuid" json:"uuid"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
Cmd string `gorm:"column:args" json:"cmd"`
|
||||
Cwd string `gorm:"column:cwd" json:"cwd"`
|
||||
AutoRestart bool `gorm:"column:auto_restart" json:"autoRestart"`
|
||||
Push bool `gorm:"column:push" json:"push"`
|
||||
LogReport bool `gorm:"column:log_report" json:"logReport"`
|
||||
TermType string `gorm:"column:term_type" json:"termType"`
|
||||
}
|
||||
|
||||
func (*Process) TableName() string {
|
||||
return "process"
|
||||
}
|
Reference in New Issue
Block a user