当前角色问题解决

This commit is contained in:
2025-05-06 10:04:29 +08:00
parent 4c69575084
commit a1e2b71141
12 changed files with 76 additions and 51 deletions

View File

@@ -230,7 +230,7 @@ public class SysRoleController extends BaseController {
* 获取当前用户的role对象
*/
@GetMapping("/currentRole")
public R<SysRole> currentRole() {
public R<List<SysRole>> currentRole() {
return R.ok(roleService.getCurrentRole());
}
}