|
@@ -2,8 +2,8 @@ import { request } from '@/service/ajax'
|
|
|
// 商品模块路由
|
|
|
const goodsUrl = '/admin/discovery/'
|
|
|
// 猜你喜欢
|
|
|
-export const getMoments = (data) => request(goodsUrl + 'moments', 'get', { ...data })
|
|
|
-export const getDiscoverList = (data) => request(goodsUrl + 'list', 'get', { ...data })
|
|
|
+export const getMoments = (data) => request(goodsUrl + 'moments', 'post', { ...data })
|
|
|
+export const getDiscoverList = (data) => request(goodsUrl + 'list/'+data, 'get', { })
|
|
|
export const getNearbyList = (data) => request(goodsUrl + 'nearby', 'post', { ...data })
|
|
|
export const setLike = (data) => request(goodsUrl + 'right/'+data, 'get', { })
|
|
|
export const setDislike = (data) => request(goodsUrl + 'left/'+data, 'get', { })
|