|
@@ -63,6 +63,10 @@ public interface AdminUserApi {
|
|
|
@Operation(summary = "获取全部开启用户")
|
|
|
CommonResult<List<AdminUserRespDTO>> getUserList();
|
|
|
|
|
|
+ @GetMapping(PREFIX + "/list-all")
|
|
|
+ @Operation(summary = "获取全部用户")
|
|
|
+ CommonResult<List<AdminUserRespDTO>> getAllUserList();
|
|
|
+
|
|
|
@GetMapping(PREFIX + "/dept-child-list-by-dept-id")
|
|
|
@Operation(summary = "获得指定部门的用户数组")
|
|
|
@Parameter(name = "deptIds", description = "部门编号数组", example = "1,2", required = true)
|
|
@@ -107,6 +111,15 @@ public interface AdminUserApi {
|
|
|
return CollectionUtils.convertMap(getUserList().getCheckedData(), AdminUserRespDTO::getId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获得全部用户 Map
|
|
|
+ *
|
|
|
+ * @return 用户 Map
|
|
|
+ */
|
|
|
+ default Map<String, AdminUserRespDTO> getAllUserMap() {
|
|
|
+ return CollectionUtils.convertMap(getAllUserList().getCheckedData(), AdminUserRespDTO::getId);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping(PREFIX + "/valid")
|
|
|
@Operation(summary = "校验用户们是否有效")
|
|
|
@Parameter(name = "ids", description = "用户编号数组", example = "3,5", required = true)
|