From 3012c0e00ebfcd17b5f5aa14aba7df9af6627679 Mon Sep 17 00:00:00 2001 From: "Mr. Lan" Date: Sun, 19 Jul 2020 11:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=84=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E5=AD=97=E6=AE=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/process/process.go | 1 + models/process/workOrder.go | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/models/process/process.go b/models/process/process.go index 07e95de..488511e 100644 --- a/models/process/process.go +++ b/models/process/process.go @@ -18,6 +18,7 @@ type Info struct { Tpls json.RawMessage `gorm:"column:tpls; type:json" json:"tpls" form:"tpls"` // 模版 Task json.RawMessage `gorm:"column:task; type:json" json:"task" form:"task"` // 任务ID, array, 可执行多个任务,可以当成通知任务,每个节点都会去执行 Creator int `gorm:"column:creator; type:int(11)" json:"creator" form:"creator"` // 创建者 + Notice json.RawMessage `gorm:"column:notice; type:json" json:"notice" form:"notice"` // TODO:绑定通知 } func (Info) TableName() string { diff --git a/models/process/workOrder.go b/models/process/workOrder.go index 27d0c02..9c785bc 100644 --- a/models/process/workOrder.go +++ b/models/process/workOrder.go @@ -12,13 +12,14 @@ import ( // 工单 type WorkOrderInfo struct { base.Model - Title string `gorm:"column:title; type:varchar(128)" json:"title" form:"title"` // 工单标题 - Process int `gorm:"column:process; type:int(11)" json:"process" form:"process"` // 流程ID - Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 分类ID - IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end" form:"is_end"` // 是否结束, 0 未结束,1 已结束 - State json.RawMessage `gorm:"column:state; type:json" json:"state" form:"state"` // 状态信息 - RelatedPerson json.RawMessage `gorm:"column:related_person; type:json" json:"related_person" form:"related_person"` // 工单所有处理人 - Creator int `gorm:"column:creator; type:int(11)" json:"creator" form:"creator"` // 创建人 + Title string `gorm:"column:title; type:varchar(128)" json:"title" form:"title"` // 工单标题 + Process int `gorm:"column:process; type:int(11)" json:"process" form:"process"` // 流程ID + Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 分类ID + IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end" form:"is_end"` // 是否结束, 0 未结束,1 已结束 + State json.RawMessage `gorm:"column:state; type:json" json:"state" form:"state"` // 状态信息 + RelatedPerson json.RawMessage `gorm:"column:related_person; type:json" json:"related_person" form:"related_person"` // 工单所有处理人 + Creator int `gorm:"column:creator; type:int(11)" json:"creator" form:"creator"` // 创建人 + OrderType int `gorm:"column:order_type; type:int(11); default:1" json:"order_type" form:"order_type"` // 工单类型,1:正常流程,2:加签 } func (WorkOrderInfo) TableName() string {