EventCreateRequest.java 3.68 KB
/*
 * @(#)EventCreateRequest.java
 *
 * Copyright (c) 2014-2017  xiniunet 版权所有
 * 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.BaseRequest;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 创建事件的请求.
 * @author xiniunet
 */
public class EventCreateRequest extends BaseRequest {
    
    /**
     * 用户ID
     * 
     */
    
    private Long userId;
    
    /**
     * 类型
     * STATION:车站事件
CARRIAGE:车厢事件
GOOD:好人好事
     */
    
    @Length(min=0, max=100, message = "类型长度不合法")
    private String type;
    
    /**
     * 事件描述
     * 
     */
    
    @Length(min=0, max=500, message = "事件描述长度不合法")
    private String description;
    
    /**
     * 日期ID
     * 
     */
    
    @Length(min=0, max=100, message = "日期ID长度不合法")
    private String dateId;
    
    /**
     * 时间
     * 
     */
    
    private Date eventTime;
    
    /**
     * 地点
     * 
     */
    
    @Length(min=0, max=100, message = "地点长度不合法")
    private String eventLocation;
    
    /**
     * 车站
     * 
     */
    
    @Length(min=0, max=100, message = "车站长度不合法")
    private String station;
    
    /**
     * 下一站
     * 
     */
    
    @Length(min=0, max=100, message = "下一站长度不合法")
    private String nextStation;
    
    /**
     * 是否已处理
     * 
     */
    
    private Boolean isHandled;
    
    /**
     * 处理意见
     * 
     */
    
    @Length(min=0, max=4000, message = "处理意见长度不合法")
    private String handleSuggestion;
    

    
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getDateId() {
        return dateId;
    }

    public void setDateId(String dateId) {
        this.dateId = dateId;
    }
    
    public Date getEventTime() {
        return eventTime;
    }

    public void setEventTime(Date eventTime) {
        this.eventTime = eventTime;
    }
    
    public String getEventLocation() {
        return eventLocation;
    }

    public void setEventLocation(String eventLocation) {
        this.eventLocation = eventLocation;
    }
    
    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }
    
    public String getNextStation() {
        return nextStation;
    }

    public void setNextStation(String nextStation) {
        this.nextStation = nextStation;
    }
    
    public Boolean getIsHandled() {
        return isHandled;
    }

    public void setIsHandled(Boolean isHandled) {
        this.isHandled = isHandled;
    }
    
    public String getHandleSuggestion() {
        return handleSuggestion;
    }

    public void setHandleSuggestion(String handleSuggestion) {
        this.handleSuggestion = handleSuggestion;
    }
    
}