TASK:1、将imageToSketch接口调用转为异步 2、imageToSketch加入flux

This commit is contained in:
2025-06-13 16:37:45 +08:00
parent b6993b04c2
commit 174d1bf0d0
8 changed files with 180 additions and 56 deletions

View File

@@ -45,7 +45,7 @@ public interface GenerateService extends IService<Generate> {
GenerateResultVO imageToSketch(ImageToSketchDTO imageToSketchDTO, String collagePictureUrl, Long projectId);
GenerateResultVO imageToSketchAsync(ImageToSketchDTO imageToSketchDTO, String collagePictureUrl, Long projectId);
String imageToSketchAsync(ImageToSketchDTO imageToSketchDTO, String collagePictureUrl, Long projectId);
GenerateResultVO modifySketch(GenerateModifyDTO generateModifyDTO);
@@ -85,7 +85,7 @@ public interface GenerateService extends IService<Generate> {
String flux(CreditsEventsEnum func, String prompt, String imagePath);
String getFluxResult(String taskId, Long accountId);
String getFluxResult(String taskId, String objectName);
byte[] downloadVideoOrImage(String url);
}