video.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import {
  2. request
  3. } from "../utils/request";
  4. module.exports = {
  5. // 获取阅读的详情
  6. getreadInfo: data => request(`/userRead/readInfo/${data}`, 'get', data),
  7. //设置视频状态。比如删除。禁用
  8. setVideoStatus: data => request('/userRead', 'put', data),
  9. // 作品点赞
  10. likeVideo: data => request(`/userRead/like/${data}`, 'get'),
  11. // 收藏
  12. collectVideo: data => request('/favorites', 'post', data),
  13. // 获取评论
  14. getComment: data => request('/posts/reply', 'get', data),
  15. // 发布评论
  16. postReply: data => request('/posts', 'post', data),
  17. // 删除评论
  18. delPost: data => request('/posts', 'delete', data),
  19. // 回复评论
  20. ReplyComment: data => request('/reply', 'post', data),
  21. // 评论点赞
  22. likeReply: data => request(`/posts/like/${data}`, 'get'),
  23. // 作品播放统计
  24. submitPlayLog: data => request('/base/playLog', 'post', data),
  25. // 获取作品点赞记录
  26. getLikeNotes: data => request('/likeLog', 'get', data),
  27. // 获取单条点赞记录
  28. getLikeNote: data => request(`/likeLog/one/${data}`, 'get'),
  29. // 获取单条评论记录
  30. getCommentNote: data => request(`/posts/one/${data}`, 'get'),
  31. }