Feat:寻看点和抽奖

This commit is contained in:
lifizer
2024-02-06 12:42:46 +08:00
parent c88b6aa8a8
commit f3115fe7c8
73 changed files with 5324 additions and 6887 deletions
+50
View File
@@ -0,0 +1,50 @@
import request from '@/utils/request'
/**
* 寻看点获取随机视频
* */
export function randomList(param) {
return request.get('/video/random', param)
}
/**
* 获取城市列表
* */
export function getVideoCity() {
return request.get('/video/cityList')
}
/**
* 视频点赞
* */
export function likeVideo(videoId) {
return request.post('/video/like', {videoId})
}
/**
* 视频取消点赞
* */
export function removeLikeVideo(videoId) {
return request.post('/video/removeLike', {videoId})
}
/**
* 视频取消收藏
* */
export function removeFavoriteVideo(videoId) {
return request.post('/video/removeFavorite', {videoId})
}
/**
* 获取评论
* */
export function getReplyList(id, page, limit = 10) {
return request.get(`/video/replyList/${id}`, {page, limit})
}
/**
* 发布评论
* */
export function submitReply(videoId, comment) {
return request.post('/video/reply', {videoId, comment})
}