|
|
|
@@ -271,8 +271,8 @@ public class SysUserController extends BaseController { |
|
|
|
*/ |
|
|
|
@RequiresPermissions("system:user:edit") |
|
|
|
@Log(title = "用户管理", businessType = BusinessType.GRANT) |
|
|
|
@PutMapping("/authRole") |
|
|
|
public AjaxResult insertAuthRole(Long userId, Long[] roleIds) { |
|
|
|
@PutMapping("/authRole/{userId}") |
|
|
|
public AjaxResult insertAuthRole(@PathVariable("userId") Long userId, @RequestBody Long[] roleIds) { |
|
|
|
userService.checkUserDataScope(userId); |
|
|
|
userService.insertUserAuth(userId, roleIds); |
|
|
|
return success(); |
|
|
|
|