You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
625 B
29 lines
625 B
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取商品评价
|
|
*/
|
|
export function getEvaluateList(params: Record<string, any>) {
|
|
return request.get(`shop/goods/evaluate`, params)
|
|
}
|
|
|
|
/**
|
|
* 获取评价详情
|
|
*/
|
|
export function getEvaluateInfo(id: any) {
|
|
return request.get(`shop/goods/evaluate/${ id }`)
|
|
}
|
|
|
|
/**
|
|
* 提交评论
|
|
*/
|
|
export function setOrderEvaluate(params: Record<string, any>) {
|
|
return request.post('shop/goods/evaluate', params, { showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 获取订单评价
|
|
*/
|
|
export function getOrderEvaluate(id: any) {
|
|
return request.get(`shop/order/evaluate/${ id }`)
|
|
}
|
|
|