import request from '@/lib/request';

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