vue-vben-admin/apps/web-antd/src/apis/modules/user.ts

24 lines
431 B
TypeScript
Raw Normal View History

2024-06-02 20:47:50 +08:00
import type { UserInfo } from '@vben/types';
import type { UserApiType } from '../types';
2024-06-08 19:49:06 +08:00
2024-06-29 15:41:10 +08:00
import { get, post } from '#/forward';
2024-06-02 20:47:50 +08:00
/**
*
*/
async function userLogin(data: UserApiType.LoginParams) {
2024-06-29 15:41:10 +08:00
return post<UserApiType.LoginResult>('/login', data);
2024-06-02 20:47:50 +08:00
}
/**
*
*/
async function getUserInfo() {
2024-06-29 15:41:10 +08:00
return get<UserInfo>('/getUserInfo');
2024-06-02 20:47:50 +08:00
}
export { getUserInfo, userLogin };
export * from './user';