const require_asyncToGenerator = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_objectWithoutProperties = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_index = require("../../utils/index.js");
//#region src/components/workSpaceList/server.ts
const _excluded = ["id"];
/**
* workspace 主页（workspace 带 base，翻页列表）
* @param params
* @author 左胜杰
* @member 陈磊
*/
const getWorkspaces = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().get("/workspace/main", params);
	});
	return function getWorkspaces(_x) {
		return _ref.apply(this, arguments);
	};
}();
/**
* workspace 删除
* @param id
* @author 左胜杰
* @member 陈磊
*/
const deleteWorkspace = function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (id) {
		return require_index.request.getRequest().remove(`/workspace/${id}`);
	});
	return function deleteWorkspace(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
/**
* workspace 添加
* @param params
* @author 左胜杰
* @member 陈磊
*/
const addWorkspace = function() {
	var _ref3 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().post(`/workspace`, params);
	});
	return function addWorkspace(_x3) {
		return _ref3.apply(this, arguments);
	};
}();
/**
* workspace 修改
* @param params
* @author 左胜杰
* @member 陈磊
*/
const updateWorkspace = function() {
	var _ref4 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		const { id } = params, others = require_objectWithoutProperties._objectWithoutProperties(params, _excluded);
		return require_index.request.getRequest().put(`/workspace/${id}`, others);
	});
	return function updateWorkspace(_x4) {
		return _ref4.apply(this, arguments);
	};
}();
/**
* workspace 详情
* @param params
* @author 左胜杰
* @member 陈磊
*/
const getWorkspaceDetail = function() {
	var _ref5 = require_asyncToGenerator._asyncToGenerator(function* (id) {
		return require_index.request.getRequest().get(`/workspace/${id}`, {});
	});
	return function getWorkspaceDetail(_x5) {
		return _ref5.apply(this, arguments);
	};
}();
(function() {
	var _ref6 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().get("/workspace/selector", params);
	});
	return function getWorkspaceList(_x6) {
		return _ref6.apply(this, arguments);
	};
})();
/**
* workspace 和 base 搜索
* @param params
* @author 左胜杰
* @member 陈磊
*/
const searchWorkspace = function() {
	var _ref7 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().get("/workspace/search", params);
	});
	return function searchWorkspace(_x7) {
		return _ref7.apply(this, arguments);
	};
}();
/**
* 新增base
* @param params
* @author 左胜杰
* @member 马天宇
*/
const addBase = function() {
	var _ref8 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().post("/workspace/base", params);
	});
	return function addBase(_x8) {
		return _ref8.apply(this, arguments);
	};
}();
(function() {
	var _ref9 = require_asyncToGenerator._asyncToGenerator(function* (id) {
		return require_index.request.getRequest().get(`/workspace/base/${id}`, {});
	});
	return function getBaseDetail(_x9) {
		return _ref9.apply(this, arguments);
	};
})();
/**
* 修改base
* @param params
* @author 左胜杰
* @member 马天宇
*/
const updateBaseDetail = function() {
	var _ref10 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().put(`/workspace/base/${params.id}`, params);
	});
	return function updateBaseDetail(_x10) {
		return _ref10.apply(this, arguments);
	};
}();
/**
* 删除base
* @param id
* @author 左胜杰
* @member 马天宇
*/
const deleteBaseDetail = function() {
	var _ref11 = require_asyncToGenerator._asyncToGenerator(function* (id) {
		return require_index.request.getRequest().remove(`/workspace/base/${id}`);
	});
	return function deleteBaseDetail(_x11) {
		return _ref11.apply(this, arguments);
	};
}();
/**
* 获取base 列表
* @param params
* @author 左胜杰
* @member 马天宇
*/
const getBaseList = function() {
	var _ref12 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		return require_index.request.getRequest().get("/workspace/base", params);
	});
	return function getBaseList(_x12) {
		return _ref12.apply(this, arguments);
	};
}();
//#endregion
exports.addBase = addBase;
exports.addWorkspace = addWorkspace;
exports.deleteBaseDetail = deleteBaseDetail;
exports.deleteWorkspace = deleteWorkspace;
exports.getBaseList = getBaseList;
exports.getWorkspaceDetail = getWorkspaceDetail;
exports.getWorkspaces = getWorkspaces;
exports.searchWorkspace = searchWorkspace;
exports.updateBaseDetail = updateBaseDetail;
exports.updateWorkspace = updateWorkspace;
