import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ErpClientVO, ErpClientQuery } from './types';

/**
 * 查询ERP客户列表
 * @param query
 * @Author: Antigravity
 */
export const listErpClient = (query?: ErpClientQuery): AxiosPromise<ErpClientVO[]> => {
  return request({
    url: '/erp/client/list',
    method: 'get',
    params: query
  });
};
