fix[订单中心]:退款逻辑优化
This commit is contained in:
+14
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件删除
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user