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

20 lines
557 B
TypeScript
Raw Normal View History

2021-03-01 22:54:21 +08:00
import {
AccountParams,
DeptListItem,
DeptListGetResultModel,
AccountListGetResultModel,
} from './model/systemModel';
2021-03-01 00:56:25 +08:00
import { defHttp } from '/@/utils/http/axios';
enum Api {
// The address does not exist
AccountList = '/system/getAccountList',
2021-03-01 22:54:21 +08:00
DeptList = '/system/getDeptList',
2021-03-01 00:56:25 +08:00
}
2021-03-01 22:54:21 +08:00
export const getAccountList = (params: AccountParams) =>
defHttp.get<AccountListGetResultModel>({ url: Api.AccountList, params });
export const getDeptList = (params?: DeptListItem) =>
defHttp.get<DeptListGetResultModel>({ url: Api.DeptList, params });