TopicUpdateRequest.java 1.53 KB
/*
 * @(#)TopicUpdateRequest.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.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 
 */
public class TopicUpdateRequest extends BaseUpdateRequest {
    
    /**
     * 主键 
     */
    @NotNull(message = "主键不能为空")
    private Long id;
    
    /**
     * 标题 
     */
    @Length(min=0, max=999, message = "标题长度不合法")
    private String title;
    
    /**
     * 内容 
     */
    @Length(min=0, max=999, message = "内容长度不合法")
    private String content;
    
    
    public Long getId() {
        return id;
    }

    public void setId(Long  id) {
        this.id = id;
    }
    
    public String getTitle() {
        return title;
    }

    public void setTitle(String  title) {
        this.title = title;
    }
    
    public String getContent() {
        return content;
    }

    public void setContent(String  content) {
        this.content = content;
    }
    
}