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,17 +8,17 @@ import (
// FlowWorkOrder 工作流工单
type FlowWorkOrder struct {
model.BaseAutoModel
Title string `gorm:"column:title; type:varchar(128)" json:"title"` // 工单标题
Priority int `gorm:"column:priority; type:int(11)" json:"priority"` // 工单优先级 1正常 2紧急 3非常紧急
Process int `gorm:"column:process; type:int(11)" json:"process"` // 流程ID
Classify int `gorm:"column:classify; type:int(11)" json:"classify"` // 分类ID
IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end"` // 是否结束, 0 未结束1 已结束
IsDenied int `gorm:"column:is_denied; type:int(11); default:0" json:"is_denied"` // 是否被拒绝, 0 没有1 有
State json.RawMessage `gorm:"column:state; type:json" json:"state"` // 状态信息
RelatedPerson json.RawMessage `gorm:"column:related_person; type:json" json:"related_person"` // 工单所有处理人
Creator int `gorm:"column:creator; type:int(11)" json:"creator"` // 创建人
UrgeCount int `gorm:"column:urge_count; type:int(11); default:0" json:"urge_count"` // 催办次数
UrgeLastTime int `gorm:"column:urge_last_time; type:int(11); default:0" json:"urge_last_time"` // 上一次催促时间
Title string `gorm:"column:title; type:varchar(128)" json:"title"` // 工单标题
Priority int `gorm:"column:priority; type:int" json:"priority"` // 工单优先级 1正常 2紧急 3非常紧急
Process int `gorm:"column:process; type:int" json:"process"` // 流程ID
Classify int `gorm:"column:classify; type:int" json:"classify"` // 分类ID
IsEnd int `gorm:"column:is_end; type:int; default:0" json:"is_end"` // 是否结束, 0 未结束1 已结束
IsDenied int `gorm:"column:is_denied; type:int; default:0" json:"is_denied"` // 是否被拒绝, 0 没有1 有
State json.RawMessage `gorm:"column:state; type:json" json:"state"` // 状态信息
RelatedPerson json.RawMessage `gorm:"column:related_person; type:json" json:"related_person"` // 工单所有处理人
Creator int `gorm:"column:creator; type:int" json:"creator"` // 创建人
UrgeCount int `gorm:"column:urge_count; type:int; default:0" json:"urge_count"` // 催办次数
UrgeLastTime int `gorm:"column:urge_last_time; type:int; default:0" json:"urge_last_time"` // 上一次催促时间
}
func (FlowWorkOrder) TableName() string {