| | |
| | | import cn.flightfeather.supervision.config.IgnoreResponseAdvice |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Mediafile |
| | | import cn.flightfeather.supervision.lightshare.service.MediafileService |
| | | import cn.flightfeather.supervision.lightshare.vo.ExcelConfigVo |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | | import org.springframework.web.bind.annotation.* |
| | | import org.springframework.web.multipart.MultipartFile |
| | | import springfox.documentation.annotations.ApiIgnore |
| | | import javax.servlet.http.HttpServletResponse |
| | | |
| | | @Api(tags = ["MediafileController"], description = "多媒体文件API接口") |
| | | @RestController |
| | |
| | | fun getRoutineRecord( |
| | | @ApiParam("巡查记录id", required = false) @RequestParam(required = false) iGuid: String?, |
| | | @ApiParam("巡查任务id", required = false) @RequestParam(required = false) stGuid: String?, |
| | | ) = resPack { mediafileService.getRoutineRecord(iGuid, stGuid) } |
| | | ) = mediafileService.getRoutineRecord(iGuid, stGuid) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("下载图片") |
| | | @PostMapping("/pic/download") |
| | | fun downloadPic( |
| | | @RequestBody config: ExcelConfigVo, |
| | | @ApiIgnore response: HttpServletResponse |
| | | ) = mediafileService.downloadPic(config, response) |
| | | } |