73 lines
1.8 KiB
Java
73 lines
1.8 KiB
Java
|
|
package com.ai.da.service;
|
||
|
|
|
||
|
|
import com.ai.da.common.response.PageBaseResponse;
|
||
|
|
import com.ai.da.mapper.entity.Library;
|
||
|
|
import com.ai.da.mapper.entity.UserLike;
|
||
|
|
import com.ai.da.model.dto.*;
|
||
|
|
import com.ai.da.model.vo.CollectionElementVO;
|
||
|
|
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 org.springframework.web.bind.annotation.RequestBody;
|
||
|
|
|
||
|
|
import javax.validation.Valid;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 服务类
|
||
|
|
*
|
||
|
|
* @author yanglei
|
||
|
|
* @since 2022-09-11
|
||
|
|
*/
|
||
|
|
public interface LibraryService extends IService<Library> {
|
||
|
|
/**
|
||
|
|
* 根据用户id和一等级查询
|
||
|
|
* @param accountId
|
||
|
|
* @param level1Types
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
List<LibraryVo> selectByAccountIdAnd1TypeList(Long accountId, List<String> level1Types);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询library
|
||
|
|
* @param query
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
PageBaseResponse<QueryLibraryPageVO> queryLibraryPage(QueryLibraryPageServiceDTO query);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 上传library图片
|
||
|
|
*
|
||
|
|
* @param libraryUploadDTO
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
LibraryUpdateVo upload(LibraryUploadDTO libraryUploadDTO);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑library 文件名
|
||
|
|
* @param libraryUpdateDTO
|
||
|
|
*/
|
||
|
|
void updateLibraryName(LibraryUpdateDTO libraryUpdateDTO);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 跟进ids批量查询
|
||
|
|
* @param ids
|
||
|
|
*/
|
||
|
|
List<Library> getByIds(List<Long> ids);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 根据md5集合查询
|
||
|
|
* @param md5List
|
||
|
|
*/
|
||
|
|
List<Library> getByMD5List(List<String> md5List);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 根据集合url查询
|
||
|
|
* @param urlList
|
||
|
|
*/
|
||
|
|
List<LibraryVo> getByUrlList(List<String> urlList,Long userId);
|
||
|
|
|
||
|
|
|
||
|
|
}
|