From 9d928b12c49b7b604c0b52ce1d98846813d5b613 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期日, 15 六月 2025 19:30:13 +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