package com.cool.store.request.visit;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class StoreVisitReservationCreateRequest {

    @ApiModelProperty("意向城市ID")
    @NotNull(message = "意向开店城市不能为空")
    private Long intentCityId;

    @ApiModelProperty("联系人姓名")
    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "请输入正确的手机号")
    private String mobile;

    @ApiModelProperty("预约看店时间")
    @NotNull(message = "预约看店时间不能为空")
    @Future(message = "预约时间必须晚于当前时间")
    private Date visitTime;

    @ApiModelProperty("当前跟进人员")
    private String currentFollowUser;

    @ApiModelProperty("备注")
    private String remark;
}
