import {
  request
} from '../_utils/request';

/** 获取轮播图列表 */
export function getGoodsList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: `GoodsApi/getGoodsList`,
      method: 'GET',
      data: data,
      success: function (res) {
        resolve(res);
      },
      fail: function (error) {
        reject(error);
      }
    });
  });
}