mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package com.panzhihua.common.model.dtos.grid;
 
import java.util.Date;
import java.util.List;
 
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
 
import org.hibernate.validator.constraints.Length;
 
import com.fasterxml.jackson.annotation.JsonFormat;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
/**
 * 创建表单
 *
 * @author cedoo email:cedoo(a)qq.com
 * @version 1.0
 * @since 1.0
 * @date 2021-05-26
 */
@Data
@ApiModel("特殊人群事件请求参数")
public class SpecialEventEditDTO {
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "id,如果是新增则不填", hidden = false, example = "1")
    private Long id;
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "发生时间", hidden = false, example = "2021-05-01 18:05:50", required = true)
    @NotNull(message = "发生时间不能为空")
    private Date happenTime;
 
    @Length(max = 255)
    @ApiModelProperty(value = "发生的精度纬度信息(逗号隔开)", hidden = false, example = "41.40338,2.17403", required = true)
    @NotNull(message = "发生的精度纬度信息不能为空")
    private String happentLatLng;
 
    @Length(max = 255)
    @ApiModelProperty(value = "发生地点-位置备注", hidden = false, example = "")
    private String happentAddress;
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "发生区域-网格ID", hidden = false, example = "1", required = true)
    @NotNull(message = "发生区域-网格ID不能为空")
    private Long gridId;
 
    @Length(max = 500)
    @ApiModelProperty(value = "事件描述", hidden = false, example = "", required = true)
    @NotNull(message = "事件描述不能为空")
    private String eventDes;
 
    @Length(max = 255)
    @ApiModelProperty(value = "事件类型,逗号隔开", hidden = false, example = "邻里纠纷,土地承包租赁", required = true)
    @NotNull(message = "事件类型不能为空")
    private String eventClazz;
 
    @Max(127)
    @ApiModelProperty(value = "危险级别:0 (无) 1(特别重大)、2(重大)、3(较大)、4(一般)", hidden = false, example = "1", required = true)
    @NotNull(message = "危险级别不能为空")
    private Integer dangerLevel;
 
    @Max(9999999999L)
    @ApiModelProperty(value = "死亡人数", hidden = false, example = "1", required = true)
    @NotNull(message = "死亡人数不能为空")
    private Integer deathsNumber;
 
    @Max(9999999999L)
    @ApiModelProperty(value = "受伤人数", hidden = false, example = "1", required = true)
    @NotNull(message = "受伤人数不能为空")
    private Integer injuriesNumber;
 
    @ApiModelProperty(value = "是否紧急", hidden = false, example = "true", required = true)
    @NotNull(message = "是否紧急不能为空")
    private Boolean urgent;
 
    @ApiModelProperty(value = "是否重大", hidden = false, example = "true", required = true)
    @NotNull(message = "是否重大不能为空")
    private Boolean major;
 
    @ApiModelProperty(value = "特殊人群", hidden = false, required = true)
    @NotNull(message = "特殊人员信息不能为空")
    private List<SpecialPopulationDTO> specialPopulation;
 
    @ApiModelProperty(value = "音频(限1个)", hidden = false,
        example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp3")
    private String audio;
 
    @ApiModelProperty(value = "音频时长(单位:秒)", hidden = false, example = "10")
    private Integer audioTime;
 
    @ApiModelProperty(value = "视频(限1个)", hidden = false,
        example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp4")
    private String video;
 
    @ApiModelProperty(value = "视频时长(单位:秒)", hidden = false, example = "10")
    private Integer videoTime;
 
    @ApiModelProperty(value = "图片,逗号隔开(限9张)", hidden = false,
        example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.jpg,http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.jpg")
    private String pics;
 
    @ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1")
    private Long userId;
    @ApiModelProperty(value = "(当前操作)用户姓名", hidden = true, example = "张三")
    private String userName;
    @ApiModelProperty(value = "(当前操作)用户电话", hidden = true, example = "18888888888")
    @Length(max = 11)
    private String phone;
 
}