|
@@ -107,7 +107,7 @@ public class SysRoleController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping
|
|
|
+ @PostMapping("put")
|
|
|
public AjaxResult edit(@Validated @RequestBody SysRole role)
|
|
|
{
|
|
|
roleService.checkRoleAllowed(role);
|
|
@@ -142,7 +142,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);
|
|
@@ -155,7 +155,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);
|
|
@@ -169,7 +169,7 @@ public class SysRoleController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:remove')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{roleIds}")
|
|
|
+ @GetMapping(value = "/delete/{roleIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] roleIds)
|
|
|
{
|
|
|
return toAjax(roleService.deleteRoleByIds(roleIds));
|
|
@@ -214,7 +214,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));
|
|
@@ -225,7 +225,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));
|
|
@@ -236,7 +236,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);
|