| | |
| | | |
| | | import cc.mrbird.febs.ai.req.product.ApiProductInfoDto; |
| | | import cc.mrbird.febs.ai.req.product.ApiProductPageDto; |
| | | import cc.mrbird.febs.ai.req.product.ApiTranslateDto; |
| | | import cc.mrbird.febs.ai.res.product.ApiProductInfoVo; |
| | | import cc.mrbird.febs.ai.res.product.ApiProductVo; |
| | | import cc.mrbird.febs.ai.res.productPoint.ApiProductPointVo; |
| | |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping(value = "/api/ai/product") |
| | | @Api(value = "ApiProductController", tags = "AI-产品") |
| | | @Api(value = "ApiProductController", tags = "AI-产品(培训)") |
| | | public class ApiProductController { |
| | | |
| | | private final AiProductService aiProductService; |
| | |
| | | return aiProductService.pointInfoList(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "翻译", notes = "翻译") |
| | | @PostMapping(value = "/translate") |
| | | public FebsResponse translate(@RequestBody @Validated ApiTranslateDto dto) { |
| | | |
| | | return aiProductService.translate(dto); |
| | | } |
| | | |
| | | } |