import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../utils/index.js";
//#region src/components/Sales/Event/serve.ts
/**
* @title: 获取活动列表
* @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
* @param {any} params
* @return {*}
* @Author: zhiwei.Wang
*/
const getEventListApi = (params) => {
	return request.getRequest().get("/h5/eventbookingv2", params);
};
const getEventDetailIntroductionApi = (eventItemId) => {
	return request.getRequest().get(`/h5/eventbookingv2/${eventItemId}`, {});
};
const getEventDetailTeacherApi = (params) => {
	return request.getRequest().get(`/h5/eventbookingv2/custom-event/resources`, params);
};
const getEventDetailBookingOptionsApi = (params) => {
	return request.getRequest().post(`/h5/product/query`, params);
};
const getEventDetailSelectDateApi = (id, params) => {
	return request.getRequest().get(`/h5/eventbookingv2/available-count/${id}`, params, { useCache: true });
};
/**
* 批量查询指定商品的最新价格
* @param params
*/
const getProductPrice = function() {
	var _ref = _asyncToGenerator(function* (params) {
		return request.getRequest().post(`/h5/product/query/price`, params);
	});
	return function getProductPrice(_x) {
		return _ref.apply(this, arguments);
	};
}();
/**
* 获取商品详情
* @param id 商品id
* @param params 参数
* @returns
*/
const getProductDetailApi = function() {
	var _ref2 = _asyncToGenerator(function* (id, params) {
		return request.getRequest().get(`/h5/product/standard/show/${id}`, params, { useCache: true });
	});
	return function getProductDetailApi(_x2, _x3) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { getEventDetailBookingOptionsApi, getEventDetailIntroductionApi, getEventDetailSelectDateApi, getEventDetailTeacherApi, getEventListApi, getProductDetailApi, getProductPrice };
