第一次提交
This commit is contained in:
20
api/user-comment.js
Normal file
20
api/user-comment.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user