Commit d8605603189c57f180f7fa7263efc106e3c5166d
1 parent
128c38ca
【代码优化】AI:图片轮询实现
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
| @@ -57,10 +57,10 @@ public class AiImageController { | @@ -57,10 +57,10 @@ public class AiImageController { | ||
| 57 | return success(BeanUtils.toBean(image, AiImageRespVO.class)); | 57 | return success(BeanUtils.toBean(image, AiImageRespVO.class)); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | - @GetMapping("/get-my-ids") | 60 | + @GetMapping("/my-list-by-ids") |
| 61 | @Operation(summary = "获取【我的】绘图记录列表") | 61 | @Operation(summary = "获取【我的】绘图记录列表") |
| 62 | @Parameter(name = "ids", required = true, description = "绘画编号数组", example = "1024,2048") | 62 | @Parameter(name = "ids", required = true, description = "绘画编号数组", example = "1024,2048") |
| 63 | - public CommonResult<List<AiImageRespVO>> getImageMyIds(@RequestParam("ids") List<Long> ids) { | 63 | + public CommonResult<List<AiImageRespVO>> getImageListMyByIds(@RequestParam("ids") List<Long> ids) { |
| 64 | List<AiImageDO> imageList = imageService.getImageByIds(ids); | 64 | List<AiImageDO> imageList = imageService.getImageByIds(ids); |
| 65 | imageList.removeIf(item -> !ObjUtil.equal(getLoginUserId(), item.getUserId())); | 65 | imageList.removeIf(item -> !ObjUtil.equal(getLoginUserId(), item.getUserId())); |
| 66 | return success(BeanUtils.toBean(imageList, AiImageRespVO.class)); | 66 | return success(BeanUtils.toBean(imageList, AiImageRespVO.class)); |