工作流

This commit is contained in:
PandaGoAdmin
2023-03-31 13:50:47 +08:00
parent f7f9e67c95
commit a0084f21c6
3 changed files with 12 additions and 45 deletions

View File

@@ -1,16 +1,15 @@
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" 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"` // 表单数据
WorkOrder int `gorm:"column:work_order; type: int" json:"work_order"` // 工单ID
FormStructure model.JSONB `gorm:"column:form_structure; type: json" json:"form_structure"` // 表单结构
FormData model.JSONB `gorm:"column:form_data; type: json" json:"form_data"` // 表单数据
}
func (FlowWorkOrderTemplate) TableName() string {