refactor(video): 移除设备和巡检任务接口权限注解并调整模型控制器包结构
- 移除了 DeviceController 中所有方法的 @PreAuthorize 权限注解 - 移除了 InspectionTaskController 中所有方法的 @PreAuthorize 权限注解 - 将 ModelController 从 ruoyi-admin 模块迁移至 ruoyi-video 模块- 调整 ModelController 包路径并继承 BaseController-为 ModelController 的各个接口添加了相应的权限注解- 修改 list 方法返回类型为 TableDataInfo 并支持分页查询- 引入缺失的类依赖和安全注解支持
This commit is contained in:
@@ -32,7 +32,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 查询巡检任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(InspectionTask inspectionTask) {
|
||||
startPage();
|
||||
@@ -43,7 +42,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 导出巡检任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:export')")
|
||||
@Log(title = "巡检任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, InspectionTask inspectionTask) {
|
||||
@@ -55,7 +53,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 获取巡检任务详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:query')")
|
||||
@GetMapping(value = "/{taskId}")
|
||||
public AjaxResult getInfo(@PathVariable("taskId") Long taskId) {
|
||||
return success(inspectionTaskService.selectInspectionTaskById(taskId));
|
||||
@@ -64,7 +61,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 新增巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:add')")
|
||||
@Log(title = "巡检任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody InspectionTask inspectionTask) {
|
||||
@@ -74,7 +70,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 修改巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:edit')")
|
||||
@Log(title = "巡检任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody InspectionTask inspectionTask) {
|
||||
@@ -84,7 +79,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 删除巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:remove')")
|
||||
@Log(title = "巡检任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{taskIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] taskIds) {
|
||||
@@ -94,7 +88,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 启动巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:start')")
|
||||
@Log(title = "启动巡检任务", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/start/{taskId}")
|
||||
public AjaxResult start(@PathVariable Long taskId) {
|
||||
@@ -105,7 +98,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 停止巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:stop')")
|
||||
@Log(title = "停止巡检任务", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/stop/{taskId}")
|
||||
public AjaxResult stop(@PathVariable Long taskId) {
|
||||
@@ -116,7 +108,6 @@ public class InspectionTaskController extends BaseController {
|
||||
/**
|
||||
* 手动执行巡检任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('video:inspection:execute')")
|
||||
@Log(title = "执行巡检任务", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/execute/{taskId}")
|
||||
public AjaxResult execute(@PathVariable Long taskId) {
|
||||
|
||||
Reference in New Issue
Block a user