package qiwu.xfllmdemo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import qiwu.xfllmdemo.pojo.LLMServiceResponseVO; import qiwu.xfllmdemo.pojo.QueryRequestVO; import qiwu.xfllmdemo.pojo.QueryResponseVO; import qiwu.xfllmdemo.service.LLMService; @RestController @RequestMapping("/request") public class QueryController { @Autowired LLMService llmService = new LLMService(); @RequestMapping(value = "/queryModel", method = RequestMethod.POST, headers = "Accept=application/json") public QueryResponseVO queryModel(@RequestBody QueryRequestVO queryRequestVO) { LLMServiceResponseVO res = llmService.query(); } }