From 2571b833ac19340084f07ac2ccd76b242ee3d4f0 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 11 六月 2025 22:34:41 +0800
Subject: [PATCH] 分类多级联动
---
api/video.js | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/api/video.js b/api/video.js
index c46c6b9..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
});
@@ -116,3 +130,17 @@
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