import { defHttp } from '/@/utils/http/axios';
import { PageParams, MemberListGetResultModel } from './model';

enum Api {
  pageList = '/basic-api/user/list',
}

/**
 * @description: Get sample list value
 */

export const ListApi = (params: PageParams) =>
  defHttp.post<MemberListGetResultModel>({
    url: Api.pageList,
    params,
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  });
