Commit 2b8bd096 authored by xuhuanchao's avatar xuhuanchao

修改权限

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