| | |
| | | */ |
| | | package cn.gistack.flow.core.feign; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.tool.api.R; |
| | | import cn.gistack.flow.core.entity.BladeFlow; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | String COMPLETE_TASK = API_PREFIX + "/complete-task"; |
| | | String TASK_VARIABLE = API_PREFIX + "/task-variable"; |
| | | String TASK_VARIABLES = API_PREFIX + "/task-variables"; |
| | | String TODO_LIST = "/todo-list"; |
| | | String GET_BLADEFLOW = "/getBladeFlow"; |
| | | |
| | | /** |
| | | * 开启流程 |
| | |
| | | */ |
| | | @GetMapping(TASK_VARIABLES) |
| | | R<Map<String, Object>> taskVariables(@RequestParam("taskId") String taskId); |
| | | |
| | | /** |
| | | * 获取流程变量集合 |
| | | * |
| | | * @param businessId 业务id |
| | | * @return R |
| | | */ |
| | | @GetMapping(GET_BLADEFLOW) |
| | | R<BladeFlow> getBladeFlow(@RequestParam("businessId") String businessId,@RequestParam("currentUserId") String currentUserId); |
| | | |
| | | /** |
| | | * 获取待办业务 |
| | | * |
| | | * @return R |
| | | */ |
| | | @PostMapping(TODO_LIST) |
| | | R<List<BladeFlow>> getTodoBladeFlowList(@RequestParam("size") Integer size,@RequestParam("current") Integer current,@RequestParam("currentUserId") String currentUserId,@RequestBody BladeFlow bladeFlow); |
| | | } |