Files
aida_back/src/main/java/com/ai/da/service/DesignItemService.java

72 lines
1.9 KiB
Java
Raw Normal View History

2023-01-06 15:17:37 +08:00
package com.ai.da.service;
2024-01-19 16:36:34 +08:00
import com.ai.da.mapper.primary.entity.DesignItem;
2023-01-06 15:17:37 +08:00
import com.ai.da.model.dto.DesignSingleDTO;
2023-09-14 12:58:49 +08:00
import com.ai.da.model.dto.DesignSingleIncludeLayersDTO;
import com.ai.da.model.vo.*;
import com.alibaba.fastjson.JSONArray;
2023-01-06 15:17:37 +08:00
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.IOException;
2023-01-06 15:17:37 +08:00
import java.util.List;
import java.util.Map;
2023-01-06 15:17:37 +08:00
/**
* 服务类
*
* @author yanglei
* @since 2022-09-11
*/
public interface DesignItemService extends IService<DesignItem> {
Long saveOne(DesignItem designItem);
int deleteByCollectionId(Long collectionId);
List<DesignItem> getByDesignId(Long designId);
2023-10-20 14:47:18 +08:00
void updateLikeStatus(Long designItemId, Byte hasLike);
2023-01-06 15:17:37 +08:00
2023-10-20 14:47:18 +08:00
void updateDesignHighUrl(Long designItemId, String highUrl, String timeZone);
2023-01-06 15:17:37 +08:00
/**
* 切换系统elemnt
2023-10-20 14:47:18 +08:00
*
2023-01-06 15:17:37 +08:00
* @param id
* @param type
*/
GetNextSysElementVO getNextSysElement(Long id, String type, String operateType);
/**
* 单个design
2023-10-20 14:47:18 +08:00
*
2023-01-06 15:17:37 +08:00
* @param designSingleDTO
*/
DesignCollectionItemVO designSingle(DesignSingleDTO designSingleDTO);
/**
* print打点
2023-10-20 14:47:18 +08:00
*
2023-01-06 15:17:37 +08:00
* @param designSingleDTO
*/
String printDot(DesignSingleDTO designSingleDTO);
2023-09-14 12:58:49 +08:00
DesignSingleVO designSingleIncludeLayers(DesignSingleIncludeLayersDTO designSingleIncludeLayersDTO);
Map<String, String> setTypeAndUndividedLayer(JSONArray layers);
ComposeLayersVO editLayersPositionAndScale(EditLayersPositionAndScaleVO positionAndScaleVO) throws IOException;
2023-12-14 11:26:12 +08:00
List<DesignItem> selectDesignIdById(List<Long> designItemIdList);
Long getCountByUserAndTime(String startTime, String endTime, List<Long> accountIds);
2024-09-13 10:09:33 +08:00
void classificationByGradientColor();
List<List<Long>> getHistoryLikeWithGradient();
void convertHistoryMaskWithoutGradient();
2024-09-13 10:09:33 +08:00
void deleteNotFoundModelDesign();
2023-01-06 15:17:37 +08:00
}