|
|
@@ -108,7 +108,7 @@ public class SysRoleController extends BaseController
|
|
|
@ApiOperation("修改保存角色")
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping
|
|
|
+ @PostMapping("/edit")
|
|
|
public AjaxResult edit(@Validated @RequestBody SysRole role)
|
|
|
{
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
@@ -143,7 +143,7 @@ public class SysRoleController extends BaseController
|
|
|
@ApiOperation("修改保存数据权限")
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping("/dataScope")
|
|
|
+ @PostMapping("/dataScope")
|
|
|
public AjaxResult dataScope(@RequestBody SysRole role)
|
|
|
{
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
@@ -156,7 +156,7 @@ public class SysRoleController extends BaseController
|
|
|
@ApiOperation("状态修改")
|
|
|
@PreAuthorize("@ss.hasPermi('system:role:edit')")
|
|
|
@Log(title = "角色管理", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping("/changeStatus")
|
|
|
+ @PostMapping("/changeStatus")
|
|
|
public AjaxResult changeStatus(@RequestBody SysRole role)
|
|
|
{
|
|
|
roleService.checkRoleAllowed(role);
|
|
|
@@ -167,9 +167,10 @@ public class SysRoleController extends BaseController
|
|
|
/**
|
|
|
* 删除角色
|
|
|
*/
|
|
|
+ @ApiOperation("删除角色")
|
|
|
@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));
|