文件上传接口保留path参数,方便覆盖文件

This commit is contained in:
谢华宁
2022-05-31 22:26:26 +08:00
parent 20411fa6b5
commit 250db847f6
7 changed files with 29 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ public class FileServiceTest extends BaseDbUnitTest {
when(client.getId()).thenReturn(10L);
String name = "单测文件名";
// 调用
String result = fileService.createFile(name, content);
String result = fileService.createFile(name, path, content);
// 断言
assertEquals(result, url);
// 校验数据