|
|
|
@ -111,7 +111,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
public AjaxResult edit(@Validated @RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
|
@ -146,7 +146,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/dataScope")
|
|
|
|
|
@PostMapping("/dataScope")
|
|
|
|
|
public AjaxResult dataScope(@RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
|
@ -159,7 +159,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping("/changeStatus")
|
|
|
|
|
@PostMapping("/changeStatus")
|
|
|
|
|
public AjaxResult changeStatus(@RequestBody SysRole role)
|
|
|
|
|
{
|
|
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
|
@ -173,7 +173,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:remove')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{roleIds}")
|
|
|
|
|
@PostMapping("/{roleIds}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] roleIds)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(roleService.deleteRoleByIds(roleIds));
|
|
|
|
@ -218,7 +218,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/cancel")
|
|
|
|
|
@PostMapping("/authUser/cancel")
|
|
|
|
|
public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(roleService.deleteAuthUser(userRole));
|
|
|
|
@ -229,7 +229,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/cancelAll")
|
|
|
|
|
@PostMapping("/authUser/cancelAll")
|
|
|
|
|
public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(roleService.deleteAuthUsers(roleId, userIds));
|
|
|
|
@ -240,7 +240,7 @@ public class SysRoleController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
|
|
@Log(title = "角色管理", businessType = BusinessType.GRANT)
|
|
|
|
|
@PutMapping("/authUser/selectAll")
|
|
|
|
|
@PostMapping("/authUser/selectAll")
|
|
|
|
|
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
|
|
|
|
|
{
|
|
|
|
|
roleService.checkRoleDataScope(roleId);
|
|
|
|
|