新增根据用户id查询是否超级管理员的接口

This commit is contained in:
ranke
2026-01-29 09:20:23 +08:00
parent 545a0086e5
commit 396b26225f
4 changed files with 25 additions and 0 deletions

View File

@@ -56,4 +56,9 @@ public interface PermissionApi extends PermissionCommonApi {
@Parameter(name = "userId", description = "用户编号", example = "1", required = true)
CommonResult<DataScopeEnum> getUserDataPermissionLevel(@RequestParam("userId") Long userId);
@GetMapping(PREFIX + "/get")
@Operation(summary = "通过用户 ID 查询用户是否为超级管理员")
@Parameter(name = "id", description = "用户编号", example = "1", required = true)
CommonResult<Boolean> isSuperAdmin(@RequestParam("id") Long id);
}