heli-mes/mes-ui/mini-app/src/services/profile.ts

33 lines
831 B
TypeScript
Raw Normal View History

2025-01-10 08:50:29 +08:00
/*
* @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,
})
}