const require_asyncToGenerator = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_index = require("../../../utils/index.js");
//#region src/components/pisellSelectCustomerModal/RightPanel/serve.ts
const getCustomerList = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (params) {
		let { data } = yield require_index.request.getRequest().get(`/shop/customer/select-list`, params, {
			abort: true,
			fullResult: true,
			cache: {
				mode: "remote_local",
				type: "indexDB"
			}
		});
		return data;
	});
	return function getCustomerList(_x) {
		return _ref.apply(this, arguments);
	};
}();
const addCustomer = function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		const res = yield require_index.request.getRequest().post(`/shop/customer`, params, {
			abort: true,
			fullResult: true
		});
		return res === null || res === void 0 ? void 0 : res.data;
	});
	return function addCustomer(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
exports.addCustomer = addCustomer;
exports.getCustomerList = getCustomerList;
