2023-01-06 15:17:37 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
|
|
|
|
import com.ai.da.common.response.PageBaseResponse;
|
2024-01-19 16:36:34 +08:00
|
|
|
import com.ai.da.mapper.primary.entity.Library;
|
2023-01-06 15:17:37 +08:00
|
|
|
import com.ai.da.model.dto.*;
|
|
|
|
|
import com.ai.da.model.vo.LibraryUpdateVo;
|
|
|
|
|
import com.ai.da.model.vo.LibraryVo;
|
|
|
|
|
import com.ai.da.model.vo.QueryLibraryPageVO;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
2024-01-26 13:17:59 +08:00
|
|
|
import java.text.ParseException;
|
2023-01-06 15:17:37 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 服务类
|
|
|
|
|
*
|
|
|
|
|
* @author yanglei
|
|
|
|
|
* @since 2022-09-11
|
|
|
|
|
*/
|
|
|
|
|
public interface LibraryService extends IService<Library> {
|
|
|
|
|
/**
|
|
|
|
|
* 根据用户id和一等级查询
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param accountId
|
|
|
|
|
* @param level1Types
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<LibraryVo> selectByAccountIdAnd1TypeList(Long accountId, List<String> level1Types);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分页查询library
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param query
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
PageBaseResponse<QueryLibraryPageVO> queryLibraryPage(QueryLibraryPageServiceDTO query);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 上传library图片
|
|
|
|
|
*
|
|
|
|
|
* @param libraryUploadDTO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
LibraryUpdateVo upload(LibraryUploadDTO libraryUploadDTO);
|
|
|
|
|
|
2023-12-04 14:04:36 +08:00
|
|
|
void checkModel(String value, List<Long> modelIds, Integer deleteModelConfirm);
|
|
|
|
|
|
2023-01-06 15:17:37 +08:00
|
|
|
/**
|
|
|
|
|
* 编辑library 文件名
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param libraryUpdateDTO
|
|
|
|
|
*/
|
|
|
|
|
void updateLibraryName(LibraryUpdateDTO libraryUpdateDTO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 跟进ids批量查询
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param ids
|
|
|
|
|
*/
|
|
|
|
|
List<Library> getByIds(List<Long> ids);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据md5集合查询
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param md5List
|
|
|
|
|
*/
|
|
|
|
|
List<Library> getByMD5List(List<String> md5List);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据集合url查询
|
2023-10-20 14:47:18 +08:00
|
|
|
*
|
2023-01-06 15:17:37 +08:00
|
|
|
* @param urlList
|
|
|
|
|
*/
|
2023-10-20 14:47:18 +08:00
|
|
|
List<LibraryVo> getByUrlList(List<String> urlList, Long userId);
|
2023-01-06 15:17:37 +08:00
|
|
|
|
2023-09-29 21:44:43 +08:00
|
|
|
Boolean updateLibraryLevel2Type(LibraryLevel2TypeUpdateDTO libraryLevel2TypeUpdateDTO);
|
2023-10-16 11:42:20 +08:00
|
|
|
|
|
|
|
|
String processMannequins(String uploadPath);
|
2023-10-18 14:58:12 +08:00
|
|
|
|
2023-11-22 15:18:58 +08:00
|
|
|
|
|
|
|
|
void processSketchBoards(String filePath, String category);
|
|
|
|
|
|
2023-10-18 15:54:23 +08:00
|
|
|
Boolean checkMd5(String level1Type, String level2Type, String sex, String md5);
|
2023-11-07 11:32:03 +08:00
|
|
|
|
|
|
|
|
void batchDeleteLibrary(LibraryDeleteDTO deleteDTO);
|
2023-11-20 15:06:15 +08:00
|
|
|
|
|
|
|
|
void deleteTrialData(Long id);
|
2024-01-26 13:17:59 +08:00
|
|
|
|
|
|
|
|
void moveLibraryDate() throws ParseException;
|
2025-04-01 17:15:38 +08:00
|
|
|
|
|
|
|
|
Long addSysModelToLib(long sysModelId);
|
2023-01-06 15:17:37 +08:00
|
|
|
}
|