AnnouncementSharePushMessageRequest.java
1.46 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
/*
* @(#)AnnouncementGetRequest.java
*
* Copyright (c) 2014-2017 版权所有
* 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.announcement.request;
import com.alibaba.fastjson.JSON;
import com.xiniunet.framework.base.BaseRequest;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 通过id查询公告通知的请求.
* @author
*/
public class AnnouncementSharePushMessageRequest extends BaseRequest {
/**
* 公告通知ID
*/
@NotNull(message = "公告通知ID不能为空")
private Long announcementId;
/**
* 分享给人的id集合
*/
@NotNull(message = "分享给人的id集合不能为空")
private List<Long> userIdList;
public Long getAnnouncementId() {
return announcementId;
}
public void setAnnouncementId(Long announcementId) {
this.announcementId = announcementId;
}
public List<Long> getUserIdList() {
return userIdList;
}
public void setUserIdList(List<Long> userIdList) {
this.userIdList = userIdList;
}
public void setUserIdList(String userIdList) {
this.userIdList = JSON.parseArray(userIdList,Long.class);
}
}