|
@@ -5,6 +5,7 @@ import com.flow.entity.FlowDefine;
|
|
|
import com.flow.entity.FlowModel;
|
|
|
import com.flow.service.FlowModelService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
@@ -37,6 +38,7 @@ public class FlowModelController {
|
|
|
return Result.success(flowModelService.suspend(modelId));
|
|
|
}
|
|
|
|
|
|
+ @PreAuthorize("hasAnyAuthority('flow:model:del')")
|
|
|
@DeleteMapping
|
|
|
public Result<?> delete(@RequestBody Set<Long> ids) {
|
|
|
flowModelService.delete(ids);
|