import { request } from '@/utils/request'
import type { BaseResponse } from '../login/type'

export const changePasswordAPI = (data: { oldPassword: string; newPassword: string }) =>
  request.post<BaseResponse<any>>('/user/updatePassword', data)

export const logoutAPI = () => request.post<BaseResponse<any>>('/jwt/jsonInBlacklist')
