7 changed files with 202 additions and 13 deletions
@ -0,0 +1,23 @@ |
|||||
|
package com.youlai.boot.mini.model.form; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import jakarta.validation.constraints.NotBlank; |
||||
|
import jakarta.validation.constraints.Pattern; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@Schema(description = "更新任务可见范围表单") |
||||
|
public class AiTaskVisibilityForm { |
||||
|
|
||||
|
@NotBlank(message = "任务UUID不能为空") |
||||
|
@Schema(description = "任务UUID") |
||||
|
private String uuid; |
||||
|
|
||||
|
@NotBlank(message = "可见范围不能为空") |
||||
|
@Pattern(regexp = "^(public|private|friends)$", message = "可见范围只能是public/private/friends") |
||||
|
@Schema(description = "可见范围:public-公开,private-仅自己可见") |
||||
|
private String visibility; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
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; |
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@Schema(description = "发现页公开作品查询参数") |
||||
|
public class DiscoveryPublicWorkQuery extends BaseQuery { |
||||
|
|
||||
|
@Schema(description = "生成类型:img_single(单图), img_grid_4(四宫格), video(视频),不传查全部") |
||||
|
private String type; |
||||
|
} |
||||
@ -0,0 +1,38 @@ |
|||||
|
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; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@Schema(description = "发现页公开作品VO") |
||||
|
public class DiscoveryPublicWorkVO { |
||||
|
|
||||
|
@Schema(description = "任务唯一标识") |
||||
|
private String uuid; |
||||
|
|
||||
|
@Schema(description = "生成类型:img_single(单图), img_grid_4(四宫格), video(视频)") |
||||
|
private String type; |
||||
|
|
||||
|
@Schema(description = "消耗积分") |
||||
|
private Integer pointsConsumed; |
||||
|
|
||||
|
@Schema(description = "创建时间") |
||||
|
private Date createTime; |
||||
|
|
||||
|
@Schema(description = "生成内容列表") |
||||
|
private List<MiniAiTaskMediaVO> generateContent; |
||||
|
|
||||
|
@Schema(description = "创作者用户UUID") |
||||
|
private String userUuid; |
||||
|
|
||||
|
@Schema(description = "创作者昵称") |
||||
|
private String nickname; |
||||
|
|
||||
|
@Schema(description = "创作者头像") |
||||
|
private String avatar; |
||||
|
} |
||||
Loading…
Reference in new issue