vue-vben-admin/src/api/demo/account.ts

13 lines
320 B
TypeScript
Raw Normal View History

2020-11-14 20:34:46 +08:00
import { defHttp } from '/@/utils/http/axios';
import { GetAccountInfoModel } from './model/accountModel';
2021-02-26 22:45:36 +08:00
const { get } = defHttp;
2020-11-14 20:34:46 +08:00
enum Api {
ACCOUNT_INFO = '/account/getAccountInfo',
}
2020-11-18 22:41:59 +08:00
// Get personal center-basic settings
2021-02-26 22:45:36 +08:00
export const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });