mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-25 14:18:37 +08:00
[新增] 新增工作流
This commit is contained in:
18
apps/flow/entity/work_order_templates.go
Normal file
18
apps/flow/entity/work_order_templates.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/XM-GO/PandaKit/model"
|
||||
)
|
||||
|
||||
// FlowWorkOrderTemplate 工单绑定模版数据
|
||||
type FlowWorkOrderTemplate struct {
|
||||
model.BaseAutoModel
|
||||
WorkOrder int `gorm:"column:work_order; type: int(11)" json:"work_order"` // 工单ID
|
||||
FormStructure json.RawMessage `gorm:"column:form_structure; type: json" json:"form_structure"` // 表单结构
|
||||
FormData json.RawMessage `gorm:"column:form_data; type: json" json:"form_data"` // 表单数据
|
||||
}
|
||||
|
||||
func (FlowWorkOrderTemplate) TableName() string {
|
||||
return "flow_work_order_templates"
|
||||
}
|
||||
Reference in New Issue
Block a user