|  | @@ -4,6 +4,7 @@ import cn.hutool.core.date.DateTime;
 | 
	
		
			
				|  |  |  import com.xunmei.common.core.web.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.xunmei.common.core.web.domain.AjaxResult;
 | 
	
		
			
				|  |  |  import com.xunmei.common.core.web.page.TableDataInfo;
 | 
	
		
			
				|  |  | +import com.xunmei.common.security.annotation.RequiresPermissions;
 | 
	
		
			
				|  |  |  import com.xunmei.core.resumption.domain.Protection;
 | 
	
		
			
				|  |  |  import com.xunmei.core.resumption.dto.appRule.AppRuleEditDto;
 | 
	
		
			
				|  |  |  import com.xunmei.core.resumption.dto.protection.ProtectionEditDto;
 | 
	
	
		
			
				|  | @@ -34,6 +35,7 @@ class ProtectionController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "分页")
 | 
	
		
			
				|  |  |      @GetMapping(value = "page")
 | 
	
		
			
				|  |  |  //    @WebMethodLogDesc("防区状态app")
 | 
	
		
			
				|  |  | +    @RequiresPermissions("device:protection")
 | 
	
		
			
				|  |  |      TableDataInfo page(final ProtectionPageDto request) {
 | 
	
		
			
				|  |  |          TableDataInfo data = this.protectionService.pageList(request);
 | 
	
		
			
				|  |  |          return data;
 | 
	
	
		
			
				|  | @@ -41,6 +43,7 @@ class ProtectionController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "分页")
 | 
	
		
			
				|  |  |      @GetMapping(value = "log/page")
 | 
	
		
			
				|  |  | +    @RequiresPermissions("device:protection")
 | 
	
		
			
				|  |  |      TableDataInfo LogpageList(final ProtectionLogPageDto request) {
 | 
	
		
			
				|  |  |          final TableDataInfo page = this.protectionService.history(request);
 | 
	
		
			
				|  |  |          return page;
 | 
	
	
		
			
				|  | @@ -48,12 +51,14 @@ class ProtectionController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "新增/编辑")
 | 
	
		
			
				|  |  |      @PostMapping("edit")
 | 
	
		
			
				|  |  | +    @RequiresPermissions(value = {"device:protection:add","device:protection:edit"})
 | 
	
		
			
				|  |  |      public AjaxResult edit(@RequestBody ProtectionEditDto editDto) {
 | 
	
		
			
				|  |  |          return success(protectionService.edit(editDto));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @ApiOperation(value = "删除规范")
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "规范")
 | 
	
		
			
				|  |  |      @GetMapping("{id}")
 | 
	
		
			
				|  |  | +    @RequiresPermissions("device:protection:query")
 | 
	
		
			
				|  |  |      public AjaxResult get(@PathVariable Long id) {
 | 
	
		
			
				|  |  |          Protection r = protectionService.get(id);
 | 
	
		
			
				|  |  |          return success(r);
 | 
	
	
		
			
				|  | @@ -61,6 +66,7 @@ class ProtectionController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "删除规范")
 | 
	
		
			
				|  |  |      @DeleteMapping("{id}")
 | 
	
		
			
				|  |  | +    @RequiresPermissions("device:protection:remove")
 | 
	
		
			
				|  |  |      public AjaxResult del(@PathVariable Long id) {
 | 
	
		
			
				|  |  |          boolean r = protectionService.del(id);
 | 
	
		
			
				|  |  |          return success(r);
 | 
	
	
		
			
				|  | @@ -68,6 +74,7 @@ class ProtectionController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "布撤防")
 | 
	
		
			
				|  |  |      @PostMapping("updatestatus/{protectionId}/{status}")
 | 
	
		
			
				|  |  | +    @RequiresPermissions("device:protection:maintain")
 | 
	
		
			
				|  |  |      public AjaxResult edit(@PathVariable Long protectionId,@PathVariable String status) {
 | 
	
		
			
				|  |  |          return success(protectionService.updateStatus(protectionId,status));
 | 
	
		
			
				|  |  |      }
 |