TaskProcessCreateRequest.java
2.56 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
package com.xiniunet.task.request;
import com.alibaba.fastjson.JSON;
import com.xiniunet.framework.base.BaseRequest;
import com.xiniunet.task.domain.FileAttachmentBind;
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;
/**
* 父评论ID
*/
private Long parentId;
/**
* 是否需要推送消息。
*/
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 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;
}
}