29 lines
1.5 KiB
Go
29 lines
1.5 KiB
Go
package process
|
|
|
|
import (
|
|
"ferry/models/base"
|
|
)
|
|
|
|
/*
|
|
@Author : lanyulei
|
|
*/
|
|
|
|
// 工单流转历史
|
|
type CirculationHistory struct {
|
|
base.Model
|
|
Title string `gorm:"column:title; type: varchar(128)" json:"title" form:"title"` // 工单标题
|
|
WorkOrder int `gorm:"column:work_order; type: int(11)" json:"work_order" form:"work_order"` // 工单ID
|
|
State string `gorm:"column:state; type: varchar(128)" json:"state" form:"state"` // 工单状态
|
|
Source string `gorm:"column:source; type: varchar(128)" json:"source" form:"source"` // 源节点ID
|
|
Target string `gorm:"column:target; type: varchar(128)" json:"target" form:"target"` // 目标节点ID
|
|
Circulation string `gorm:"column:circulation; type: varchar(128)" json:"circulation" form:"circulation"` // 流转ID
|
|
Processor string `gorm:"column:processor; type: varchar(45)" json:"processor" form:"processor"` // 处理人
|
|
ProcessorId int `gorm:"column:processor_id; type: int(11)" json:"processor_id" form:"processor_id"` // 处理人ID
|
|
CostDuration string `gorm:"column:cost_duration; type: varchar(128)" json:"cost_duration" form:"cost_duration"` // 处理时长
|
|
Remarks string `gorm:"column:remarks; type: longtext" json:"remarks" form:"remarks"` // 备注
|
|
}
|
|
|
|
func (CirculationHistory) TableName() string {
|
|
return "work_order_circulation_history"
|
|
}
|