var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/workSpaceList/server.ts
var server_exports = {};
__export(server_exports, {
  addBase: () => addBase,
  addWorkspace: () => addWorkspace,
  default: () => server_default,
  deleteBaseDetail: () => deleteBaseDetail,
  deleteWorkspace: () => deleteWorkspace,
  getBaseDetail: () => getBaseDetail,
  getBaseList: () => getBaseList,
  getWorkspaceDetail: () => getWorkspaceDetail,
  getWorkspaceList: () => getWorkspaceList,
  getWorkspaces: () => getWorkspaces,
  searchWorkspace: () => searchWorkspace,
  updateBaseDetail: () => updateBaseDetail,
  updateWorkspace: () => updateWorkspace
});
module.exports = __toCommonJS(server_exports);
var import_utils = require("./../../utils/index");
var getWorkspaces = async (params) => {
  return import_utils.request.getRequest().get("/workspace/main", params);
};
var deleteWorkspace = async (id) => {
  return import_utils.request.getRequest().remove(`/workspace/${id}`);
};
var addWorkspace = async (params) => {
  return import_utils.request.getRequest().post(`/workspace`, params);
};
var updateWorkspace = async (params) => {
  const { id, ...others } = params;
  return import_utils.request.getRequest().put(`/workspace/${id}`, others);
};
var getWorkspaceDetail = async (id) => {
  return import_utils.request.getRequest().get(`/workspace/${id}`, {});
};
var getWorkspaceList = async (params) => {
  return import_utils.request.getRequest().get("/workspace/selector", params);
};
var searchWorkspace = async (params) => {
  return import_utils.request.getRequest().get("/workspace/search", params);
};
var addBase = async (params) => {
  return import_utils.request.getRequest().post("/workspace/base", params);
};
var getBaseDetail = async (id) => {
  return import_utils.request.getRequest().get(`/workspace/base/${id}`, {});
};
var updateBaseDetail = async (params) => {
  return import_utils.request.getRequest().put(`/workspace/base/${params.id}`, params);
};
var deleteBaseDetail = async (id) => {
  return import_utils.request.getRequest().remove(`/workspace/base/${id}`);
};
var getBaseList = async (params) => {
  return import_utils.request.getRequest().get("/workspace/base", params);
};
var server_default = {
  getWorkspaces,
  deleteWorkspace,
  addWorkspace,
  updateWorkspace,
  getWorkspaceDetail,
  getWorkspaceList,
  searchWorkspace,
  addBase,
  getBaseDetail,
  updateBaseDetail,
  deleteBaseDetail,
  getBaseList
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  addBase,
  addWorkspace,
  deleteBaseDetail,
  deleteWorkspace,
  getBaseDetail,
  getBaseList,
  getWorkspaceDetail,
  getWorkspaceList,
  getWorkspaces,
  searchWorkspace,
  updateBaseDetail,
  updateWorkspace
});
