From e220ffde8924dbfd2319012f5aef83865244bc22 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 12 六月 2025 16:10:18 +0800
Subject: [PATCH] 发布视频支持图片
---
api/video.js | 62 +++++++++++++++++++++++++++++-
1 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/api/video.js b/api/video.js
index 843d069..4d5e90d 100644
--- a/api/video.js
+++ b/api/video.js
@@ -22,15 +22,16 @@
}
/**
- * 鑾峰彇浜斾釜鎺ㄨ崘瑙嗛
+ * 鑾峰彇鎺ㄨ崘瑙嗛
*
* @param params
*/
- export function getRecommendVideos() {
+ export function getRecommendVideos(params) {
return http.request({
url: "/lmk/video/recommend",
method: Method.GET,
- needToken: true
+ needToken: true,
+ params: params
});
}
@@ -56,6 +57,19 @@
export function subscribe(authorId) {
return http.request({
url: "/lmk/my-subscribe/subscribe/" + authorId,
+ method: Method.POST,
+ needToken: true
+ });
+}
+
+/**
+ * 鍙栨秷鍏虫敞浣滆��
+ *
+ * @param params
+ */
+ export function unSubscribe(authorId) {
+ return http.request({
+ url: "/lmk/my-subscribe/unSubscribe/" + authorId,
method: Method.POST,
needToken: true
});
@@ -88,3 +102,45 @@
data: data
});
}
+
+/**
+ * 璇勮鐐硅禐
+ *
+ * @param params
+ */
+ export function thubmsUpComment(data) {
+ return http.request({
+ url: "/lmk/video-comment/thumbs_up",
+ method: Method.POST,
+ needToken: true,
+ data: data
+ });
+}
+
+/**
+ * 鍙栨秷璇勮鐐硅禐
+ *
+ * @param params
+ */
+ export function cancelThubmsUpComment(data) {
+ return http.request({
+ url: "/lmk/video-comment/cancel/thumbs_up",
+ method: Method.POST,
+ needToken: true,
+ data: data
+ });
+}
+
+
+/**
+ * 鑾峰彇瑙嗛璇︽儏
+ *
+ * @param params
+ */
+ export function getVideoDetail(id) {
+ return http.request({
+ url: "/lmk/video/wx/detail/" + id,
+ method: Method.GET,
+ needToken: true
+ });
+}
\ No newline at end of file
--
Gitblit v1.8.0