refactor: remove unused admin user update function and update related components to use new API

This commit is contained in:
2026-05-25 16:43:55 +08:00
parent 84bf924378
commit eb02252431
5 changed files with 24 additions and 16 deletions

View File

@@ -42,11 +42,3 @@ export async function postAdminLogin(
export async function getAdminMe(): Promise<AdminAuthMeResponse> {
return adminRequest.get<AdminAuthMeResponse>(`${API_V1_PREFIX}/admin/auth/me`);
}
/** `PUT /api/v1/admin/auth/me`(更新自身账号信息,需 Token */
export async function putAdminMe(body: {
nickname?: string;
password?: string;
}): Promise<AdminAuthMeResponse> {
return adminRequest.put<AdminAuthMeResponse>(`${API_V1_PREFIX}/admin/auth/me`, body);
}