1、generate 异步生成及获取排队情况

2、generate 取消生成
This commit is contained in:
2024-01-21 14:14:55 +08:00
parent c31ecfb1e9
commit 577dc94850
21 changed files with 929 additions and 36 deletions

View File

@@ -19,6 +19,13 @@ public class GenerateCollectionVO {
@ApiModelProperty("生成的图片信息")
private List<GenerateCollectionItemVO> generatedCollectionItems;
@ApiModelProperty("在当前队列中的排序")
private Long rankPosition;
public GenerateCollectionVO(Long rankPosition) {
this.rankPosition = rankPosition;
}
public GenerateCollectionVO(Long generateId, Long collectionId, List<GenerateCollectionItemVO> generatedCollectionItems) {
this.generateId = generateId;
this.collectionId = collectionId;