|
|
@@ -3,6 +3,11 @@
|
|
|
*/
|
|
|
|
|
|
import { post } from "@/lib/request";
|
|
|
+import type {
|
|
|
+ PagerUserRandomProfileAdminDTO,
|
|
|
+ UserRandomProfileAdminDTO,
|
|
|
+ UserRandomProfileAdminQuery,
|
|
|
+} from "@/types/api";
|
|
|
import type {
|
|
|
EditPlaymateInfoAdminQuery,
|
|
|
PagerUserInfoAdminDTO,
|
|
|
@@ -10,11 +15,6 @@ import type {
|
|
|
UserInfoDetailAdminQuery,
|
|
|
UserInfoFullAdminDTO,
|
|
|
} from "@/types/api/user";
|
|
|
-import type {
|
|
|
- PagerUserRandomProfileAdminDTO,
|
|
|
- UserRandomProfileAdminDTO,
|
|
|
- UserRandomProfileAdminQuery,
|
|
|
-} from "@/types/api";
|
|
|
|
|
|
/**
|
|
|
* Get user list with pagination
|
|
|
@@ -49,7 +49,10 @@ export async function updateUserBaseInfo(data: EditPlaymateInfoAdminQuery) {
|
|
|
export async function getUserRandomProfilePage(
|
|
|
query: UserRandomProfileAdminQuery,
|
|
|
): Promise<PagerUserRandomProfileAdminDTO> {
|
|
|
- return post<PagerUserRandomProfileAdminDTO>("/user/random-profile/page", query);
|
|
|
+ return post<PagerUserRandomProfileAdminDTO>(
|
|
|
+ "/user/random-profile/page",
|
|
|
+ query,
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -76,4 +79,3 @@ export async function updateUserRandomProfile(
|
|
|
export async function deleteUserRandomProfiles(ids: string[]): Promise<void> {
|
|
|
await post<unknown>("/user/random-profile/delete", { ids });
|
|
|
}
|
|
|
-
|