潘志宝
2025-06-03 e83cc18f017efcca5c2d52bb84b3c11f226ae945
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.iailab.module.ai.controller.admin.image.vo.midjourney;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
@Schema(description = "管理后台 - AI 绘画生成(Midjourney) Request VO")
@Data
public class AiMidjourneyImagineReqVO {
 
    @Schema(description = "提示词", requiredMode = Schema.RequiredMode.REQUIRED, example = "中国神龙")
    @NotEmpty(message = "提示词不能为空!")
    private String prompt;
 
    @Schema(description = "模型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "模型编号不能为空")
    private Long modelId;
 
    @Schema(description = "图片宽度", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "图片宽度不能为空")
    private Integer width;
 
    @Schema(description = "图片高度", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "图片高度不能为空")
    private Integer height;
 
    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6.0")
    @NotEmpty(message = "版本号不能为空")
    private String version;
 
    @Schema(description = "参考图", example = "https://www.Iailab.cn/x.png")
    private String referImageUrl;
 
}