|
@@ -54,9 +54,10 @@ public class NewsController {
|
|
|
@GeneralAdmin
|
|
|
@ApiOperation(value = "修改新闻")
|
|
|
@PostMapping("/update")
|
|
|
- public Result updateNews(MultipartFile pictureFile, NewsUpdateVO vo) throws IOException {
|
|
|
+ public Result updateNews(MultipartFile pictureFile, NewsUpdateVO vo,MultipartFile attachment) throws IOException {
|
|
|
NewsUpdateDTO newsUpdateDTO = modelMapper.map(vo, NewsUpdateDTO.class);
|
|
|
newsUpdateDTO.setPictureFile(pictureFile);
|
|
|
+ newsUpdateDTO.setAttachment(attachment);
|
|
|
return new Result().ok().data(newsService.updateNews(newsUpdateDTO));
|
|
|
}
|
|
|
|