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 javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
 
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;
 
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 PublicityEventEditDTO {
 
    @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")
    @NotNull(message = "宣传时间不能为空")
    private Date propagandaTime;
 
    @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;
 
    @Length(max = 255)
    @ApiModelProperty(value = "事件发生地点", hidden = false, example = "", required = true)
    private String happenAddress;
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "宣传区域-网格ID", hidden = false, example = "1", required = true)
    @NotNull(message = "宣传区域不能为空")
    private Long gridId;
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "上报人ID", hidden = false, example = "1", required = true)
    // @NotNull(message = "上报人不能为空")
    private Long gridMemberId;
 
    @Length(max = 255)
    @ApiModelProperty(value = "宣传主题", hidden = false, example = "", required = true)
    @NotNull(message = "宣传主题不能为空")
    private String eventTitle;
 
    @Length(max = 500)
    @ApiModelProperty(value = "宣传内容", hidden = false, example = "", required = true)
    @NotNull(message = "宣传内容不能为空")
    private String eventDes;
 
    @Length(max = 255)
    @ApiModelProperty(value = "宣传类型", hidden = false, example = "1", required = true)
    @NotNull(message = "宣传类型不能为空")
    private String propagandaType;
 
    @Length(max = 50)
    @ApiModelProperty(value = "宣传对象", hidden = false, example = "", required = true)
    @NotNull(message = "宣传对象不能为空")
    private String propagandaObject;
 
    @Length(max = 8)
    @ApiModelProperty(value = "宣传人数", hidden = false, example = "", required = true)
    @NotNull(message = "宣传人数不能为空")
    private String propagandaNum;
 
    @ApiModelProperty(value = "音频(限1个)", hidden = false,
        example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp3")
    @URL
    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")
    @URL
    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;
 
}