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;
|
2023-08-29 10:33:32 +08:00
|
|
|
import com.ai.da.model.dto.GenerateLikeDTO;
|
2023-08-17 11:59:19 +08:00
|
|
|
import com.ai.da.model.dto.GenerateThroughImageTextDTO;
|
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;
|
2023-08-17 11:59:19 +08:00
|
|
|
|
2023-11-22 11:18:51 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
void processGenerateResult(String taskId, String url);
|
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-01-24 11:43:56 +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);
|
|
|
|
|
|
|
|
|
|
List<String> 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-01-26 13:12:04 +08:00
|
|
|
void cancelGenerate(Long userId, String uniqueId, String timeZone);
|
2024-01-21 14:14:55 +08:00
|
|
|
|
2023-08-17 11:59:19 +08:00
|
|
|
}
|