package com.mindskip.xzs.service;
|
|
|
import java.io.File;
|
import java.io.InputStream;
|
|
/**
|
* @version 2.2.0
|
* @description: 文件上传
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
public interface FileUpload {
|
|
/**
|
* 文件上传
|
*
|
* @param file the file
|
* @param fileName the file name
|
* @param folder the folder
|
* @return the string
|
*/
|
String fileUpload(File file, String fileName, String folder);
|
|
/**
|
* 文件上传
|
*
|
* @param inputStream the input stream
|
* @param fileSize the file size
|
* @param fileName the file name
|
* @param folder the folder
|
* @return the string
|
*/
|
String fileUpload(InputStream inputStream, long fileSize, String fileName, String folder);
|
|
}
|