import request from "../../util/request.js" // 查询用户评论列表 export function listReview(query) { return request({ url: '/system/review/list', method: 'get', params: query }) } // 查询用户评论详细 export function getReviewByStartIs(id) { return request({ url: '/system/review/startIDList/' + id, method: 'get' }) } // 查询用户评论详细 export function getReview(id) { return request({ url: '/system/review/' + id, method: 'get' }) } // 新增用户评论 export function addReview(data) { return request({ url: '/system/review', method: 'post', data: data }) } // 修改用户评论 export function updateReview(data) { return request({ url: '/system/review', method: 'put', data: data }) } export function getCount(id) { return request({ url: '/system/review/getReviewCout/' + id, method: 'get' }) } // 修改用户评论 export function addGood(id,num) { return request({ url: '/system/review/setGood?id='+id+'&num='+num, method: 'get', }) } // 删除用户评论 export function delReview(id) { return request({ url: '/system/review/' + id, method: 'delete' }) }