system.ts 557 B

12345678910111213141516171819
  1. import {
  2. AccountParams,
  3. DeptListItem,
  4. DeptListGetResultModel,
  5. AccountListGetResultModel,
  6. } from './model/systemModel';
  7. import { defHttp } from '/@/utils/http/axios';
  8. enum Api {
  9. // The address does not exist
  10. AccountList = '/system/getAccountList',
  11. DeptList = '/system/getDeptList',
  12. }
  13. export const getAccountList = (params: AccountParams) =>
  14. defHttp.get<AccountListGetResultModel>({ url: Api.AccountList, params });
  15. export const getDeptList = (params?: DeptListItem) =>
  16. defHttp.get<DeptListGetResultModel>({ url: Api.DeptList, params });