From 434ea8cef0d23ee20b6047631ef4afa371b43eb3 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 04 六月 2025 16:34:59 +0800 Subject: [PATCH] 视频主页接口完善、视频地址暂时写死 --- framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 115 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java b/framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java index 583109b..01b4655 100644 --- a/framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java +++ b/framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java @@ -1,9 +1,12 @@ package cn.lili.modules.lmk.service; import cn.lili.modules.lmk.domain.entity.Video; +import cn.lili.modules.lmk.domain.form.*; +import cn.lili.modules.lmk.domain.query.AuthorVideoQuery; +import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; +import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO; import com.baomidou.mybatisplus.extension.service.IService; import cn.lili.base.Result; -import cn.lili.modules.lmk.domain.form.VideoForm; import cn.lili.modules.lmk.domain.query.VideoQuery; import java.util.List; @@ -55,7 +58,7 @@ * @param id * @return */ - Result detail(Integer id); + Result detail(String id); /** * 鍒楄〃 @@ -70,4 +73,114 @@ * @return */ Result publish(VideoForm form); + + /** + * 骞冲彴绔棰戝垎椤� + * + * @param query + * @return + */ + Result managerPage(ManagerVideoQuery query); + + /** + * 棣栭〉鎺ㄨ崘璁剧疆 + * + * @param form + * @return + */ + Result recommendSet(VideoRecommendForm form); + + /** + * 瀹℃牳 + * + * @param form + * @return + */ + Result auditing(VideoAuditingForm form); + + /** + * 涓婃灦 + * + * @param id + * @return + */ + Result up(String id); + + /** + * 涓嬫灦 + * + * @param form + * @return + */ + Result down(VideoDownForm form); + + /** + * 灏忕▼搴忕鐨勮棰戞帹鑽愭帴鍙� + * + * @return + * @param query + */ + Result recommendVideo(VideoQuery query); + + /** + * 鎵归噺鏇存柊瑙嗛鏀惰棌鏁伴噺 + * + * @param numList + */ + void updateCollectNumBatch(List<CollectTypeNumVO> numList); + + /** + * 鎵归噺鏇存柊瑙嗛璇勮鏁伴噺 + * + * @param numList + */ + void updateCommentNumBatch(List<CollectTypeNumVO> numList); + + /** + * 淇濆瓨瑙嗛瑙傜湅璁板綍 + * + * @param form + * @return + */ + Result saveViewRecord(VideoFootPrintForm form); + + /** + * 鑾峰彇瑙嗛涓婚〉浣滆�呬俊鎭� + * + * @param authorId + * @return + */ + Result getAuthorInfo(String authorId); + + /** + * 鑾峰彇瑙嗛涓婚〉浣滆�呰棰戝垎椤� + * + * @param query + * @return + */ + Result getAuthorVideoPage(AuthorVideoQuery query); + + /** + * 鑾峰彇瑙嗛涓婚〉浣滆�呮敹钘忚棰戝垎椤� + * + * @param query + * @return + */ + Result getAuthorCollectVideoPage(AuthorVideoQuery query); + + /** + * 淇濆瓨瑙嗛涓婚〉鐨勪釜浜轰俊鎭慨鏀� + * + * @param form + * @return + */ + Result homePageInfoEdit(VideoHomePageInfoForm form); + + /** + * 灏忕▼搴�-瑙嗛璇︽儏 + * + * @param id + * @return + */ + Result wxDetail(String id); } -- Gitblit v1.8.0