|
@@ -42,15 +42,15 @@ public class FodderController extends BaseController {
|
|
|
@Autowired
|
|
|
SceneService sceneService;
|
|
|
|
|
|
- @ApiOperation(value = "上传素材", notes = "type:类型, 全景图:pano, 图片:image, 音频:audio, 视频:video")
|
|
|
- @PostMapping("upload/{type}")
|
|
|
- public Result upload(MultipartFile file, @PathVariable String type) {
|
|
|
+ @ApiOperation(value = "上传素材", notes = "type:类型, 全景图:pano, 图片:image, 音频:audio, 视频:video, temId: 前端临时Id")
|
|
|
+ @PostMapping("upload/{type}/{tempId}")
|
|
|
+ public Result upload(MultipartFile file, @PathVariable String type, @PathVariable String tempId) {
|
|
|
|
|
|
if (file == null) {
|
|
|
log.error("文件不能为空");
|
|
|
return Result.failure("文件不能为空");
|
|
|
}
|
|
|
- return fodderService.upload(file, type);
|
|
|
+ return fodderService.upload(file, type, tempId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "列表", position = 1)
|