ai请求接口

master
chenfei 2 years ago
parent 5d9b3d9605
commit 86dbcc1f3b

@ -346,13 +346,14 @@ public class AppController extends BaseController
@GetMapping("/image/{recordId}") @GetMapping("/image/{recordId}")
@ApiOperation("获取图片接口") @ApiOperation("获取图片接口")
private AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){
if(recordId == null){ if(recordId == null){
return AjaxResult.error("未获取到参数"); return AjaxResult.error("未获取到参数");
} }
TImage tImage = new TImage(); TImage tImage = new TImage();
tImage.setThirdId(recordId); tImage.setThirdId(recordId);
return AjaxResult.success(imageService.selectTImageList(tImage)); List<TImage> images = imageService.selectTImageList(tImage);
return AjaxResult.success(images);
} }
private void saveImage(AiPostReq aiPostReq,Long recordId) private void saveImage(AiPostReq aiPostReq,Long recordId)

Loading…
Cancel
Save