增加工作流使用方法 接口

增加工作流通用完成方法
增加查询待办
查询我发起的工作流功能
增加测试示例
This commit is contained in:
pixel
2020-11-17 16:41:43 +08:00
parent 4863b2c5be
commit 2fad9035d3
16 changed files with 402 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
// 自动生成模板ExaWfLeave
package model
import (
"gin-vue-admin/global"
"time"
)
// 如果含有time.Time 请自行import time包
type ExaWfLeave struct {
global.GVA_MODEL
Cause string `json:"cause" form:"cause" gorm:"column:cause;comment:"`
StartTime time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;comment:"`
EndTime time.Time `json:"endTime" form:"endTime" gorm:"column:end_time;comment:"`
}
type ExaWfLeaveWorkflow struct {
// 工作流操作结构体
WorkflowBase `json:"wf"`
ExaWfLeave `json:"business"`
}