user.ts 219 B

12345678910
  1. import type { UserInfo } from '@vben/types';
  2. import { requestClient } from '#/api/request';
  3. /**
  4. * 获取用户信息
  5. */
  6. export async function getUserInfoApi() {
  7. return requestClient.get<UserInfo>('/user/info');
  8. }