|
@@ -7,38 +7,43 @@ import (
|
|
|
|
|
|
type Application struct {
|
|
|
gorm.Model
|
|
|
- WorkFlowID string
|
|
|
- WorkFlowStepInfoID string
|
|
|
- ApplicationName string
|
|
|
- ApplicationCause string
|
|
|
+ WorkFlowID string
|
|
|
+ WorkFlowStepInfoID string
|
|
|
+ ApplicationName string
|
|
|
+ ApplicationCause string
|
|
|
ApplicationStartData time.Time
|
|
|
- ApplicationEndData time.Time
|
|
|
+ ApplicationEndData time.Time
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
type ApplicationWorkFlowProcess struct {
|
|
|
gorm.Model
|
|
|
- ApplicationId uint
|
|
|
- CurrentNode string
|
|
|
- HistoricalNode string
|
|
|
- CurrentUser string
|
|
|
+ ApplicationId uint
|
|
|
+ WorkflowID uint
|
|
|
+ CurrentNode string
|
|
|
+ HistoricalNode string
|
|
|
+ CurrentUser string
|
|
|
HistoricalUser string
|
|
|
- State bool
|
|
|
+ State bool
|
|
|
}
|
|
|
|
|
|
+
|
|
|
type Workflow struct {
|
|
|
gorm.Model
|
|
|
- WorkflowName string
|
|
|
- WorkflowDescription string
|
|
|
- WorkflowStep []WorkflowStepInfo
|
|
|
+ WorkflowNickName string
|
|
|
+ WorkflowName string
|
|
|
+ WorkflowDescription string
|
|
|
+ WorkflowStep []WorkflowStepInfo
|
|
|
}
|
|
|
|
|
|
+
|
|
|
type WorkflowStepInfo struct {
|
|
|
gorm.Model
|
|
|
- WorkflowID uint
|
|
|
- IsStrat bool
|
|
|
- StepName string
|
|
|
- StepNo float64
|
|
|
- StepAuthorityId string
|
|
|
- IsEnd bool
|
|
|
-}
|
|
|
+ WorkflowID uint
|
|
|
+ IsStrat bool
|
|
|
+ StepName string
|
|
|
+ StepNo float64
|
|
|
+ StepAuthorityId string
|
|
|
+ IsEnd bool
|
|
|
+}
|