文件表建加原文件名称字段name,相关代码修改

This commit is contained in:
谢华宁
2022-05-29 22:40:03 +08:00
parent 0fd5de2d73
commit 20411fa6b5
16 changed files with 37 additions and 31 deletions

View File

@ -10,10 +10,20 @@ public interface FileApi {
/**
* 保存文件,并返回文件的访问路径
*
* @param originalName 原文件名称
* @param content 文件内容
* @return 文件路径
*/
String createFile(String originalName, byte[] content) throws Exception;
default String createFile(byte[] content) throws Exception {
return createFile(null, content);
}
/**
* 保存文件,并返回文件的访问路径
*
* @param name 原文件名称
* @param content 文件内容
* @return 文件路径
*/
String createFile(String name, byte[] content) throws Exception;
}