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

enum Api {
  pageList = '/service/manage_jp/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,
    },
  });
