33 lines
831 B
TypeScript
33 lines
831 B
TypeScript
![]() |
/*
|
||
|
* @Author: 王文杰
|
||
|
* @Date: 2024-01-04 12:54:56
|
||
|
* @LastEditors: 王文杰
|
||
|
* @LastEditTime: 2024-03-07 15:49:32
|
||
|
* @FilePath: /app-nx-personal/src/services/profile.ts
|
||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||
|
*/
|
||
|
import type { ProfileDetail, ProfileParams } from '@/types/member'
|
||
|
import { http } from '@/utils/http'
|
||
|
|
||
|
/**
|
||
|
* 获取个人信息
|
||
|
*/
|
||
|
export const getMemberProfileAPI = () => {
|
||
|
return http<ProfileDetail>({
|
||
|
method: 'GET',
|
||
|
url: '/client/info',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 修改个人信息
|
||
|
* @param data 请求体参数
|
||
|
*/
|
||
|
export const postMemberProfileAPI = (data: ProfileParams) => {
|
||
|
return http<ProfileDetail>({
|
||
|
method: 'POST',
|
||
|
url: '/client/update',
|
||
|
data,
|
||
|
})
|
||
|
}
|