whyclxw
2024-04-28 b25b814a949d2065a61fd3167206ffb51a57af65
src/main/java/com/whyc/controller/WorkflowActionController.java
@@ -29,7 +29,7 @@
    //    return new Response().setII(1,"创建成功");
    //}
    @PutMapping
    @PostMapping
    @ApiOperation(value = "更新动作规则")
    public Response update(@RequestBody List<WorkflowAction> workflowActionList){
        service.update(workflowActionList);
@@ -48,7 +48,7 @@
     */
    @GetMapping("actionTypeList4Role")
    @ApiOperation(value = "查询动作列表")
    public Response getActionTypeList(@RequestParam Integer type,@RequestBody Integer status){
    public Response getActionTypeList(@RequestParam Integer type,@RequestParam Integer status){
        int userRole = ActionUtil.getUser().getURole();
        List<WorkflowAction> actionTypeList = service.getActionTypeList(type,status,userRole);
        return new Response<List<WorkflowAction>>().set(1,actionTypeList);