From c45b323c65662dda4c3c5dac4dbacaaf9247f905 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 4 Jul 2024 08:19:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=89=B4=E6=9D=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3requestbody=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigmodel/interactive/controller/HznlmInteractiveController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/HznlmInteractiveController.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/HznlmInteractiveController.java index 958f103..28b9ad3 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/HznlmInteractiveController.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/HznlmInteractiveController.java @@ -31,17 +31,17 @@ public class HznlmInteractiveController { private final IHznlmInteractiveService interactiveService; - @RequestMapping(value = "/get_auth_data",method = {RequestMethod.GET,RequestMethod.POST}) + @PostMapping(value = "/get_auth_data") @ApiOperation("获取鉴权数据") @ApiOperationSupport(order = 1) - public R> getAuthData(@RequestBody @Valid AuthDataDTO req) { + public R> getAuthData(@RequestBody AuthDataDTO req) { return R.data(interactiveService.getAuthData(req)); } @ApiOperation("解析大模型函数") @ApiOperationSupport(order = 2) @PostMapping("/resolve") - public R resolve(@RequestBody @Valid ModelFunctionReq req) { + public R resolve(@RequestBody ModelFunctionReq req) { return R.data(interactiveService.resolve(req)); } }