gokins/model/t_model.go
2020-10-21 22:05:08 +08:00

30 lines
462 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import (
"time"
)
type TModel struct {
Id int `xorm:"pk autoincr"`
Uid string
Title string
Desc string
Times time.Time
Del int
Envs string
Wrkdir string
Clrdir int
}
type TModelRun struct {
Id int `xorm:"pk autoincr"`
Tid int //model id
Uid string
Times time.Time
Timesd time.Time
State int //-1已停止0等待1运行2运行失败4运行成功
Errs string
Tgid int
Tgtyps string
}