import http from './index.js';

// 分页查询点赞
export const pageLike = (params) => http.get('/shop/user-like/page', {params})

// 查询全部点赞
export const listLike = (params) => http.get('/shop/user-like', {params})

// 添加点赞
export const addLike = (data) => http.post('/shop/user-like', data)

// 修改点赞
export const updateLike = (data) => http.put('/shop/user-like', data)

// 删除点赞
export const removeLike = (id) => http.delete('/shop/user-like/' + id)

export default {
	pageLike,
	listLike,
	addLike,
	removeLike,
	updateLike
}
