From ebea64fcbd2b7881863755ec38e5cf37cdb60658 Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期一, 31 五月 2021 14:49:18 +0800
Subject: [PATCH] Merge branch 'test_future_wangge' into test

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/SpecialEventAddDTO.java |  102 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 102 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/SpecialEventAddDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/SpecialEventAddDTO.java
new file mode 100644
index 0000000..c44259d
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/SpecialEventAddDTO.java
@@ -0,0 +1,102 @@
+package com.panzhihua.common.model.dtos.grid;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.panzhihua.common.enums.EventType;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.hibernate.validator.constraints.Length;
+
+import javax.validation.constraints.Max;
+import javax.validation.constraints.NotNull;
+import java.util.Date;
+import java.util.List;
+
+
+/**
+ * 创建表单
+ *
+ * @author cedoo email:cedoo(a)qq.com
+ * @version 1.0
+ * @since 1.0
+ * @date 2021-05-26
+ * */
+@Data
+@ApiModel("特殊人群事件请求参数")
+public class SpecialEventAddDTO {
+
+    @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=255)
+    @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 = "危险级别: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 = "视频(限1个)", hidden = false, example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp4")
+    private String video;
+
+    @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;
+
+}

--
Gitblit v1.7.1