| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.mail.MessagingException; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | | @RestController |
| | |
| | | BOMFeedback feedback = ActionUtil.getGson().fromJson(feedbackJson, BOMFeedback.class); |
| | | return service.submitFeedback(feedback,multipartFile); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据文件路径下载") |
| | | @GetMapping("downLoadFileByFilePath") |
| | | public void downLoadFileByFilePath(HttpServletRequest req, HttpServletResponse resp, @RequestParam String filePath){ |
| | | service.downLoadFileByFilePath(req,resp,filePath); |
| | | } |
| | | } |