11 lines
301 B
TypeScript
11 lines
301 B
TypeScript
import { request } from '@/utils/request'
|
|
import type { UserProfileVo } from '@/types/business/user'
|
|
|
|
export async function getUserProfile(): Promise<UserProfileVo> {
|
|
const data = await request<{ user: UserProfileVo }>({
|
|
url: '/system/user/profile',
|
|
method: 'get',
|
|
})
|
|
return data.user
|
|
}
|