Jelajahi Sumber

feat: 去抖动get_result接口去掉token验证

WANGKANG 9 bulan lalu
induk
melakukan
c00d63773d

+ 10 - 0
taais-modules/taais-biz/src/main/java/com/taais/biz/controller/PublicController.java

@@ -1,19 +1,23 @@
 package com.taais.biz.controller;
 
 import com.taais.biz.constant.BizConstant;
+import com.taais.biz.domain.bo.VideoStableStartResultBo;
 import com.taais.biz.domain.dto.TaskResultDTO;
 import com.taais.biz.service.IAlgorithmBizProcessService;
 import com.taais.biz.service.IAlgorithmDataProcessService;
 import com.taais.biz.service.IAlgorithmTaskService;
+import com.taais.biz.service.IVideoStableService;
 import com.taais.common.core.core.domain.CommonResult;
 import com.taais.common.log.annotation.Log;
 import com.taais.common.log.enums.BusinessType;
 import com.taais.common.web.core.BaseController;
 import jakarta.annotation.Resource;
+import jakarta.validation.Valid;
 import lombok.RequiredArgsConstructor;
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
@@ -26,6 +30,8 @@ import org.springframework.web.bind.annotation.*;
 @RequestMapping("/public")
 public class PublicController extends BaseController {
     private static final Logger log = LoggerFactory.getLogger(PublicController.class);
+    @Resource
+    private IVideoStableService videoStableService;
 
     @Resource
     IAlgorithmDataProcessService dataProcessService;
@@ -80,4 +86,8 @@ public class PublicController extends BaseController {
         return CommonResult.success();
     }
 
+    @PostMapping("/videoStable/get_result")
+    public CommonResult getResult(@Valid @RequestBody VideoStableStartResultBo videoStableStartResultBo) {
+        return videoStableService.getResult(videoStableStartResultBo);
+    }
 }

+ 4 - 4
taais-modules/taais-biz/src/main/java/com/taais/biz/controller/VideoStableController.java

@@ -95,10 +95,10 @@ public class VideoStableController extends BaseController {
         }
     }
 
-    @PostMapping("/get_result")
-    public CommonResult getResult(@Valid @RequestBody VideoStableStartResultBo videoStableStartResultBo) {
-        return videoStableService.getResult(videoStableStartResultBo);
-    }
+    // @PostMapping("/get_result")
+    // public CommonResult getResult(@Valid @RequestBody VideoStableStartResultBo videoStableStartResultBo) {
+    //     return videoStableService.getResult(videoStableStartResultBo);
+    // }
 
     @GetMapping("/start/{id}")
     public CommonResult start(@PathVariable("id") Long id) {