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

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

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

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