20 lines
428 B
TypeScript

import { http } from '@/utils/http'
import type { ProfileDetail, ProfileParams } from '@/types/member'
// 获取个人信息详情
export const getProfileAPI = () => {
return http<ProfileDetail>({
url: '/member/profile',
method: 'GET',
})
}
// 修改个人信息
export const putProfileAPI = (data: ProfileParams) => {
return http<ProfileParams>({
url: '/member/profile',
method: 'PUT',
data,
})
}