fix[订单中心]:退款逻辑优化

This commit is contained in:
2025-03-04 17:06:28 +08:00
parent 13872d7bb0
commit 5ab20318cf
5 changed files with 44 additions and 31 deletions
@@ -55,6 +55,20 @@ public class FileController {
return fileService.upload(file);
}
/**
* 文件上传
* 根据fileType选择上传方式
*
* @param file
* @return
* @throws Exception
*/
@PostMapping(value = "/files-anon/file",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public String uploadFile(@RequestParam("file") MultipartFile file) throws Exception {
FileInfo fileInfo = fileService.upload(file);
return fileService.getViewUrlByPath(fileInfo.getPath());
}
/**
* 文件删除
*