|
@@ -23,6 +23,12 @@ public class FlowInstanceController {
|
|
|
|
|
|
@GetMapping
|
|
|
public Result<PageResult<FlowInstance>> list(FlowInstanceQuery flowInstanceQuery) {
|
|
|
+ PageResult<FlowInstance> pageResult = flowInstanceService.list(flowInstanceQuery);
|
|
|
+ return Result.success(pageResult);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/me")
|
|
|
+ public Result<PageResult<FlowInstance>> me(FlowInstanceQuery flowInstanceQuery) {
|
|
|
flowInstanceQuery.setStartUserId(SecurityContextUtil.getUserId());
|
|
|
PageResult<FlowInstance> pageResult = flowInstanceService.list(flowInstanceQuery);
|
|
|
return Result.success(pageResult);
|