discovery.js 711 B

123456789101112
  1. import { request } from '@/service/ajax'
  2. // 商品模块路由
  3. const goodsUrl = '/admin/discovery/'
  4. // 猜你喜欢
  5. export const getMoments = (data) => request(goodsUrl + 'moments', 'get', { ...data })
  6. export const getDiscoverList = (data) => request(goodsUrl + 'list', 'get', { ...data })
  7. export const getNearbyList = (data) => request(goodsUrl + 'nearby', 'post', { ...data })
  8. export const setLike = (data) => request(goodsUrl + 'right/'+data, 'get', { })
  9. export const setDislike = (data) => request(goodsUrl + 'left/'+data, 'get', { })
  10. export const setFilter = (data) => request(goodsUrl + 'filter', 'post', { ...data })
  11. export const getFilter = (data) => request(goodsUrl + 'filter', 'get', { ...data })