import request from '@/common/system/request'; /** * 获取秒杀团购详情 * @param {Object} data 查询参数 * @returns {Promise} */ export const getGoodsDetial = async (data) => { const res = await request.post("Group/GetGoodsDetial", data); if (res.code == 0) { return res.data; } return null; } /** * 获取秒杀团购列表 * @param {Object} params 查询参数 * @returns {Promise} */ export const getList = async (params) => { const res = await request.post("Group/GetList", params); if (res.code == 0) { return res.data; } return null; }