| | |
| | | } |
| | | |
| | | /** |
| | | * 查询全部气象站记录 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "获得全部气象站记录", description = "返回全部气象站数据") |
| | | @ApiResponses(value = { |
| | | @ApiResponse( |
| | | responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE, |
| | | description = "返回全部气象站数据(BaseResponse.content:QueryResultVo[{}])", |
| | | content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, |
| | | schema = @Schema(implementation = VoWeather.class))} |
| | | ) |
| | | }) |
| | | @GetMapping(path = "/all") |
| | | @SsoAop() |
| | | public BaseResponse<List<VoWeather>> all(){ |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(this.sv.allSimple()); |
| | | } catch (Exception e) { |
| | | log.error("获取气象站记录异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 分页查询气象站记录 |
| | | * @param vo |
| | | * @return |