feat: 添加流程执行查询接口及模型类型与节点名称优化
This commit is contained in:
@@ -25,6 +25,16 @@ var FlowExecutionService = &flowExecutionService{}
|
||||
|
||||
type flowExecutionService struct{}
|
||||
|
||||
func (s *flowExecutionService) Get(ctx context.Context, req *flowDto.GetFlowExecutionReq) (res *flowDto.VOFlowExecution, err error) {
|
||||
r, err := flowDao.FlowExecutionDao.Get(ctx, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res = new(flowDto.VOFlowExecution)
|
||||
err = gconv.Struct(r, &res)
|
||||
return res, err
|
||||
}
|
||||
|
||||
func (s *flowExecutionService) List(ctx context.Context, req *flowDto.ListFlowExecutionReq) (res *flowDto.ListFlowExecutionTreeRes, err error) {
|
||||
user, err := utils.GetUserInfo(ctx)
|
||||
if err != nil {
|
||||
@@ -121,7 +131,7 @@ func (s *flowExecutionService) List(ctx context.Context, req *flowDto.ListFlowEx
|
||||
// 组装节点
|
||||
node := flowDto.FlowNode{
|
||||
FlowName: displayFlowName,
|
||||
FlowId: execution.FlowUserId,
|
||||
Id: execution.Id,
|
||||
SessionId: gconv.String(execution.SessionId),
|
||||
Items: tempItems,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user