12345678910111213141516171819202122 |
- import {
- request
- } from "../utils/request";
- module.exports = {
- // 获取阅读的详情
- getreadInfo: data => request(`/userRead/readInfo/${data}`, 'get', data),
- //设置视频状态。比如删除。禁用
- setVideoStatus: data => request('/userRead', 'put', data),
- // 作品点赞
- likeVideo: data => request(`/userRead/like/${data}`, 'get'),
- // 收藏
- collectVideo: data => request('/favorites', 'post', data),
- // 获取评论
- getComment: data => request('/posts/reply', 'get', data),
- // 发布评论
- postReply: data => request('/posts', 'post', data),
- // 回复评论
- ReplyComment: data => request('/reply', 'post', data),
- // 评论点赞
- likeReply: data => request(`/posts/like/${data}`, 'get'),
- }
|