const api = {
  findByTemplateKey: ($http, data) => {
    return $http.post(`${$servers.base}/template/sysTemplate/findByTemplateKey`, data);
  },
  getDataDicArea4Cascader: ($http) => {
    return $http.post(`${$servers.base}/parm/sysParmDic/getDataDicArea4Cascader`);
  },
  getDataDicTrade4Cascader: ($http) => {
    return $http.post(`${$servers.base}/parm/sysParmDic/getDataDicTrade4Cascader`);
  },
  getTemplateDialogById: ($http, id) => {
    return $http.postForm(`${$servers.base}/template/sysTemplateDialog/getById`, { id });
  },
  getProductData: ($http, prodId) => {
    return $http.postForm(`${$servers.base}/design/getProductData`, { prodId });
  }
};
export {
  api as default
};
