From 4ef4bd9d3b8569d339237a0520fd126189b60304 Mon Sep 17 00:00:00 2001 From: zhengli Date: Wed, 10 Jun 2026 18:54:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor(controller):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E6=8E=A5=E5=8F=A3=E7=9A=84=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 DocClassifyController 中 recognize 方法的 @EbAuthentication 注解 - 保持了原有的缓存和请求体处理逻辑 - 简化了方法参数配置 --- .../com/heyu/api/controller/doc/DocClassifyController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api-web/api-interface/src/main/java/com/heyu/api/controller/doc/DocClassifyController.java b/api-web/api-interface/src/main/java/com/heyu/api/controller/doc/DocClassifyController.java index f4ed608..a0e8e4e 100644 --- a/api-web/api-interface/src/main/java/com/heyu/api/controller/doc/DocClassifyController.java +++ b/api-web/api-interface/src/main/java/com/heyu/api/controller/doc/DocClassifyController.java @@ -18,7 +18,6 @@ import com.heyu.api.resp.doc.DocClassifyLocationResp; import com.heyu.api.resp.doc.DocClassifyResp; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -79,7 +78,7 @@ public class DocClassifyController extends AbstractRecognizeController { @EbAuthentication(tencent = ApiConstants.TENCENT_AUTH) @PostMapping("/classify") @CacheResult - public R recognize(@RequestBody DocClassifyRequest request) { + public R recognize(DocClassifyRequest request) { long start = System.currentTimeMillis(); RecognizeContext ctx = null; try {