package com.zbkj.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "PlaceRegisterVo对象", description = "PlaceRegisterVo对象")
public class PlaceRegisterVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "记录ID")
    private Integer id;
    /**
     * 联系人姓名
     */
    @ApiModelProperty(value = "预约人")
    private String userName;
    /**
     * 联系电话
     */
    @ApiModelProperty(value = "预约人手机")
    private String cellPhone;
    /**
     * 参加人数
     */
    @ApiModelProperty(value = "参加人数")
    private Integer attendNum;
    /**
     * 预约指定日期
     */
    @ApiModelProperty(value = "预约指定日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subscribeDate;
    /**
     * 状态【0:预约待确认,1:预约成功,2:预约取消】
     */
    @ApiModelProperty(value = "状态：0预约待确认,1:预约成功,2:预约取消")
    private Integer status;
    /**
     * 取消时间
     */
    @ApiModelProperty(value = "取消时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date cancelData;
    /**
     * 取消原因类型时其他时，输入的具体原因
     */
    @ApiModelProperty(value = "取消原因")
    private String cancelReason;
    /**
     * 报名时间
     */
    @ApiModelProperty(value = "报名时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

}
