import "../axios/config.mjs";
import "../../../_virtual/FileSaver.min.mjs";
import "../../../_virtual/index.mjs";
/* empty css                                                    */
/* empty css                                                          */
const api = {
  login4dev: ($http) => {
    return $http.post(`${$servers.base}/login4dev`);
  },
  getTemplateByRelIdType: ($http, relId, relType) => {
    return $http.postForm(
      `${$servers.base}/sys/homepage/template/getTemplateByRelIdType`,
      { relId, relType }
    );
  },
  saveTemplate: ($http, data) => {
    return $http.post(
      `${$servers.base}/sys/homepage/template/saveTemplate`,
      data
    );
  },
  restoreToDefault: ($http) => {
    return $http.post(
      `${$servers.base}/sys/homepage/template/restoreToDefault`
    );
  },
  getWorkbenchComponents: ($http, moduleType) => {
    return $http.post(
      `${$servers.base}/sysAssistConfig/getWorkbenchComponents`,
      { moduleType }
    );
  }
};
export {
  api as default
};
