This commit is contained in:
panda
2023-03-29 22:08:53 +08:00
parent b9f0bd744c
commit b247985bbe
18 changed files with 529 additions and 50 deletions

View File

@@ -8,16 +8,13 @@ import (
// FlowWorkInfo 工作流信息
type FlowWorkInfo struct {
model.BaseAutoModel
Name string `gorm:"column:name; type:varchar(128)" json:"name"` // 流程名称
Icon string `gorm:"column:icon; type:varchar(128)" json:"icon" ` // 流程标签
Structure json.RawMessage `gorm:"column:structure; type:json" json:"structure" ` // 流程结构
Classify int `gorm:"column:classify; type:int(11)" json:"classify"` // 分类ID
Templates json.RawMessage `gorm:"column:templates; type:json" json:"templates"` // 模版
Task json.RawMessage `gorm:"column:task; type:json" json:"task"` // 任务ID, array, 可执行多个任务,可以当成通知任务,每个节点都会去执行
SubmitCount int `gorm:"column:submit_count; type:int(11); default:0" json:"submitCount"` // 提交统计
Creator int `gorm:"column:creator; type:int(11)" json:"creator"` // 创建者
Notice json.RawMessage `gorm:"column:notice; type:json" json:"notice"` // 绑定通知
Remarks string `gorm:"column:remarks; type:varchar(1024)" json:"remarks"` // 流程备注
Name string `gorm:"column:name; type:varchar(128)" json:"name"` // 流程名称
Icon string `gorm:"column:icon; type:varchar(128)" json:"icon" ` // 流程标签
Structure json.RawMessage `gorm:"column:structure; type:json" json:"structure" ` // 流程结构
Classify int `gorm:"column:classify; type:int" json:"classify"` // 分类ID
SubmitCount int `gorm:"column:submit_count; type:int; default:0" json:"submitCount"` // 提交统计
Creator int `gorm:"column:creator; type:int" json:"creator"` // 创建者
Remarks string `gorm:"column:remarks; type:varchar(1024)" json:"remarks"` // 流程备注
}
func (FlowWorkInfo) TableName() string {