index.js 375 B

1234567891011121314151617
  1. const { request } = require('../../../api/request')
  2. /**
  3. * 收藏/取消收藏店铺
  4. * @param shopId 店铺ID
  5. * @param type 类型 1收藏2取消收藏
  6. * @returns {Promise<*>}
  7. */
  8. export const postShopCollect = (shopId, type) => request({
  9. url: '/api/user/caigou/shop/collect',
  10. method: 'POST',
  11. data: {
  12. shop_id: shopId,
  13. type: type
  14. },
  15. showLoading: true
  16. })