update 优化响应信息

This commit is contained in:
AprilWind
2026-03-18 13:47:49 +08:00
parent afdc8366f2
commit 7bc2315c64
3 changed files with 116 additions and 34 deletions

View File

@@ -74,7 +74,7 @@ public class FlwDefinitionServiceImpl implements IFlwDefinitionService {
wrapper.eq(FlowDefinition::getIsPublish, PublishStatus.PUBLISHED.getKey());
Page<FlowDefinition> page = flowDefinitionMapper.selectPage(pageQuery.build(), wrapper);
List<FlowDefinitionVo> list = BeanUtil.copyToList(page.getRecords(), FlowDefinitionVo.class);
return new PageResult<>(list, page.getTotal());
return PageResult.build(list, page.getTotal());
}
/**
@@ -90,7 +90,7 @@ public class FlwDefinitionServiceImpl implements IFlwDefinitionService {
wrapper.in(FlowDefinition::getIsPublish, Arrays.asList(PublishStatus.UNPUBLISHED.getKey(), PublishStatus.EXPIRED.getKey()));
Page<FlowDefinition> page = flowDefinitionMapper.selectPage(pageQuery.build(), wrapper);
List<FlowDefinitionVo> list = BeanUtil.copyToList(page.getRecords(), FlowDefinitionVo.class);
return new PageResult<>(list, page.getTotal());
return PageResult.build(list, page.getTotal());
}
/**