refactor: 删除文件接口入参由文件名修改为文件完整路径

This commit is contained in:
haoxr
2022-11-22 00:30:09 +08:00
parent 64fa51d190
commit c531d3e72e
2 changed files with 20 additions and 5 deletions

View File

@@ -32,9 +32,9 @@ public class FileController {
@ApiOperation(value = "文件删除")
@SneakyThrows
public Result deleteFile(
@ApiParam("文件路径") @RequestParam String fileName
@ApiParam("文件路径") @RequestParam String filePath
) {
boolean result = fileService.deleteFile(fileName);
boolean result = fileService.deleteFile(filePath);
return Result.judge(result);
}
}