12345678910111213141516171819202122232425 |
- package model
- import (
- "gorm.io/gorm"
- )
- type SysWorkflow struct {
- gorm.Model
- WorkflowNickName string `json:"workflowNickName" gorm:"comment:'工作流中文名称'"`
- WorkflowName string `json:"workflowName" gorm:"comment:'工作流英文名称'"`
- WorkflowDescription string `json:"workflowDescription" gorm:"comment:'工作流描述'"`
- WorkflowStepInfo []SysWorkflowStepInfo `json:"workflowStep" gorm:"comment:'工作流步骤'"`
- }
- type SysWorkflowStepInfo struct {
- gorm.Model
- SysWorkflowID uint `json:"workflowID" gorm:"comment:'所属工作流ID'"`
- IsStrat bool `json:"isStrat" gorm:"comment:'是否是开始流节点'"`
- StepName string `json:"stepName" gorm:"comment:'工作流节点名称'"`
- StepNo float64 `json:"stepNo" gorm:"comment:'步骤id (第几步)'"`
- StepAuthorityID string `json:"stepAuthorityID" gorm:"comment:'操作者级别id'"`
- IsEnd bool `json:"isEnd" gorm:"comment:'是否是完结流节点'"`
- }
|