Commit 3c7fccfcf315d001cbb19b710e8a550e7e1dbeda
1 parent
8f3076b2
【增加】midjourney proxy 通知回调 vo
Showing
1 changed file
with
46 additions
and
0 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/client/vo/MidjourneyNotifyVO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.ai.client.vo; | |
| 2 | + | |
| 3 | +import cn.iocoder.yudao.module.ai.client.enums.MidjourneyTaskActionEnum; | |
| 4 | +import cn.iocoder.yudao.module.ai.client.enums.MidjourneyTaskStatusEnum; | |
| 5 | +import io.swagger.v3.oas.annotations.media.Schema; | |
| 6 | +import lombok.Data; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * @author fansili | |
| 10 | + * @time 2024/5/31 10:37 | |
| 11 | + * @since 1.0 | |
| 12 | + */ | |
| 13 | +@Data | |
| 14 | +public class MidjourneyNotifyVO { | |
| 15 | + | |
| 16 | + @Schema(description = "任务类型") | |
| 17 | + private MidjourneyTaskActionEnum action; | |
| 18 | + @Schema(description = "任务状态") | |
| 19 | + private MidjourneyTaskStatusEnum status = MidjourneyTaskStatusEnum.NOT_START; | |
| 20 | + | |
| 21 | + @Schema(description = "提示词") | |
| 22 | + private String prompt; | |
| 23 | + @Schema(description = "提示词-英文") | |
| 24 | + private String promptEn; | |
| 25 | + | |
| 26 | + @Schema(description = "任务描述") | |
| 27 | + private String description; | |
| 28 | + @Schema(description = "自定义参数") | |
| 29 | + private String state; | |
| 30 | + | |
| 31 | + @Schema(description = "提交时间") | |
| 32 | + private Long submitTime; | |
| 33 | + @Schema(description = "开始执行时间") | |
| 34 | + private Long startTime; | |
| 35 | + @Schema(description = "结束时间") | |
| 36 | + private Long finishTime; | |
| 37 | + | |
| 38 | + @Schema(description = "图片url") | |
| 39 | + private String imageUrl; | |
| 40 | + | |
| 41 | + @Schema(description = "任务进度") | |
| 42 | + private String progress; | |
| 43 | + @Schema(description = "失败原因") | |
| 44 | + private String failReason; | |
| 45 | + | |
| 46 | +} | ... | ... |