|
@@ -47,21 +47,28 @@ public class FodderController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @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(ErrorEnum.FAILURE_CODE_3020.code(),"文件不能为空");
|
|
|
- }
|
|
|
- FodderUploadDto dto = new FodderUploadDto();
|
|
|
- dto.setFile(file);
|
|
|
- dto.setTemId(tempId);
|
|
|
- dto.setType(type);
|
|
|
- dto.setDirId(1L); // 默认跟目录
|
|
|
- return fodderService.upload(dto);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 2022-12--6 旧接口停用
|
|
|
+ * @param file
|
|
|
+ * @param type
|
|
|
+ * @param tempId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+// @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(ErrorEnum.FAILURE_CODE_3020.code(),"文件不能为空");
|
|
|
+// }
|
|
|
+// FodderUploadDto dto = new FodderUploadDto();
|
|
|
+// dto.setFile(file);
|
|
|
+// dto.setTemId(tempId);
|
|
|
+// dto.setType(type);
|
|
|
+// dto.setDirId(1L); // 默认跟目录
|
|
|
+// return fodderService.upload(dto);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -76,16 +83,17 @@ public class FodderController extends BaseController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
+ * 2022-12--6 旧接口停用
|
|
|
* 2021-04-30
|
|
|
* 目前只返回计算成功的数据
|
|
|
* @param param
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "列表", position = 1)
|
|
|
- @PostMapping("list")
|
|
|
- public Result<FodderEntity> list(@RequestBody FodderPageDto param) {
|
|
|
- return fodderService.search(param);
|
|
|
- }
|
|
|
+// @ApiOperation(value = "列表", position = 1)
|
|
|
+// @PostMapping("list")
|
|
|
+// public Result<FodderEntity> list(@RequestBody FodderPageDto param) {
|
|
|
+// return fodderService.search(param);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "修改", position = 1)
|