| | |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author Lyq |
| | |
| | | public class CockpitVO { |
| | | @Data |
| | | @ApiModel |
| | | public static class Params1VO { |
| | | public class Params1VO implements Serializable { |
| | | @ApiModelProperty(value = "appId", example = "1") |
| | | @NotBlank(message = "appId不能为空") |
| | | // @NotBlank(message = "appId不能为空") |
| | | private String appId; |
| | | @ApiModelProperty(value = "appKey", example = "1") |
| | | @NotBlank(message = "appKey不能为空") |
| | | // @NotBlank(message = "appKey不能为空") |
| | | private String appKey; |
| | | @ApiModelProperty(value = "sign", example = "sfagjgfjgfjdgfjsgdfgsa") |
| | | @NotBlank(message = "sign不能为空") |
| | | // @NotBlank(message = "sign不能为空") |
| | | private String sign; |
| | | } |
| | | |
| | | @Data |
| | | @ApiModel |
| | | public static class Params2VO { |
| | | public class Params2VO implements Serializable { |
| | | @ApiModelProperty(value = "appId", example = "1") |
| | | @NotBlank(message = "appId不能为空") |
| | | // @NotBlank(message = "appId不能为空") |
| | | private String appId; |
| | | @ApiModelProperty(value = "appKey", example = "1") |
| | | @NotBlank(message = "appKey不能为空") |
| | | // @NotBlank(message = "appKey不能为空") |
| | | private String appKey; |
| | | @ApiModelProperty(value = "sign", example = "sfagjgfjgfjdgfjsgdfgsa") |
| | | @NotBlank(message = "sign不能为空") |
| | | // @NotBlank(message = "sign不能为空") |
| | | private String sign; |
| | | @ApiModelProperty(value = "开始时间,格式yyyy-MM-dd hh:mm:ss",example = "2022-10-22 13:22:22") |
| | | @NotBlank(message = "开始时间不能为空") |
| | | // @NotBlank(message = "开始时间不能为空") |
| | | private String beginTime; |
| | | @ApiModelProperty(value = "结束时间,格式yyyy-MM-dd hh:mm:ss",example = "2022-10-23 13:22:22") |
| | | @NotBlank(message = "结束时间不能为空") |
| | | // @NotBlank(message = "结束时间不能为空") |
| | | private String endTime; |
| | | } |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "执法事件") |
| | | @GetMapping("/law_enforcement_event") |
| | | @ApiImplicitParam(name = "regionId",value = "地区Id",required = true,dataType = "String") |
| | | public CommonResult<List<StatisticsEventsVO.LawEnforcementEventVO>> detection(@Validated CockpitVO.Params2VO params, @RequestParam(required = true)String regionId) { |
| | | checkApiUtil.cockpit(params.getAppId(), params.getAppKey(), params.getSign(), params.getBeginTime(), params.getEndTime(),regionId); |
| | | public CommonResult<List<StatisticsEventsVO.LawEnforcementEventVO>> detection(@Validated CockpitVO.Params2VO params) { |
| | | checkApiUtil.cockpit(params.getAppId(), params.getAppKey(), params.getSign(), params.getBeginTime(), params.getEndTime(), null); |
| | | List<StatisticsEventsVO.LawEnforcementEventVO> lawEnforcementEventVOS = new ArrayList<>(); |
| | | StatisticsEventsVO.LawEnforcementEventVO a = null; |
| | | for (int i = 0; i < 4; i++) { |
| | |
| | | |
| | | @ApiOperation(value = "物联感知") |
| | | @GetMapping("/lot") |
| | | @ApiImplicitParam(name = "regionId",value = "地区Id",required = true,dataType = "String") |
| | | public CommonResult<List<StatisticsEventsVO.LotVO>> lot(@Validated CockpitVO.Params1VO params,@RequestParam(required = true)String regionId) { |
| | | checkApiUtil.cockpit(params.getAppId(), params.getAppKey(), params.getSign(), null, null,regionId); |
| | | public CommonResult<List<StatisticsEventsVO.LotVO>> lot(@Validated CockpitVO.Params1VO params) { |
| | | checkApiUtil.cockpit(params.getAppId(), params.getAppKey(), params.getSign(), null, null, null); |
| | | List<StatisticsEventsVO.LotVO> lotVOS = new ArrayList<>(); |
| | | StatisticsEventsVO.LotVO a = null; |
| | | for (int i = 0; i < 4; i++) { |