|
@@ -93,7 +93,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);
|
|
|
if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) {
|
|
@@ -121,7 +121,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);
|
|
|
return toAjax(roleService.authDataScope(role));
|
|
@@ -132,7 +132,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);
|
|
|
role.setUpdateBy(SecurityUtils.getUsername());
|
|
@@ -144,7 +144,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));
|
|
|
}
|