|
@@ -34,7 +34,7 @@ public class RoleManageController {
|
|
|
|
|
|
@GetMapping("getRoleList")
|
|
@GetMapping("getRoleList")
|
|
@ApiOperation(value = "获取角色列表", notes = "权限:sys:role:query")
|
|
@ApiOperation(value = "获取角色列表", notes = "权限:sys:role:query")
|
|
- @PreAuthorize("hasAuthority('sys:role:query')")
|
|
|
|
|
|
+ // @PreAuthorize("hasAuthority('sys:role:query')")
|
|
public AjaxMessage<Pagination<Role>> getRoleList(
|
|
public AjaxMessage<Pagination<Role>> getRoleList(
|
|
@ApiParam(value = "名称", required = false) @RequestParam(required = false) String name,
|
|
@ApiParam(value = "名称", required = false) @RequestParam(required = false) String name,
|
|
@ApiParam(value = "页数,非必传,默认第一页", required = false, defaultValue = "1") @RequestParam(required = false, defaultValue = "1") int pageNum,
|
|
@ApiParam(value = "页数,非必传,默认第一页", required = false, defaultValue = "1") @RequestParam(required = false, defaultValue = "1") int pageNum,
|
|
@@ -48,7 +48,7 @@ public class RoleManageController {
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("add")
|
|
@PostMapping("add")
|
|
- @PreAuthorize("hasAuthority('sys:role:add')")
|
|
|
|
|
|
+ // @PreAuthorize("hasAuthority('sys:role:add')")
|
|
@ApiOperation(value = "添加角色", notes = "权限:sys:role:add")
|
|
@ApiOperation(value = "添加角色", notes = "权限:sys:role:add")
|
|
public AjaxMessage addRole(
|
|
public AjaxMessage addRole(
|
|
@ApiParam(value = "角色", required = true) @RequestBody(required = true) @Validated RoleDto roleDto
|
|
@ApiParam(value = "角色", required = true) @RequestBody(required = true) @Validated RoleDto roleDto
|
|
@@ -58,7 +58,7 @@ public class RoleManageController {
|
|
}
|
|
}
|
|
|
|
|
|
@PutMapping("edit")
|
|
@PutMapping("edit")
|
|
- @PreAuthorize("hasAuthority('sys:role:edit')")
|
|
|
|
|
|
+ //@PreAuthorize("hasAuthority('sys:role:edit')")
|
|
@ApiOperation(value = "编辑角色", notes = "权限:sys:role:edit")
|
|
@ApiOperation(value = "编辑角色", notes = "权限:sys:role:edit")
|
|
public AjaxMessage editRole(
|
|
public AjaxMessage editRole(
|
|
@ApiParam(value = "角色", required = true) @RequestBody(required = true) Role role
|
|
@ApiParam(value = "角色", required = true) @RequestBody(required = true) Role role
|
|
@@ -68,7 +68,7 @@ public class RoleManageController {
|
|
}
|
|
}
|
|
|
|
|
|
@DeleteMapping("delete")
|
|
@DeleteMapping("delete")
|
|
- @PreAuthorize("hasAuthority('sys:role:del')")
|
|
|
|
|
|
+ // @PreAuthorize("hasAuthority('sys:role:del')")
|
|
@ApiOperation(value = "删除角色", notes = "权限:sys:role:del")
|
|
@ApiOperation(value = "删除角色", notes = "权限:sys:role:del")
|
|
public AjaxMessage delRole(
|
|
public AjaxMessage delRole(
|
|
@ApiParam(value = "角色id", required = true) @RequestParam(required = true) Integer roleId
|
|
@ApiParam(value = "角色id", required = true) @RequestParam(required = true) Integer roleId
|