All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.file.application.FileService Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.file.application;

import com.github.rexsheng.springboot.faster.system.file.application.dto.*;

import java.util.List;

public interface FileService {

    AddFileResponse addFile(AddFileRequest request);

    FileDetailResponse getFile(String fileId);

    FileDetailResponse getFileMeta(String fileId);

    List queryList(QueryFileRequest request);

    void deleteFile(String fileId);

    void deleteFiles(List fileIds);

    /**
     * 从所有文件中删除不存在与最新id的文件
     * @param newestFileIds 最新的文件id
     * @param rangeFileIds 所有的文件id
     */
    void deleteFilesIfNotExists(List newestFileIds, List rangeFileIds);

    void deleteFiles(DeleteFileRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy