import http from './index.js';

// 分页查询评论
export const pageComment = (params) => http.get('/shop/user-comment/page', {params})

// 查询全部评论
export const listComment = (params) => http.get('/shop/user-comment', {params})

// 修改评论
export const addComment = (data) => http.post('/shop/user-comment', data)

// 删除评论
export const removeComment = (id) => http.delete('/shop/user-comment/' + id)

export default {
	pageComment,
	listComment,
	addComment,
	removeComment
}
