ferry/models/process/task.go
2020-07-15 01:40:56 +08:00

24 lines
736 B
Go

package process
import (
"ferry/models/base"
)
/*
@Author : lanyulei
*/
// 任务
type TaskInfo struct {
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"` // 备注
}
func (TaskInfo) TableName() string {
return "task_info"
}