package com.oying.service;
|
|
import com.oying.domain.BucketStorage;
|
import com.oying.domain.dto.BucketStorageQueryCriteria;
|
|
import java.io.File;
|
import java.util.List;
|
import java.io.IOException;
|
import javax.servlet.http.HttpServletResponse;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.oying.utils.PageResult;
|
import org.springframework.web.multipart.MultipartFile;
|
|
/**
|
* @description 服务接口
|
* @author lixin
|
* @date 2025-06-03
|
**/
|
public interface BucketStorageService extends IService<BucketStorage> {
|
|
/**
|
* 查询数据分页
|
* @param criteria 条件
|
* @param page 分页参数
|
* @return PageResult
|
*/
|
PageResult<BucketStorage> queryAll(BucketStorageQueryCriteria criteria, Page<Object> page);
|
|
/**
|
* 查询所有数据不分页
|
* @param criteria 条件参数
|
* @return List<BucketStorageDto>
|
*/
|
List<BucketStorage> queryAll(BucketStorageQueryCriteria criteria);
|
|
/**
|
* 创建
|
*/
|
BucketStorage create(String name, MultipartFile file);
|
|
BucketStorage createFile(String name, File file);
|
|
/**
|
* 多选删除
|
* @param ids /
|
*/
|
void deleteAll(List<Long> ids);
|
|
/**
|
* 删除
|
* @param path /
|
*/
|
void deleteById(String path);
|
|
/**
|
* 导出数据
|
* @param all 待导出的数据
|
* @param response /
|
* @throws IOException /
|
*/
|
void download(List<BucketStorage> all, HttpServletResponse response) throws IOException;
|
}
|