refactor(controller): 移除识别接口的认证注解
- 移除了 DocClassifyController 中 recognize 方法的 @EbAuthentication 注解 - 保持了原有的缓存和请求体处理逻辑 - 简化了方法参数配置
This commit is contained in:
parent
cf4565eddb
commit
4ef4bd9d3b
@ -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<DocClassifyResp> recognize(@RequestBody DocClassifyRequest request) {
|
||||
public R<DocClassifyResp> recognize(DocClassifyRequest request) {
|
||||
long start = System.currentTimeMillis();
|
||||
RecognizeContext ctx = null;
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user