From 1eefd113e28e802348a9cae69a41945c1dc48b0f Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 11 六月 2025 21:05:26 +0800
Subject: [PATCH] Merge branch 'dev' of http://42.193.1.25:9521/r/lmk-shop-wx into dev

---
 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