diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 1357ecb..89e2b35 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -346,13 +346,14 @@ public class AppController extends BaseController @GetMapping("/image/{recordId}") @ApiOperation("获取图片接口") - private AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ + public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ if(recordId == null){ return AjaxResult.error("未获取到参数"); } TImage tImage = new TImage(); tImage.setThirdId(recordId); - return AjaxResult.success(imageService.selectTImageList(tImage)); + List images = imageService.selectTImageList(tImage); + return AjaxResult.success(images); } private void saveImage(AiPostReq aiPostReq,Long recordId)