|
|
@@ -11,6 +11,7 @@ const videoApi = {
|
|
|
|
|
|
videoCategoryApi: '/api/content/video/categories',
|
|
|
categoryVideoApi: '/api/content/video/category',
|
|
|
+ categoryShortVideoApi: '/api/content/video/category/short',
|
|
|
userVideoPostApi: '/api/content/video/user',
|
|
|
tagVideoPostApi: '/api/content/video/tag',
|
|
|
videoInfoApi: '/api/content/video/detail',
|
|
|
@@ -26,7 +27,7 @@ const videoApi = {
|
|
|
userContentDataApi: '/api/content/userdata',
|
|
|
}
|
|
|
|
|
|
-/*********************************************************************************************************************/
|
|
|
+// *********************************************************************************************************************
|
|
|
// 添加视频贴
|
|
|
export function addVideoPost(video) {
|
|
|
return post(videoApi.videoPostApi, video)
|
|
|
@@ -77,7 +78,7 @@ export function convertVideo(videoId) {
|
|
|
return post(videoApi.convertVideoApi + '/' + videoId)
|
|
|
}
|
|
|
|
|
|
-/*********************************************************************************************************************/
|
|
|
+// *********************************************************************************************************************
|
|
|
// 获取视频分类
|
|
|
export function videoCategory() {
|
|
|
return get(videoApi.videoCategoryApi)
|
|
|
@@ -88,6 +89,10 @@ export function categoryVideos(categoryId, page) {
|
|
|
return get(videoApi.categoryVideoApi + '?categoryId=' + categoryId + '&page=' + page)
|
|
|
}
|
|
|
|
|
|
+export function categoryShortVideos(categoryId, page) {
|
|
|
+ return get(videoApi.categoryShortVideoApi + '?categoryId=' + categoryId + '&page=' + page)
|
|
|
+}
|
|
|
+
|
|
|
// 获取用户视频
|
|
|
export function getUserVideos(userId, page) {
|
|
|
return get(videoApi.userVideoPostApi + '?userId=' + userId + '&page=' + page)
|
|
|
@@ -108,7 +113,7 @@ export function videoUrl(videoId) {
|
|
|
return get(videoApi.videoUrlApi + '/' + videoId)
|
|
|
}
|
|
|
|
|
|
-/*********************************************************************************************************************/
|
|
|
+// *********************************************************************************************************************
|
|
|
// 报告视频错误
|
|
|
export function videoErrorReport(data) {
|
|
|
return post(videoApi.videoErrorReportApi, data)
|