|  | @@ -4,6 +4,7 @@ import com.xunmei.common.core.web.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.xunmei.common.core.web.domain.AjaxResult;
 | 
	
		
			
				|  |  |  import com.xunmei.common.security.annotation.RequiresPermissions;
 | 
	
		
			
				|  |  |  import com.xunmei.core.safetyCheck.dto.register.AppListDto;
 | 
	
		
			
				|  |  | +import com.xunmei.core.safetyCheck.dto.register.GrantDto;
 | 
	
		
			
				|  |  |  import com.xunmei.core.safetyCheck.service.SafetyCheckRegisterSerice;
 | 
	
		
			
				|  |  |  import com.xunmei.core.safetyCheck.vo.Regsiter.AppListVo;
 | 
	
		
			
				|  |  |  import com.xunmei.core.safetyCheck.vo.Regsiter.TaskRegisterVo;
 | 
	
	
		
			
				|  | @@ -12,6 +13,7 @@ import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  | +import javax.validation.constraints.NotNull;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -32,16 +34,23 @@ public class SafetyCheckRegisterController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "详情")
 | 
	
		
			
				|  |  |      @GetMapping("{id}")
 | 
	
		
			
				|  |  | -    @RequiresPermissions("safetycheck:register:query")
 | 
	
		
			
				|  |  | +//    @RequiresPermissions("safetycheck:register:query")
 | 
	
		
			
				|  |  |      public AjaxResult info(@PathVariable Long id) {
 | 
	
		
			
				|  |  |          return success(safetyCheckRegisterSerice.info(id));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "查询机构可用的规范")
 | 
	
		
			
				|  |  |      @PostMapping("submit")
 | 
	
		
			
				|  |  | -    @RequiresPermissions(value = {"safetycheck:register:register"})
 | 
	
		
			
				|  |  | +//    @RequiresPermissions(value = {"safetycheck:register:register"})
 | 
	
		
			
				|  |  |      public AjaxResult submit(@RequestBody TaskRegisterVo dto) {
 | 
	
		
			
				|  |  |          boolean r = safetyCheckRegisterSerice.submit(dto);
 | 
	
		
			
				|  |  |          return success(r);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "授权")
 | 
	
		
			
				|  |  | +    @PostMapping("grant")
 | 
	
		
			
				|  |  | +    public AjaxResult grant(@RequestBody GrantDto dto) {
 | 
	
		
			
				|  |  | +        boolean r = safetyCheckRegisterSerice.grant(dto);
 | 
	
		
			
				|  |  | +        return success(r);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |