TASK: 接入第三方api 通过万象实现text2image和animate,完成数据传输与原接口的兼容
This commit is contained in:
@@ -5,8 +5,8 @@ import com.ai.da.mapper.primary.entity.GenerateDetail;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.vo.*;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -46,7 +46,7 @@ public interface GenerateService extends IService<Generate> {
|
||||
|
||||
GenerateResultVO modifySketch(GenerateModifyDTO generateModifyDTO);
|
||||
|
||||
String poseTransform(Long projectId, String productImage, int poseId);
|
||||
String poseTransform(PoseTransformDTO poseTransformDTO);
|
||||
|
||||
void processPoseTransformResult(String taskId, String gifUrl, String videoUrl, String imageUrl);
|
||||
|
||||
@@ -65,4 +65,18 @@ public interface GenerateService extends IService<Generate> {
|
||||
List<Map<String, String>> getAllPose();
|
||||
|
||||
void processPoseTransformResultBatch(String taskId, String gifUrl, String videoUrl, String imageUrl, String progress);
|
||||
|
||||
String createAsyncTask(GenerateThroughImageTextDTO generateThroughImageTextDTO);
|
||||
|
||||
GenerateResultVO getAsyncTaskResult(String taskId);
|
||||
|
||||
String animateAnyone(PoseTransformDTO poseTransformDTO, Long accountId);
|
||||
|
||||
String getVideoTemplateId(String videoPath);
|
||||
|
||||
PoseTransformationVO getAnimateResult(String taskId);
|
||||
|
||||
String reimagineFreePik(String path, String prompt, String style) throws IOException;
|
||||
|
||||
String getImageDescription(String imagePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user