EventUpdateRequest.java
4.45 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
/*
* @(#)EventUpdateRequest.java
*
* Copyright (c) 2014-2017 xiniunet 版权所有
* xiniunet. All rights reserved.
*
* This software is the confidential and proprietary
* information of xiniunet.
* ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only
* in accordance with the terms of the contract agreement
* you entered into with xiniunet.
*/
package com.xiniunet.railway.request;
import com.xiniunet.framework.base.BaseUpdateRequest;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 修改事件的请求.
* @author xiniunet
*/
public class EventUpdateRequest extends BaseUpdateRequest {
/**
* 主键
*/
/* @NotNull(message = "主键不能为空")*/
private Long id;
/**
* APP事件ID
*
*/
@Length(min=0, max=50, message = "App事件ID长度不合法")
private String appEventId;
/**
* 用户ID
*/
private Long userId;
/**
* 类型 STATION:车站事件
CARRIAGE:车厢事件
GOOD:好人好事
*/
@Length(min=0, max=100, message = "类型长度不合法")
private String type;
/**
* 事件描述
*/
@Length(min=0, max=500, message = "事件描述长度不合法")
private String description;
/**
* 日期ID
*/
@Length(min=0, max=100, message = "日期ID长度不合法")
private String dateId;
/**
* 时间
*/
private Date eventTime;
/**
* 地点
*/
@Length(min=0, max=100, message = "地点长度不合法")
private String eventLocation;
/**
* 车站
*/
@Length(min=0, max=100, message = "车站长度不合法")
private String station;
/**
* 下一站
*/
@Length(min=0, max=100, message = "下一站长度不合法")
private String nextStation;
/**
* 是否已处理
*/
private Boolean isHandled;
/**
*上报状态
*/
private Boolean isStatus;
/**
* 处理意见
*/
@Length(min=0, max=4000, message = "处理意见长度不合法")
private String handleSuggestion;
public Boolean getIsStatus() {
return isStatus;
}
public void setIsStatus(Boolean status) {
isStatus = status;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getAppEventId() {
return appEventId;
}
public void setAppEventId(String appEventId) {
this.appEventId = appEventId;
}
public Boolean getHandled() {
return isHandled;
}
public void setHandled(Boolean handled) {
isHandled = handled;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDateId() {
return dateId;
}
public void setDateId(String dateId) {
this.dateId = dateId;
}
public Date getEventTime() {
return eventTime;
}
public void setEventTime(Date eventTime) {
this.eventTime = eventTime;
}
public String getEventLocation() {
return eventLocation;
}
public void setEventLocation(String eventLocation) {
this.eventLocation = eventLocation;
}
public String getStation() {
return station;
}
public void setStation(String station) {
this.station = station;
}
public String getNextStation() {
return nextStation;
}
public void setNextStation(String nextStation) {
this.nextStation = nextStation;
}
public Boolean getIsHandled() {
return isHandled;
}
public void setIsHandled(Boolean isHandled) {
this.isHandled = isHandled;
}
public String getHandleSuggestion() {
return handleSuggestion;
}
public void setHandleSuggestion(String handleSuggestion) {
this.handleSuggestion = handleSuggestion;
}
}