From 2f68e5600f0b60d6f8d170f4536e1fc410662ea7 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 01 七月 2025 11:14:39 +0800
Subject: [PATCH] 视频es处理通过mq异步执行

---
 framework/src/main/java/cn/lili/modules/lmk/service/VideoService.java |  131 +++++++++++++++++++++++++++++++++++++------
 1 files changed, 111 insertions(+), 20 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 0acc5ad..16f3932 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,14 +1,16 @@
 package cn.lili.modules.lmk.service;
 
-import cn.lili.base.AbsQuery;
+import cn.lili.group.Add;
+import cn.lili.modules.lmk.domain.entity.MyCollect;
 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.query.*;
 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.query.VideoQuery;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestBody;
+
 import java.util.List;
 
 /**
@@ -18,20 +20,6 @@
  * @since 2025-05-16
  */
 public interface VideoService extends IService<Video> {
-
-    /**
-     * 娣诲姞
-     * @param form
-     * @return
-     */
-    Result add(VideoForm form);
-
-    /**
-     * 淇敼
-     * @param form
-     * @return
-     */
-    Result update(VideoForm form);
 
     /**
      * 鎵归噺鍒犻櫎
@@ -73,7 +61,7 @@
      * @param form
      * @return
      */
-    Result publish(VideoForm form);
+    Result publish(WxVideoForm form);
 
     /**
      * 骞冲彴绔棰戝垎椤�
@@ -119,8 +107,15 @@
      * 灏忕▼搴忕鐨勮棰戞帹鑽愭帴鍙�
      *
      * @return
+     * @param query
      */
-    Result recommendVideo(AbsQuery query);
+    Result recommendVideo(VideoQuery query);
+
+    Result healthRecommendVideo(WxHealthVideoQuery query);
+
+    Result kitchenTypeList();
+
+    Result kitchenRecommendVideo(WxKitchenVideoQuery query);
 
     /**
      * 鎵归噺鏇存柊瑙嗛鏀惰棌鏁伴噺
@@ -167,4 +162,100 @@
      * @return
      */
     Result getAuthorCollectVideoPage(AuthorVideoQuery query);
+
+    /**
+     * 淇濆瓨瑙嗛涓婚〉鐨勪釜浜轰俊鎭慨鏀�
+     *
+     * @param form
+     * @return
+     */
+    Result homePageInfoEdit(VideoHomePageInfoForm form);
+
+    /**
+     * 灏忕▼搴�-瑙嗛璇︽儏
+     *
+     * @param id
+     * @return
+     */
+    Result wxDetail(String id);
+
+    /**
+     * 澶у仴搴疯棰戝彂甯�
+     *
+     * @param form
+     * @return
+     */
+    Result healthVideo(HealthVideoForm form);
+    /**
+     * 淇敼澶у仴搴疯棰�
+     *
+     * @param form
+     * @return
+     */
+    Result updateHealthVideo(HealthVideoForm form);
+    /**
+     * 澶у仴搴疯棰戝垪琛�
+     *
+     * @param query
+     * @return
+     */
+    Result healthPage(HealthVideoQuery query);
+    /**
+     * 鍒犻櫎澶у仴搴疯棰�
+
+     * @param id 涓婚敭id
+     * @return
+     */
+    Result delHealth(String id);
+
+    Result addKitchenVideo( KitchenVideoForm form);
+
+    Result updateKitchenVideo( KitchenVideoForm form);
+    /**
+     * 鍘ㄧ瑙嗛鍒楄〃
+     *
+     * @param query
+     * @return
+     */
+    Result KitchenVideoQuery(KitchenVideoQuery query);
+
+    Result delKitchen(String id);
+
+    /**
+     * 瑙嗛鍟嗗搧鏌ョ湅
+     *
+     * @param videoId
+     * @return
+     */
+    Result getGoodsDetail(String videoId);
+
+    /**
+     * 鐢ㄦ埛涓嬫灦瑙嗛
+     *
+     * @param id
+     * @return
+     */
+    Result buyerDownVideo(String id);
+
+    /**
+     * 淇敼瑙嗛
+     *
+     * @param form
+     * @return
+     */
+    Result updatePublish(WxVideoForm form);
+
+    /**
+     * mq鎵ц瑙嗛鏀惰棌/鍙栨秷鏀惰棌
+     *
+     * @param collect
+     */
+    void mqCollectChange(MyCollect collect);
+
+    /**
+     * 閲嶅缓瑙嗛es绱㈠紩
+     *
+     * @return
+     */
+    Result recreateEsIndex();
 }

--
Gitblit v1.8.0