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 | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 100 insertions(+), 3 deletions(-) diff --git a/api/video.js b/api/video.js index fd76f80..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 }); } @@ -47,3 +48,99 @@ data: data }); } + +/** + * 鍏虫敞浣滆�� + * + * @param params + */ + 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 + }); +} + +/** + * 鑾峰彇瑙嗛璇勮 + * + * @param params + */ + export function getVideoComments(params) { + return http.request({ + url: "/lmk/video-comment/wx/page", + method: Method.GET, + needToken: true, + params: params + }); +} + +/** + * 鍙戝竷瑙嗛璇勮 + * + * @param params + */ + export function addVideoComment(data) { + return http.request({ + url: "/lmk/video-comment/comment", + method: Method.POST, + needToken: true, + 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