refactor: remove unused admin user update function and update related components to use new API
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user