import apiClient from "../client" /** * 请求密码重置 */ export const requestPasswordReset = async (email: string): Promise<{ message: string }> => { const response = await apiClient.post("/auth/forgot-password", { email }) return response.data } /** * 重置密码 */ export const resetPassword = async ( token: string, newPassword: string, ): Promise<{ message: string }> => { const response = await apiClient.post("/auth/reset-password", { token, new_password: newPassword, }) return response.data }