package com.zbkj.common.request;

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.util.Date;

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

    @ApiModelProperty(value = "联系人姓名")
    private String userName;

    @ApiModelProperty(value = "联系人手机号")
    private String cellPhone;

    @ApiModelProperty(value = "预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subscribeDate;

    @ApiModelProperty(value = "人数")
    private String attendNum;

    @ApiModelProperty(value = "状态：0:预约待确认,1:预约成功,2:预约取消")
    private String status;

    @ApiModelProperty(value = "取消原因")
    private String cancelReason;

}
