废弃部分接口
This commit is contained in:
parent
7920080d0a
commit
45ac0c45ee
|
@ -105,7 +105,7 @@ public class CommonController {
|
|||
return Result.ok(GenderEnum.listAll());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "上传图片", httpMethod = "POST")
|
||||
@ApiOperation(value = "上传图片-遥控器app使用,已废弃", httpMethod = "POST")
|
||||
@PostMapping("/upload-image/{imageSource}")
|
||||
public Result<?> uploadImage(@PathVariable String imageSource, ImageWorkReq workReq, MultipartFile file) throws IOException {
|
||||
if(null == file){
|
||||
|
@ -114,7 +114,7 @@ public class CommonController {
|
|||
return Result.ok(imageService.batchUploadCommonImage(imageSource, workReq, new MultipartFile[]{file}).get(0));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "批量上传图片", httpMethod = "POST")
|
||||
@ApiOperation(value = "批量上传图片-遥控器app使用,已废弃", httpMethod = "POST")
|
||||
@PostMapping("/batch-upload-image/{imageSource}")
|
||||
public Result<?> batchUploadImage(@PathVariable String imageSource, ImageWorkReq workReq,
|
||||
@RequestParam("file") MultipartFile[] files) throws IOException {
|
||||
|
|
|
@ -57,9 +57,9 @@ public class ImageController {
|
|||
|
||||
@ApiOperation(value = "上传图像", httpMethod = "POST")
|
||||
@PostMapping("/{imageSource}/upload/{partId}")
|
||||
public Result<String> uploadOutWork(@PathVariable String imageSource, @PathVariable String partId, ImageCollectReq collectReq, @RequestParam("file") MultipartFile file) {
|
||||
public Result<ImageReq> uploadOutWork(@PathVariable String imageSource, @PathVariable String partId, ImageCollectReq collectReq, @RequestParam("file") MultipartFile file) {
|
||||
MultipartFile[] files = {file};
|
||||
return Result.ok(imageService.batchUploadDefectImage(partId, imageSource, collectReq, files).get(0).getImagePath());
|
||||
return Result.ok(imageService.batchUploadDefectImage(partId, imageSource, collectReq, files).get(0));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "设置信息", httpMethod = "POST")
|
||||
|
@ -76,13 +76,13 @@ public class ImageController {
|
|||
return Result.ok();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取APP上传的图片列表", httpMethod = "GET")
|
||||
@ApiOperation(value = "获取APP上传的图片列表-废弃", httpMethod = "GET")
|
||||
@GetMapping("/list/app-upload-images")
|
||||
public Result<List<AppImageResp>> listAppUploadImages() throws IOException {
|
||||
return Result.ok(imageService.listAppUploadImages());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "关联APP上传图片到机组", httpMethod = "POST")
|
||||
@ApiOperation(value = "关联APP上传图片到机组-废弃", httpMethod = "POST")
|
||||
@PostMapping("/linkAppImagesToPart")
|
||||
public Result<?> linkAppImagesToPart(@RequestBody AppImageToPartReq partReq) {
|
||||
imageService.linkAppImagesToPart(partReq);
|
||||
|
|
Loading…
Reference in New Issue