mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	【增加】AI Image 常量
This commit is contained in:
		| @@ -10,7 +10,12 @@ package cn.iocoder.yudao.module.ai; | |||||||
| public class AiCommonConstants { | public class AiCommonConstants { | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 对话 - 默认 title |      * 绘画 request - style | ||||||
|      */ |      */ | ||||||
|     public static final String CONVERSATION_DEFAULT_TITLE = "新增对话"; |     public static final String DRAW_REQ_KEY_STYLE = "style"; | ||||||
|  |     /** | ||||||
|  |      * dall size - 模板(1024x1024) | ||||||
|  |      */ | ||||||
|  |     public static final String DALL_SIZE_TEMPLATE = "%sx%s"; | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,74 +0,0 @@ | |||||||
| package cn.iocoder.yudao.module.ai.controller.admin.image.vo; |  | ||||||
|  |  | ||||||
| import io.swagger.v3.oas.annotations.media.Schema; |  | ||||||
| import lombok.Data; |  | ||||||
| import lombok.experimental.Accessors; |  | ||||||
|  |  | ||||||
| import java.util.Map; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * dall2/dall2 绘画 |  | ||||||
|  * |  | ||||||
|  * @author fansili |  | ||||||
|  * @time 2024/4/25 16:24 |  | ||||||
|  * @since 1.0 |  | ||||||
|  */ |  | ||||||
| @Data |  | ||||||
| @Accessors(chain = true) |  | ||||||
| public class AiImageDallRespVO { |  | ||||||
|  |  | ||||||
|     @Schema(description = "id编号", example = "1") |  | ||||||
|     private Long id; |  | ||||||
|  |  | ||||||
|     @Schema(description = "用户id", example = "1") |  | ||||||
|     private Long userId; |  | ||||||
|  |  | ||||||
|     @Schema(description = "提示词", example = "南极的小企鹅") |  | ||||||
|     private String prompt; |  | ||||||
|  |  | ||||||
|     @Schema(description = "平台", example = "openai") |  | ||||||
|     private String platform; |  | ||||||
|  |  | ||||||
|     @Schema(description = "模型", example = "dall2") |  | ||||||
|     private String model; |  | ||||||
|  |  | ||||||
|     @Schema(description = "图片宽度", example = "1024") |  | ||||||
|     private String width; |  | ||||||
|  |  | ||||||
|     @Schema(description = "图片高度", example = "1024") |  | ||||||
|     private String height; |  | ||||||
|  |  | ||||||
|     @Schema(description = "绘画状态:10 进行中、20 绘画完成、30 绘画失败", example = "10") |  | ||||||
|     private String status; |  | ||||||
|  |  | ||||||
|     @Schema(description = "是否发布", example = "public") |  | ||||||
|     private String publicStatus; |  | ||||||
|  |  | ||||||
|     @Schema(description = "图片地址(自己服务器)", example = "https://") |  | ||||||
|     private String picUrl; |  | ||||||
|  |  | ||||||
|     @Schema(description = "绘画图片地址(绘画好的服务器)", example = "https://") |  | ||||||
|     private String originalPicUrl; |  | ||||||
|  |  | ||||||
|     @Schema(description = "绘画错误信息", example = "图片错误信息") |  | ||||||
|     private String errorMessage; |  | ||||||
|  |  | ||||||
|     // ============ 绘画请求参数 ============ |  | ||||||
|  |  | ||||||
|     // todo @fan:下面的 style、mjNonceId 直接就不用注释啦,直接去看 DO 完事哈 |  | ||||||
|     /** |  | ||||||
|      * - style |  | ||||||
|      */ |  | ||||||
|     @Schema(description = "绘画请求参数") |  | ||||||
|     private Map<String, Object> drawRequest; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * - mjNonceId |  | ||||||
|      * - mjOperationId |  | ||||||
|      * - mjOperationName |  | ||||||
|      * - mjOperations |  | ||||||
|      */ |  | ||||||
|     @Schema(description = "绘画请求响应参数") |  | ||||||
|     private Map<String, Object> drawResponse; |  | ||||||
|  |  | ||||||
| } |  | ||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince