初次提交

This commit is contained in:
liuzhihang1
2024-06-26 20:45:23 +08:00
parent 4b388a5be1
commit 831ea9889f
57 changed files with 3945 additions and 0 deletions

16
model/process.go Normal file
View 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"
}