import request from '@/lib/client/request';

export async function fetchCharacters({ index, limit, query }: any) {
  await new Promise((resolve) => setTimeout(resolve, 1000));
  const { data } = await request('/api/character/list', {
    method: 'POST',
    data: { index, limit, ...query },
  });
  return data;
}
