package com.xinelu.manage.vo.receiveAddressInfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import com.xinelu.manage.vo.sysarea.SysAreaVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * Create by 2022/10/25 10:36
 */
@Data
public class ReceiveAddressInfoVO implements Serializable {
    private static final long serialVersionUID = -4835574485358136057L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    @Excel(name = "会员id")
    @NotNull(message = "会员id为空", groups = {Insert.class, Update.class})
    private Long patientId;

    /**
     * 微信openid
     */
    @ApiModelProperty(value = "微信openid")
    @Excel(name = "微信openid")
    private String openid;

    /**
     * 微信unionid
     */
    @ApiModelProperty(value = "微信unionid")
    @Excel(name = "微信unionid")
    private String unionid;

    /**
     * 收货人名称
     */
    @ApiModelProperty(value = "收货人名称")
    @Excel(name = "收货人名称")
    @NotBlank(message = "收货人名称为空", groups = {Insert.class, Update.class})
    @Length(max = 30, message = "收货人名称不能超过30位", groups = {Insert.class, Update.class})
    private String receiveName;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话")
    @NotBlank(message = "联系电话不能为空", groups = {Insert.class, Update.class})
    @Length(max = 11, message = "联系电话不能超过11位", groups = {Insert.class, Update.class})
    private String receivePhone;

    /**
     * 收货人地址
     */
    @ApiModelProperty(value = "收货人地址")
    @Excel(name = "收货人地址")
    @NotBlank(message = "收货人地址不能为空", groups = {Insert.class, Update.class})
    @Length(max = 50, message = "收货人地址不能超过50位", groups = {Insert.class, Update.class})
    private String receiveAddress;

    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    @Excel(name = "区域编码")
    @Length(max = 20, message = "区域编码不能超过20位", groups = {Insert.class, Update.class})
    private String areaCode;

    /**
     * 区域集合
     */
    List<SysAreaVO> sysAreaVOList;

    /**
     * 省名称
     */
    private String provinceName;

    /**
     * 省区域编码
     */
    private String provinceCode;

    /**
     * 市名称
     */
    private String cityName;

    /**
     * 市区域编码
     */
    private String cityCode;

    /**
     * 区域名称
     */
    private String regionName;

    /**
     * 区区域编码
     */
    private String regionCode;

    /**
     * 街道名称
     */
    private String streetName;

    /**
     * 街道区域编码
     */
    private String streetCode;

    /**
     * 区域名称
     */
    private String areaName;

    /**
     * 默认收货地址标识，0：否，1：是
     */
    private Integer defaultAddressFlag;
}
