24 lines
738 B
Go
Raw Permalink Normal View History

2020-07-15 01:40:56 +08:00
package process
2020-07-14 14:07:44 +08:00
import (
"ferry/models/base"
)
/*
@Author : lanyulei
*/
// 任务
2020-07-15 01:40:56 +08:00
type TaskInfo struct {
2020-07-14 14:07:44 +08:00
base.Model
Name string `gorm:"column:name; type: varchar(256)" json:"name" form:"name"` // 任务名称
TaskType string `gorm:"column:task_type; type: varchar(45)" json:"task_type" form:"task_type"` // 任务类型
Content string `gorm:"column:content; type: longtext" json:"content" form:"content"` // 任务内容
Creator int `gorm:"column:creator; type: int(11)" json:"creator" form:"creator"` // 创建者
Remarks string `gorm:"column:remarks; type: longtext" json:"remarks" form:"remarks"` // 备注
}
2020-07-15 01:40:56 +08:00
func (TaskInfo) TableName() string {
2020-07-15 17:58:15 +08:00
return "p_task_info"
2020-07-14 14:07:44 +08:00
}