You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.8 KiB
40 lines
2.8 KiB
|
3 years ago
|
package approvalprocess
|
||
|
|
|
||
|
|
//审批流程图
|
||
|
|
|
||
|
|
type ApprovalProcess struct {
|
||
|
|
Id int64 `json:"id" gorm:"column:ap_id;type:bigint(20);;primaryKey;unique;not null;autoIncrement;index"`
|
||
|
|
Name string `json:"name" gorm:"column:ap_name;type:varchar(255);not null;comment:流程名称"`
|
||
|
|
Flow string `json:"flow" gorm:"column:ap_flow;type:longtext;not null;comment:流程主体"`
|
||
|
|
FlowJson string `json:"flowJson" gorm:"column:ap_flow_json;type:longtext;not null;comment:流程json"`
|
||
|
|
FlowXml string `json:"flowXml" gorm:"column:ap_flow_xml;type:longtext;not null;comment:流程xml"`
|
||
|
|
FlowSvg string `json:"flowSvg" gorm:"column:ap_flow_svg;type:longtext;not null;comment:流程svg"`
|
||
|
|
GetFlowJson string `json:"getFlowJson" gorm:"column:ap_get_flow_json;type:longtext;not null;comment:流程get_json"`
|
||
|
|
Time int64 `json:"time" gorm:"column:ap_time;type:bigint(20) unsigned;default:0;not null;comment:创建时间"`
|
||
|
|
EiteTime int64 `json:"eiteTime" gorm:"column:ap_eite;type:bigint(20) unsigned;default:0;not null;comment:编辑时间"`
|
||
|
|
Sate int `json:"state" gorm:"column:ap_state;type:tinyint(1) unsigned;default:1;not null;comment:状态(1:启用,2:禁用;3:删除)"`
|
||
|
|
Batch int64 `json:"batch" gorm:"column:ap_batch;type:bigint(30) unsigned;default:0;not null;comment:批次"`
|
||
|
|
EditionNum string `json:"editionNum" gorm:"column:ap_edition_num;type:varchar(255);not null;comment:版本"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (ApprovalProcess *ApprovalProcess) TableName() string {
|
||
|
|
return "approval_process"
|
||
|
|
}
|
||
|
|
|
||
|
|
//审批记录
|
||
|
|
type ApprovalProcessLog struct {
|
||
|
|
Id int64 `json:"id" gorm:"column:apl_id;type:bigint(20);;primaryKey;unique;not null;autoIncrement;index"`
|
||
|
|
Process string `json:"process" gorm:"column:apl_process;type:longtext;not null;comment:当前执行的流程"`
|
||
|
|
CurrentNode string `json:"currentNode" gorm:"column:apl_current_node;type:varchar(255);not null;comment:当前审批节点"`
|
||
|
|
Title string `json:"title" gorm:"column:apl_title;type:varchar(255);not null;comment:审批名称"`
|
||
|
|
Time int64 `json:"time" gorm:"column:apl_time;type:bigint(20) unsigned;default:0;not null;comment:创建时间"`
|
||
|
|
EiteTime int64 `json:"eiteTime" gorm:"column:apl_eite_time;type:bigint(20) unsigned;default:0;not null;comment:编辑时间"`
|
||
|
|
ProcessNum int64 `json:"processNum" gorm:"column:apl_process_num;type:bigint(20) unsigned;default:0;not null;comment:当前执行流程的批次"`
|
||
|
|
IsEnd int `json:"isEnd" gorm:"column:apl_is_end;type:tinyint(1) unsigned;default:1;not null;comment:流程是否结束(1:未结束;2:结束)"`
|
||
|
|
Sate int `json:"state" gorm:"column:apl_state;type:tinyint(1) unsigned;default:1;not null;comment:状态(1:草稿;2:正常;3:删除)"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (ApprovalProcessLog *ApprovalProcessLog) TableName() string {
|
||
|
|
return "approval_process_log"
|
||
|
|
}
|