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.*;
|
2024-07-10 13:53:52 +08:00
|
|
|
import com.alibaba.fastjson.JSONArray;
|
2023-01-06 15:17:37 +08:00
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
2023-09-29 13:59:38 +08:00
|
|
|
import java.io.IOException;
|
2023-01-06 15:17:37 +08:00
|
|
|
import java.util.List;
|
2024-07-10 13:53:52 +08:00
|
|
|
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);
|
|
|
|
|
|
2024-07-10 13:53:52 +08:00
|
|
|
Map<String, String> setTypeAndUndividedLayer(JSONArray layers);
|
|
|
|
|
|
2023-09-29 13:59:38 +08:00
|
|
|
ComposeLayersVO editLayersPositionAndScale(EditLayersPositionAndScaleVO positionAndScaleVO) throws IOException;
|
|
|
|
|
|
2023-12-14 11:26:12 +08:00
|
|
|
List<DesignItem> selectDesignIdById(List<Long> designItemIdList);
|
2024-08-01 10:00:26 +08:00
|
|
|
|
|
|
|
|
Long getCountByUserAndTime(String startTime, String endTime, List<Long> accountIds);
|
2024-09-06 12:34:36 +08:00
|
|
|
|
|
|
|
|
void convertHistoryMaskWithoutGradient();
|
2024-09-13 10:09:33 +08:00
|
|
|
|
2024-09-19 09:50:56 +08:00
|
|
|
void updateMaskUrl();
|
2023-01-06 15:17:37 +08:00
|
|
|
}
|