2023-08-17 11:59:19 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
2024-01-19 16:36:34 +08:00
|
|
|
import com.ai.da.mapper.primary.entity.Generate;
|
|
|
|
|
import com.ai.da.mapper.primary.entity.GenerateDetail;
|
2025-03-25 11:19:55 +08:00
|
|
|
import com.ai.da.model.dto.*;
|
2024-04-18 14:07:20 +08:00
|
|
|
import com.ai.da.model.vo.*;
|
2023-09-20 12:05:08 +08:00
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
2025-03-25 11:19:55 +08:00
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
2023-08-17 11:59:19 +08:00
|
|
|
|
2023-11-22 11:18:51 +08:00
|
|
|
import java.util.List;
|
2024-08-01 10:00:26 +08:00
|
|
|
import java.util.Map;
|
2023-11-22 11:18:51 +08:00
|
|
|
|
2023-09-20 12:05:08 +08:00
|
|
|
public interface GenerateService extends IService<Generate> {
|
2023-08-17 11:59:19 +08:00
|
|
|
|
|
|
|
|
GenerateCaptionVO generateCaption(Long sketchElementId);
|
|
|
|
|
|
2024-04-18 14:07:20 +08:00
|
|
|
void generateThroughImageText(GenerateThroughImageTextDTO generateThroughImageTextDTO);
|
|
|
|
|
|
2024-04-25 12:41:07 +08:00
|
|
|
void processGenerateResult(String taskId, String url, String category);
|
2023-08-29 10:33:32 +08:00
|
|
|
|
2024-06-12 09:47:55 +08:00
|
|
|
void processToProductImageResult(String taskId, String url, String category);
|
|
|
|
|
|
2023-08-29 10:33:32 +08:00
|
|
|
GenerateLikeVO generateLike(GenerateLikeDTO generateLikeDTO);
|
2023-09-19 15:21:53 +08:00
|
|
|
|
2023-10-20 14:47:18 +08:00
|
|
|
Boolean generateDislike(Long generateDetailId, String timeZone);
|
2023-11-22 11:18:51 +08:00
|
|
|
|
|
|
|
|
void updateLikeStatusBatch(List<Long> generateDetailIdList, Byte hasLike, Long libraryId, String timeZone);
|
|
|
|
|
|
|
|
|
|
List<GenerateDetail> selectBatchByLibraryId(List<Long> libraryId);
|
2024-01-21 14:14:55 +08:00
|
|
|
|
2024-05-02 10:33:11 +08:00
|
|
|
// GenerateCollectionVO getGenerateResult(String uniqueId);
|
2024-01-21 14:14:55 +08:00
|
|
|
|
2024-04-18 14:07:20 +08:00
|
|
|
List<GenerateResultVO> getGenerateResultList(List<String> taskIdList);
|
|
|
|
|
|
2024-04-18 16:48:19 +08:00
|
|
|
PrepareForGenerateVO prepareForGenerate(GenerateThroughImageTextDTO generateThroughImageTextDTO);
|
2024-01-21 14:14:55 +08:00
|
|
|
|
2024-01-24 11:43:56 +08:00
|
|
|
Long getRankPosition(String uniqueId);
|
2024-01-21 14:14:55 +08:00
|
|
|
|
2024-06-24 17:02:25 +08:00
|
|
|
void cancelGenerate(Long userId, List<String> uniqueId, String timeZone, String type);
|
2024-06-25 16:43:29 +08:00
|
|
|
|
|
|
|
|
void processRelightResult(String taskId, String url, String category);
|
2024-08-01 10:00:26 +08:00
|
|
|
|
|
|
|
|
List<Map<String, Object>> getCountByUserAndTime(String startTime, String endTime, List<Long> accountIdList);
|
2024-09-20 11:32:09 +08:00
|
|
|
|
2025-03-25 11:19:55 +08:00
|
|
|
GenerateResultVO imageToSketch(ImageToSketchDTO imageToSketchDTO, String collagePictureUrl, Long projectId);
|
2024-09-20 11:32:09 +08:00
|
|
|
|
2024-09-27 15:40:30 +08:00
|
|
|
GenerateResultVO modifySketch(GenerateModifyDTO generateModifyDTO);
|
2025-03-20 17:42:16 +08:00
|
|
|
|
|
|
|
|
String poseTransform(Long projectId, String productImage, int poseId);
|
|
|
|
|
|
|
|
|
|
void processPoseTransformResult(String taskId, String gifUrl, String videoUrl, String imageUrl);
|
|
|
|
|
|
|
|
|
|
PoseTransformationVO getPoseTransformationResult(String taskId);
|
2025-03-25 11:19:55 +08:00
|
|
|
|
2025-03-25 16:20:00 +08:00
|
|
|
List<PoseTransformationVO> getPoseTransformationResultList(Long projectId);
|
2025-03-25 16:11:03 +08:00
|
|
|
|
|
|
|
|
Boolean disOrLikePose(Long transformedId, String likeOrDislike);
|
|
|
|
|
|
2025-03-25 11:19:55 +08:00
|
|
|
String modifyModelProportion(ModifyModelProportionDTO proportionDTO);
|
|
|
|
|
|
|
|
|
|
GenerateResultVO sketchReconstructionGenerate(SketchReconstructionDTO sketchReconstructionDTO);
|
|
|
|
|
|
|
|
|
|
SketchReconstructionVO getSketchReconstruction(Long projectId);
|
2025-04-08 18:05:49 +08:00
|
|
|
|
2025-04-09 09:48:00 +08:00
|
|
|
List<Map<String, String>> getAllPose();
|
2025-04-22 15:59:08 +08:00
|
|
|
|
|
|
|
|
void processPoseTransformResultBatch(String taskId, String gifUrl, String videoUrl, String imageUrl, String progress);
|
2023-08-17 11:59:19 +08:00
|
|
|
}
|