Browse Source

fix:鉴权接口requestbody获取不到问题

zhongwei
haungxing 5 months ago
parent
commit
6edb91a930
  1. 6
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/HznlmInteractiveController.java

6
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<List<AuthDataVO>> getAuthData(@RequestBody @Valid AuthDataDTO req) {
public R<List<AuthDataVO>> getAuthData(@RequestBody AuthDataDTO req) {
return R.data(interactiveService.getAuthData(req));
}
@ApiOperation("解析大模型函数")
@ApiOperationSupport(order = 2)
@PostMapping("/resolve")
public R<ExtraVO> resolve(@RequestBody @Valid ModelFunctionReq req) {
public R<ExtraVO> resolve(@RequestBody ModelFunctionReq req) {
return R.data(interactiveService.resolve(req));
}
}

Loading…
Cancel
Save