refactor: 删除文件接口入参由文件名修改为文件完整路径
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user