2023-08-17 11:59:19 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
2023-09-20 12:05:08 +08:00
|
|
|
import com.ai.da.mapper.entity.Generate;
|
2023-11-22 11:18:51 +08:00
|
|
|
import com.ai.da.mapper.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;
|
|
|
|
|
import com.ai.da.model.vo.GenerateCaptionVO;
|
|
|
|
|
import com.ai.da.model.vo.GenerateCollectionVO;
|
2023-08-29 10:33:32 +08:00
|
|
|
import com.ai.da.model.vo.GenerateLikeVO;
|
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);
|
|
|
|
|
|
2023-08-18 10:42:08 +08:00
|
|
|
GenerateCollectionVO generateThroughImageText(GenerateThroughImageTextDTO generateThroughImageTextDTO);
|
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-01-24 11:43:56 +08:00
|
|
|
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
|
|
|
}
|