/** * 文件上传 * * @return CommonResult */ @ApiOperation(value = "图片上传", notes = "图片上传", response = CommonResult.class) @PostMapping(value = "screenShotFileParse",headers="content-type=multipart/form-data") public CommonResult fileUpload(String name,@RequestPart @ApiParam(name = "picture",value = "picture", required = true) MultipartFile picture) { return fileService.uploadFile(picName,picture); }
swagger上传文件
最新推荐文章于 2024-01-05 16:44:11 发布