import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../utils.js";
//#region src/components/booking/info/service/serve.ts
const getProductDetail = function() {
	var _ref = _asyncToGenerator(function* (id, params) {
		return request.getRequest().get(`/shop/product/query/${id}`, params, { cache: {
			mode: "remote_local",
			type: "indexDB"
		} });
	});
	return function getProductDetail(_x, _x2) {
		return _ref.apply(this, arguments);
	};
}();
/**
* @title: 跨日预约获取预约商品报价单
* @description:
* @param {string} id
* @param {any} params
* @return {*}
* @Author: WangHan
* @Date: 2024-12-23 17:06
*/
const postMultiDay = function() {
	var _ref2 = _asyncToGenerator(function* (id, params) {
		return request.getRequest().post(`/shop/product/multi-day/detail/${id}`, params, {
			useCache: true,
			cache: {
				mode: "remote_local",
				type: "indexDB"
			}
		});
	});
	return function postMultiDay(_x3, _x4) {
		return _ref2.apply(this, arguments);
	};
}();
(function() {
	var _ref3 = _asyncToGenerator(function* (params) {
		return request.getRequest().post(`/shop/product/query/price`, params);
	});
	return function getProductPrice(_x5) {
		return _ref3.apply(this, arguments);
	};
})();
/**
* 获取普通商品和跨日预约的价格
* @param params
* @returns
*/
const getNormalAndMultiDayProductPrice = function() {
	var _ref4 = _asyncToGenerator(function* (params) {
		return request.getRequest().post(`/shop/product/query/shelf/price`, params);
	});
	return function getNormalAndMultiDayProductPrice(_x6) {
		return _ref4.apply(this, arguments);
	};
}();
//#endregion
export { getNormalAndMultiDayProductPrice, getProductDetail, postMultiDay };
