AnnouncementSharePushMessageRequest.java 1.46 KB
/*
 * @(#)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);
    }
}