package com.ghy.customer.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author clunt
 * 消费者地址
 */
@Data
public class CustomerAddress extends BaseEntity {

    @Excel(name = "消费者地址id", cellType = Excel.ColumnType.NUMERIC)
    private Long customerAddressId;

    private List<Long> customerAddressIds;

    @Excel(name = "消费者id", cellType = Excel.ColumnType.NUMERIC)
    private Long customerId;

    @Excel(name = "收件人姓名", cellType = Excel.ColumnType.STRING)
    private String name;

    @Excel(name = "收件人手机号", cellType = Excel.ColumnType.STRING)
    private String phone;

    @Excel(name = "省", cellType = Excel.ColumnType.NUMERIC)
    private Long provinceId;

    private String provinceName;

    private String cityName;

    private String countryName;

    private String streetName;

    @Excel(name = "市", cellType = Excel.ColumnType.NUMERIC)
    private Long cityId;

    @Excel(name = "区", cellType = Excel.ColumnType.NUMERIC)
    private Long countryId;

    /*街道id*/
    private Long streetId;

    @Excel(name = "详细地址")
    private String address;

    @Excel(name = "是否默认地址,0.普通地址, 1.默认地址", cellType = Excel.ColumnType.STRING)
    private Integer isDefault;

    @Excel(name = "是否有效,0.有效, 1.无效", cellType = Excel.ColumnType.STRING)
    private Integer status;

    private List<Long> districtIds;

    private List<Long> cityIds;

    private List<Long> streetIds;

    private Boolean needNameFlag = false;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 纬度
     */
    private BigDecimal latitude;

    /*是否删除id*/
    private Long isDelete;
}
