Commit c1f2e490663a337fe87eeaa6d3fc870003acb21d
1 parent
56e8707e
【优化】优化 midjourney 注释
Showing
1 changed file
with
8 additions
and
6 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
| @@ -61,12 +61,6 @@ public class AiImageController { | @@ -61,12 +61,6 @@ public class AiImageController { | ||
| 61 | return success(aiImageService.dall(getLoginUserId(), req)); | 61 | return success(aiImageService.dall(getLoginUserId(), req)); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | - @Operation(summary = "midjourney-imagine 绘画", description = "...") | ||
| 65 | - @PostMapping("/midjourney/imagine") | ||
| 66 | - public CommonResult<Long> midjourneyImagine(@Validated @RequestBody AiImageMidjourneyImagineReqVO req) { | ||
| 67 | - return success(aiImageService.midjourneyImagine(getLoginUserId(), req)); | ||
| 68 | - } | ||
| 69 | - | ||
| 70 | @Operation(summary = "删除【我的】绘画记录") | 64 | @Operation(summary = "删除【我的】绘画记录") |
| 71 | @DeleteMapping("/delete-id-my") | 65 | @DeleteMapping("/delete-id-my") |
| 72 | @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") | 66 | @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") |
| @@ -74,6 +68,14 @@ public class AiImageController { | @@ -74,6 +68,14 @@ public class AiImageController { | ||
| 74 | return success(aiImageService.deleteIdMy(id, getLoginUserId())); | 68 | return success(aiImageService.deleteIdMy(id, getLoginUserId())); |
| 75 | } | 69 | } |
| 76 | 70 | ||
| 71 | + // ================ midjourney 接口 | ||
| 72 | + | ||
| 73 | + @Operation(summary = "midjourney-imagine 绘画", description = "...") | ||
| 74 | + @PostMapping("/midjourney/imagine") | ||
| 75 | + public CommonResult<Long> midjourneyImagine(@Validated @RequestBody AiImageMidjourneyImagineReqVO req) { | ||
| 76 | + return success(aiImageService.midjourneyImagine(getLoginUserId(), req)); | ||
| 77 | + } | ||
| 78 | + | ||
| 77 | @Operation(summary = "midjourney proxy - 回调通知") | 79 | @Operation(summary = "midjourney proxy - 回调通知") |
| 78 | @RequestMapping("/midjourney-notify") | 80 | @RequestMapping("/midjourney-notify") |
| 79 | public CommonResult<Boolean> midjourneyNotify(MidjourneyNotifyReqVO notifyReqVO) { | 81 | public CommonResult<Boolean> midjourneyNotify(MidjourneyNotifyReqVO notifyReqVO) { |