Files
qnc-admin-v3/playground/src/api/examples/params.ts

20 lines
382 B
TypeScript
Raw Normal View History

2026-01-10 18:11:29 +08:00
import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';
/**
*
*/
async function getParamsData(
params: Recordable<any>,
type: 'brackets' | 'comma' | 'indices' | 'repeat',
) {
return requestClient.get('/status', {
params,
paramsSerializer: type,
responseReturn: 'raw',
});
}
export { getParamsData };