wl
2022-12-12 a8a8b384f755b454242a709d86cfef6377a12d33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.ycl.vo.cockpit.enforcementEvents;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * @author Lyq
 * @version 1.0
 * @date 2022/10/26
 */
@ApiModel(description = "驾驶舱数据-执法事件VO层")
public class EnforcementEventsVO {
    @ApiModel(description = "执法事件统计")
    @Data
    public static class StatisticsEventVO {
        @ApiModelProperty(value = "数量")
        private Integer count;
 
        @ApiModelProperty(value = "比例")
        private BigDecimal ratio;
 
        @ApiModelProperty(value = "上升下降")
        private Boolean up;
    }
 
    @Data
    @ApiModel(description = "事件类型/事件来源")
    public static class TypeAndSourceVO {
        @ApiModelProperty(value = "事件的总数")
        private Long all;
        @ApiModelProperty(value = "事件类型的数量、各占比")
        private List<VideoAndAreaVO> records;
    }
 
    @Data
    @ApiModel(description = "事件信息")
    public static class InfoVO {
        @ApiModelProperty(value = "今日事件总数")
        private Integer today;
        @ApiModelProperty(value = "本周事件总数")
        private Integer week;
        @ApiModelProperty(value = "执法出动总数")
        private Integer dispatch;
        @ApiModelProperty(value = "AI识别的事件总数")
        private Integer identification;
        @ApiModelProperty(value = "具体事件的数据信息")
        private List<EventVO> event;
    }
}