comments.js 368 B

123456789101112131415161718
  1. import request from '../../utils/request'
  2. export function getComments(data) {
  3. return request({
  4. url: '/comments/getComments',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function updateCommentStatus(id, deleted) {
  10. return request({
  11. url: '/comments/updateCommentStatus',
  12. method: 'get',
  13. params: { id, deleted }
  14. })
  15. }