|
@@ -111,7 +111,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);
|
|
@@ -146,7 +146,7 @@ public class SysRoleController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping("/dataScope")
|
|
|
+ @PostMapping("/dataScope/put")
|
|
|
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/put")
|
|
|
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}")
|
|
|
+ @GetMapping("/delete/{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/put")
|
|
|
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/put")
|
|
|
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/put")
|
|
|
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
|
|
|
{
|
|
|
roleService.checkRoleDataScope(roleId);
|