mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
27 lines
1.6 KiB
Go
27 lines
1.6 KiB
Go
package entity
|
||
|
||
import (
|
||
"encoding/json"
|
||
"github.com/XM-GO/PandaKit/model"
|
||
)
|
||
|
||
// FlowWorkOrder 工作流工单
|
||
type FlowWorkOrder struct {
|
||
model.BaseAutoModel
|
||
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 {
|
||
return "flow_work_order"
|
||
}
|