video.js 768 B

12345678910111213141516171819202122
  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. ReplyComment: data => request('/reply', 'post', data),
  19. // 评论点赞
  20. likeReply: data => request(`/posts/like/${data}`, 'get'),
  21. }