| | |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import org.springframework.web.bind.annotation.* |
| | | import springfox.documentation.annotations.ApiIgnore |
| | | import javax.servlet.http.HttpServletResponse |
| | | |
| | | @Api(tags = ["EvaluationController"], description = "评估总分API接口") |
| | | @RestController |
| | |
| | | @ApiOperation(value = "根据区域范围获取自动评估历史记录") |
| | | @PostMapping("/auto/record") |
| | | fun findAutoEvaluation(@RequestBody areaVo: AreaVo) = resPack { evaluationService.findAutoEvaluation(areaVo) } |
| | | |
| | | @ApiOperation(value = "下载自动评估结果") |
| | | @PostMapping("/auto/record/download") |
| | | fun downloadAutoEvaluation(@RequestBody areaVo: AreaVo, @ApiIgnore response: HttpServletResponse) = |
| | | resPack { evaluationService.downloadAutoEvaluation(areaVo, response) } |
| | | } |