package com.izouma.dingdong.dto;

import com.izouma.dingdong.enums.AddressTag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "Address", description = "收获地址记录")
public class AddressDTO {
    @ApiModelProperty(value = "用户Id", name = "userId")
    private Long userId;

    @ApiModelProperty(value = "联系人", name = "name")
    private String name;

    @ApiModelProperty(value = "女士/先生", name = "sex")
    private String sex;

    @ApiModelProperty(value = "电话", name = "phone")
    private String phone;

    @ApiModelProperty(value = "详细地址", name = "addressName")
    private String addressName;

    @ApiModelProperty(value = "门牌号", name = "number")
    private String number;

    @ApiModelProperty(value = "标签", name = "addressTag")
    private AddressTag addressTag;

    @ApiModelProperty("是否选为默认地址")
    private Boolean isDefault;

    @ApiModelProperty(value = "经度", name = "longitude")
    private Double longitude;

    @ApiModelProperty(value = "纬度", name = "latitude")
    private Double latitude;

    @ApiModelProperty(value = "距离", name = "distance")
    private Double distance;

}
