1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- 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'
- })
- }
|