params.ts 382 B

12345678910111213141516171819
  1. import type { Recordable } from '@vben/types';
  2. import { requestClient } from '#/api/request';
  3. /**
  4. * 发起数组请求
  5. */
  6. async function getParamsData(
  7. params: Recordable<any>,
  8. type: 'brackets' | 'comma' | 'indices' | 'repeat',
  9. ) {
  10. return requestClient.get('/status', {
  11. params,
  12. paramsSerializer: type,
  13. responseReturn: 'raw',
  14. });
  15. }
  16. export { getParamsData };