comment.js 437 B

123456789101112131415161718192021222324
  1. import { axios } from '@/utils/request'
  2. export function fetchCommentLists (query) {
  3. return axios({
  4. url: '/comments/comments/v1/list',
  5. method: 'get',
  6. params: query
  7. })
  8. }
  9. export function replyComment (data) {
  10. return axios({
  11. url: '/comments/admin/v1/reply',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function deleteComment (id) {
  17. return axios({
  18. url: `/comments/comments/v1/${id}`,
  19. method: 'delete'
  20. })
  21. }