EventUpdateRequest.java 4.45 KB
/*
 * @(#)EventUpdateRequest.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.BaseUpdateRequest;
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 EventUpdateRequest extends BaseUpdateRequest {
    
    /**
     * 主键 
     */
   /* @NotNull(message = "主键不能为空")*/
    private Long id;

    /**
     * APP事件ID
     *
     */

    @Length(min=0, max=50, message = "App事件ID长度不合法")
    private String appEventId;

    /**
     * 用户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;
    /**
     *上报状态
     */
    private Boolean isStatus;
    /**
     * 处理意见 
     */
    @Length(min=0, max=4000, message = "处理意见长度不合法")
    private String handleSuggestion;

    public Boolean getIsStatus() {
        return isStatus;
    }

    public void setIsStatus(Boolean status) {
        isStatus = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long  id) {
        this.id = id;
    }

    public String getAppEventId() {
        return appEventId;
    }

    public void setAppEventId(String appEventId) {
        this.appEventId = appEventId;
    }

    public Boolean getHandled() {
        return isHandled;
    }

    public void setHandled(Boolean handled) {
        isHandled = handled;
    }

    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;
    }
    
}