package com.ruoyi.controller.req;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddressUpdateReq {

    @ApiModelProperty(value = "用户地址id", required = true)
    private Long id;

    @NotBlank(message = "收货人姓名不能为空")
    @ApiModelProperty(value = "收货人姓名", required = true)
    private String username;

    @NotBlank(message = "收货人联系方式不能为空")
    @ApiModelProperty(value = "收货人联系方式", required = true)
    private String mobile;

    private String areaCode;

    @ApiModelProperty(value = "省份名称", required = true)
    private String province;

    @ApiModelProperty(value = "城市名称")
    private String city;

    @ApiModelProperty(value = "区域名称")
    private String area;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "详细地址")
    private String detail;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "是否默认")
    @NotNull(message = "是否默认不能为空")
    private Integer isDefault;
}
