mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package vo
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/internal/flow/domain/entity"
 | 
						|
	"time"
 | 
						|
)
 | 
						|
 | 
						|
type ProcinstVO struct {
 | 
						|
	Id          uint64 `json:"id"`
 | 
						|
	ProcdefId   uint64 `json:"procdefId"`   // 流程定义id
 | 
						|
	ProcdefName string `json:"procdefName"` // 流程定义名称
 | 
						|
 | 
						|
	BizType      string `json:"bizType"`      // 业务类型
 | 
						|
	BizKey       string `json:"bizKey"`       // 业务key
 | 
						|
	BizForm      string `json:"bizForm"`      // 业务form
 | 
						|
	BizStatus    int8   `json:"bizStatus"`    // 业务状态
 | 
						|
	BizHandleRes string `json:"bizHandleRes"` // 业务处理结果
 | 
						|
	TaskKey      string `json:"taskKey"`      // 当前任务key
 | 
						|
 | 
						|
	FlowDef  string     `json:"flowDef"` // 流程定义json
 | 
						|
	Remark   string     `json:"remark"`
 | 
						|
	Status   int8       `json:"status"`
 | 
						|
	EndTime  *time.Time `json:"endTime"`
 | 
						|
	Duration int64      `json:"duration"` // 持续时间(开始到结束)
 | 
						|
 | 
						|
	Creator    string     `json:"creator"`
 | 
						|
	CreatorId  uint64     `json:"creatorId"`
 | 
						|
	CreateTime *time.Time `json:"createTime"`
 | 
						|
	UpdateTime *time.Time `json:"updateTime"`
 | 
						|
 | 
						|
	Procdef       *entity.Procdef          `json:"procdef"`
 | 
						|
	ProcinstTasks []*entity.ProcinstTaskPO `json:"procinstTasks"`
 | 
						|
}
 | 
						|
 | 
						|
type ProcinstTask struct {
 | 
						|
	Id         uint64 `json:"id"`
 | 
						|
	ProcinstId uint64 `json:"procinstId"` // 流程实例id
 | 
						|
	NodeKey    string `json:"nodeKey"`    // 当前任务key
 | 
						|
	NodeName   string `json:"nodeName"`   // 当前任务名称
 | 
						|
 | 
						|
	Status     entity.ProcinstTaskStatus `json:"status"` // 状态
 | 
						|
	Remark     string                    `json:"remark"`
 | 
						|
	Duration   int64                     `json:"duration"` // 持续时间(开始到结束)
 | 
						|
	CreateTime *time.Time                `json:"createTime"`
 | 
						|
	EndTime    *time.Time                `json:"endTime"`
 | 
						|
 | 
						|
	Procinst *entity.Procinst `json:"procinst"`
 | 
						|
}
 |