import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../../utils/index.js";
//#region src/components/productExtension/fields/SelectProducts/server.ts
const getProductList = function() {
	var _ref = _asyncToGenerator(function* (params) {
		let { data } = yield request.getRequest().post("/shop/product/query", params, { abort: true });
		return (data === null || data === void 0 ? void 0 : data.list) || [];
	});
	return function getProductList(_x) {
		return _ref.apply(this, arguments);
	};
}();
//#endregion
export { getProductList };
