courseWatchComment.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 listPublicCourseVideoWatchComment(query) {
  12. return request({
  13. url: '/course/userCourseComment/publicCourseVideoWatchComment/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // // 查询看课评论详细
  19. // export function getCourseWatchComment(commentId) {
  20. // return request({
  21. // url: '/course/courseWatchComment/' + commentId,
  22. // method: 'get'
  23. // })
  24. // }
  25. // // 新增看课评论
  26. // export function addCourseWatchComment(data) {
  27. // return request({
  28. // url: '/course/courseWatchComment',
  29. // method: 'post',
  30. // data: data
  31. // })
  32. // }
  33. //
  34. // // 修改看课评论
  35. // export function updateCourseWatchComment(data) {
  36. // return request({
  37. // url: '/course/courseWatchComment',
  38. // method: 'put',
  39. // data: data
  40. // })
  41. // }
  42. //
  43. // 修改弹幕状态
  44. export function updateBarrageStatus(data) {
  45. return request({
  46. url: '/course/courseWatchComment/updateBarrageStatus',
  47. method: 'put',
  48. data: data
  49. })
  50. }
  51. // 删除看课评论
  52. export function delCourseWatchComment(commentId) {
  53. return request({
  54. url: '/course/courseWatchComment/' + commentId,
  55. method: 'delete'
  56. })
  57. }
  58. // 导出看课评论
  59. export function exportCourseWatchComment(query) {
  60. return request({
  61. url: '/course/courseWatchComment/export',
  62. method: 'get',
  63. params: query
  64. })
  65. }
  66. // 导出公域看课评论
  67. export function exportPublicCourseWatchComment(query) {
  68. return request({
  69. url: '/course/userCourseComment/publicCourseVideoWatchComment/export',
  70. method: 'get',
  71. params: query
  72. })
  73. }
  74. // 手动拉黑外部联系人
  75. export function addBlack(query) {
  76. return request({
  77. url: '/course/courseWatchComment/addBlack',
  78. method: 'put',
  79. params: query
  80. })
  81. }
  82. // 解除拉黑外部联系人
  83. export function clearBlack(query) {
  84. return request({
  85. url: '/course/courseWatchComment/clearBlack',
  86. method: 'put',
  87. params: query
  88. })
  89. }