ferry/models/process/tplData.go

23 lines
628 B
Go
Raw Permalink Normal View History

2020-07-15 01:40:56 +08:00
package process
2020-07-14 14:07:44 +08:00
import (
"encoding/json"
"ferry/models/base"
)
/*
@Author : lanyulei
*/
// 工单绑定模版数据
type TplData struct {
base.Model
WorkOrder int `gorm:"column:work_order; type: int(11)" json:"work_order" form:"work_order"` // 工单ID
FormStructure json.RawMessage `gorm:"column:form_structure; type: json" json:"form_structure" form:"form_structure"` // 表单结构
FormData json.RawMessage `gorm:"column:form_data; type: json" json:"form_data" form:"form_data"` // 表单数据
}
func (TplData) TableName() string {
2020-07-15 17:58:15 +08:00
return "p_work_order_tpl_data"
2020-07-14 14:07:44 +08:00
}