TaskProcessCreateRequest.java
3.59 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
package com.xiniunet.task.request;
import com.alibaba.fastjson.JSON;
import com.xiniunet.foundation.domain.FileAttachmentBind;
import com.xiniunet.framework.base.BaseRequest;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
*
* Created on 2014/10/30.
* @since 1.0.0
*/
public class TaskProcessCreateRequest extends BaseRequest {
/**
* 任务id
*/
private Long id;
/**
* 是否匿名
*/
private Boolean anonymous =false;
/**
* 评价内容
*/
@NotNull(message = "评价内容不能为空")
private String content;
/**
* 消息内容
*/
private String messageContent;
/**
* 父评论用户ID
*/
private Long parentUserId;
/**
* 父评论ID
*/
private Long parentId;
/**
* 业务ID(进度传taskId,评论传进度的id)
*/
private Long businessId;
/**
* 业务类型(TASK 、TASK_PROCESS)
*/
private String businessType;
/**
* 是否需要推送消息。
*/
private Boolean needPushMessage=true;
/**
* 是否是修改
*/
private Boolean isUpdate=false;
public Boolean getIsUpdate() {
return isUpdate;
}
public void setIsUpdate(Boolean update) {
isUpdate = update;
}
/**
* 附件集合
*/
private List<FileAttachmentBind> attachmentList;
/**
* @的人的id集合
*/
private List<Long> atUserIdList;
public String getMessageContent() {
return messageContent;
}
public void setMessageContent(String messageContent) {
this.messageContent = messageContent;
}
public Long getParentUserId() {
return parentUserId;
}
public void setParentUserId(Long parentUserId) {
this.parentUserId = parentUserId;
}
public String getBusinessType() {
return businessType;
}
public void setBusinessType(String businessType) {
this.businessType = businessType;
}
public Long getBusinessId() {
return businessId;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
}
public List<Long> getAtUserIdList() {
return atUserIdList;
}
public void setAtUserIdList(List<Long> atUserIdList) {
this.atUserIdList = atUserIdList;
}
public void setAtUserIdList(String atUserIdList) {
this.atUserIdList =JSON.parseArray(atUserIdList, Long.class);
}
public Boolean getNeedPushMessage() {
return needPushMessage;
}
public void setNeedPushMessage(Boolean needPushMessage) {
this.needPushMessage = needPushMessage;
}
public List<FileAttachmentBind> getAttachmentList() {
return attachmentList;
}
public void setAttachmentList(List<FileAttachmentBind> attachmentList) {
this.attachmentList = attachmentList;
}
public void setAttachmentList(String attachmentList) {
this.attachmentList = JSON.parseArray(attachmentList, FileAttachmentBind.class);
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Boolean getAnonymous() {
return anonymous;
}
public void setAnonymous(Boolean anonymous) {
this.anonymous = anonymous;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
}