Commit 2b8bd096 authored by xuhuanchao's avatar xuhuanchao

修改权限

parent 3de96700
......@@ -151,9 +151,7 @@ public class DqPersonelController {
return new Result<Map<String, Object>>().error(ErrorCode.UPLOAD_FILE_EMPTY);
}
dqPersonelService.uploadSave(file);
Map<String, Object> data = new HashMap<>(1);
data.put("src", "url");
return new Result<Map<String, Object>>().ok(data);
return new Result<>();
}
}
\ No newline at end of file
......@@ -54,7 +54,6 @@ public class DqRegionController {
@ApiImplicitParam(name = "community", value = "社区地址", paramType = "query", dataType="String"),
@ApiImplicitParam(name = "address", value = "详细地址", paramType = "query", dataType="String")
})
@RequiresPermissions("dq:dqregion:page")
public Result<PageData<DqRegionDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<DqRegionDTO> page = dqRegionService.page(params);
......@@ -63,7 +62,6 @@ public class DqRegionController {
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("dq:dqregion:info")
public Result<DqRegionDTO> get(@PathVariable("id") Long id){
DqRegionDTO data = dqRegionService.get(id);
......@@ -72,7 +70,6 @@ public class DqRegionController {
@GetMapping("list")
@ApiOperation("列表")
@RequiresPermissions("dq:dqpersonel:info")
public Result<List<DqRegionDTO>> list(){
return new Result<List<DqRegionDTO>>().ok(dqRegionService.list(new HashMap<>()));
......@@ -81,7 +78,6 @@ public class DqRegionController {
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("dq:dqregion:save")
public Result<Object> save(@RequestBody DqRegionDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
......@@ -94,7 +90,6 @@ public class DqRegionController {
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("dq:dqregion:update")
public Result<Object> update(@RequestBody DqRegionDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
......@@ -107,7 +102,6 @@ public class DqRegionController {
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("dq:dqregion:delete")
public Result<Object> delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
......@@ -120,7 +114,6 @@ public class DqRegionController {
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("dq:dqregion:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<DqRegionDTO> list = dqRegionService.list(params);
......
......@@ -70,6 +70,7 @@ public class ShiroConfig {
filterMap.put("/diagram-viewer/**", "anon");
filterMap.put("/modeler.html", "anon");
filterMap.put("/captcha", "anon");
filterMap.put("/dq/dqregion/**", "anon");
filterMap.put("/favicon.ico", "anon");
filterMap.put("/**", "oauth2");
shiroFilter.setFilterChainDefinitionMap(filterMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment