fix:优化航线管理航线上传逻辑
This commit is contained in:
parent
9069bd5fa2
commit
b2a7748cc3
|
|
@ -45,5 +45,5 @@ public interface RemoteFileService
|
||||||
* 文件流上传请求
|
* 文件流上传请求
|
||||||
*/
|
*/
|
||||||
@PostMapping("uploadStream")
|
@PostMapping("uploadStream")
|
||||||
public R<String> uploadFileByStream(String filename, String extension, ByteArrayOutputStream out);
|
public R<String> uploadFileByData(@RequestParam("filename") String filename, @RequestParam("extension") String extension, @RequestParam("data") String data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileServ
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public R<String> uploadFileByStream(String filename, String extension, ByteArrayOutputStream out) {
|
public R<String> uploadFileByData(String filename, String extension, String data) {
|
||||||
return R.fail("上传流文件失败:" + throwable.getMessage());
|
return R.fail("上传流文件失败:" + throwable.getMessage());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue