courseWatchComment.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import request from '@/utils/request'
  2. // 查询看课评论列表
  3. export function listCourseWatchComment(query) {
  4. return request({
  5. url: '/course/courseWatchComment/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // // 查询看课评论详细
  11. // export function getCourseWatchComment(commentId) {
  12. // return request({
  13. // url: '/course/courseWatchComment/' + commentId,
  14. // method: 'get'
  15. // })
  16. // }
  17. // // 新增看课评论
  18. // export function addCourseWatchComment(data) {
  19. // return request({
  20. // url: '/course/courseWatchComment',
  21. // method: 'post',
  22. // data: data
  23. // })
  24. // }
  25. //
  26. // // 修改看课评论
  27. // export function updateCourseWatchComment(data) {
  28. // return request({
  29. // url: '/course/courseWatchComment',
  30. // method: 'put',
  31. // data: data
  32. // })
  33. // }
  34. //
  35. // 修改弹幕状态
  36. export function updateBarrageStatus(data) {
  37. return request({
  38. url: '/course/courseWatchComment/updateBarrageStatus',
  39. method: 'put',
  40. data: data
  41. })
  42. }
  43. // 删除看课评论
  44. export function delCourseWatchComment(commentId) {
  45. return request({
  46. url: '/course/courseWatchComment/' + commentId,
  47. method: 'delete'
  48. })
  49. }
  50. // 导出看课评论
  51. export function exportCourseWatchComment(query) {
  52. return request({
  53. url: '/course/courseWatchComment/export',
  54. method: 'get',
  55. params: query
  56. })
  57. }
  58. // 手动拉黑外部联系人
  59. export function addBlack(query) {
  60. return request({
  61. url: '/course/courseWatchComment/addBlack',
  62. method: 'put',
  63. params: query
  64. })
  65. }
  66. // 解除拉黑外部联系人
  67. export function clearBlack(query) {
  68. return request({
  69. url: '/course/courseWatchComment/clearBlack',
  70. method: 'put',
  71. params: query
  72. })
  73. }