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

const { request } = networkUtils;
const { api } = config;
const { mdata } = api;
const { org } = mdata;

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

export async function getSingle(id) {
  return request({
    url: `${org}/${id}`,
    method: 'get',
  });
}
