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 | 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 | 64 | @Operation(summary = "删除【我的】绘画记录") |
| 71 | 65 | @DeleteMapping("/delete-id-my") |
| 72 | 66 | @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") |
| ... | ... | @@ -74,6 +68,14 @@ public class AiImageController { |
| 74 | 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 | 79 | @Operation(summary = "midjourney proxy - 回调通知") |
| 78 | 80 | @RequestMapping("/midjourney-notify") |
| 79 | 81 | public CommonResult<Boolean> midjourneyNotify(MidjourneyNotifyReqVO notifyReqVO) { | ... | ... |