import { config, networkUtils } from '../../utils';

const { request } = networkUtils;
const { api } = config;
const { reports } = api;
const { purchaseTotal } = reports;

export async function query(params) {
  return request({
    url: purchaseTotal,
    method: 'get',
    data: params,
  });
}