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