HandleFile.java 830 字节
Newer Older
jianglw's avatar
jianglw committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
package com.ruoyi.common.handlefile;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 处理文件接口
 * @author jianglw
 * @version 1.0
 * @date 2021/1/28 18:48
 */
public interface HandleFile {
    /**
     * 读取文件
     * @param file
     */
    public HandleFile readFile(MultipartFile file) throws IOException;

    /**
     * 加密文件
     * @param file
     */
    public HandleFile encryptionFile() throws Exception;

    /**
     * 解析文件
     * @param file
     */
    public HandleFile decryptFile()throws Exception;

    /**
     * 生成文件
     * @param fileName
     * @param userName
     * @param createdPath
     * @throws IOException
     */
    public void createFile(String fileName,String userName,String createdPath) throws IOException;

}