6 changed files with 193 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||
package com.youlai.boot.mini.model.query; |
|||
|
|||
import com.youlai.boot.common.base.BaseQuery; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
/** |
|||
* 用户AI生成任务历史查询参数 |
|||
*/ |
|||
@Getter |
|||
@Setter |
|||
@Schema(description = "用户AI生成任务历史查询参数") |
|||
public class AiTaskMediaQuery extends BaseQuery { |
|||
|
|||
@Schema(description = "任务状态:0=生成中 1=成功 2=失败 3=超时 4=已取消,不传查全部") |
|||
private Integer status; |
|||
|
|||
@Schema(description = "生成类型:img_single(单图), img_grid_4(四宫格), video(视频),不传查全部") |
|||
private String type; |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.youlai.boot.mini.model.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.Hidden; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* AI生成任务列表VO |
|||
*/ |
|||
@Getter |
|||
@Setter |
|||
@Schema(description = "AI生成任务列表VO") |
|||
public class AiGenerationTaskVO { |
|||
|
|||
// @Hidden
|
|||
// @Schema(description = "任务ID",hidden = true)
|
|||
// private Long id;
|
|||
|
|||
@Schema(description = "任务唯一标识") |
|||
private String uuid; |
|||
|
|||
@Schema(description = "生成类型:img_single(单图), img_grid_4(四宫格), video(视频)") |
|||
private String type; |
|||
|
|||
@Schema(description = "任务状态:0=生成中 1=成功 2=失败 3=超时 4=已取消") |
|||
private Integer status; |
|||
|
|||
@Schema(description = "消耗积分") |
|||
private Integer pointsConsumed; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private Date createTime; |
|||
|
|||
@Schema(description = "生成内容列表") |
|||
private List<MiniAiTaskMediaVO> generateContent; |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.youlai.boot.mini.model.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* AI生成媒体内容VO |
|||
*/ |
|||
@Getter |
|||
@Setter |
|||
@Schema(description = "AI生成媒体内容VO") |
|||
public class MiniAiTaskMediaVO { |
|||
|
|||
@Schema(description = "唯一标识") |
|||
private String uuid; |
|||
|
|||
@Schema(description = "媒体类型,image-图片,video-视频") |
|||
private String mediaType; |
|||
|
|||
@Schema(description = "资源URL") |
|||
private String sourceUrl; |
|||
|
|||
@Schema(description = "缩略图URL(视频需要)") |
|||
private String thumbnailUrl; |
|||
|
|||
@Schema(description = "宽度(像素)") |
|||
private Integer width; |
|||
|
|||
@Schema(description = "高度(像素)") |
|||
private Integer height; |
|||
|
|||
@Schema(description = "时长(秒,视频用)") |
|||
private Integer duration; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private Date createTime; |
|||
} |
|||
Loading…
Reference in new issue