Commit 0d4b67a9c458d26a6450348eba9bd75b1200e548
1 parent
bde1eede
【解决todo】image 删除重命名改为 my delete
Showing
1 changed file
with
3 additions
and
4 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
| ... | ... | @@ -77,12 +77,11 @@ public class AiImageController { |
| 77 | 77 | return success(null); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - // TODO @fan:类似 /my-page 的建议 | |
| 81 | 80 | @Operation(summary = "删除【我的】绘画记录") |
| 82 | - @DeleteMapping("/delete-my") | |
| 81 | + @DeleteMapping("/my-delete") | |
| 83 | 82 | @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") |
| 84 | - public CommonResult<Boolean> deleteMy(@RequestParam("id") Long id) { | |
| 85 | - return success(aiImageService.deleteMy(id, getLoginUserId())); | |
| 83 | + public CommonResult<Boolean> myDelete(@RequestParam("id") Long id) { | |
| 84 | + return success(aiImageService.myDelete(id, getLoginUserId())); | |
| 86 | 85 | } |
| 87 | 86 | |
| 88 | 87 | } | ... | ... |