package com.bonus.common.biz.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author bonus
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseAddress extends BaseEntity {

    @Excel(name = "id")
    private Long id;

    @Excel(name = "平台id")
    private Long platformId;

    @Excel(name = "编码")
    private String code;

    @Excel(name = "父级编码")
    private String parentCode;

    @Excel(name = "地区名称")
    private String name;

    @Excel(name = "纬度")
    private Double latitude;

    @Excel(name = "经度")
    private Double longitude;

    @Excel(name = "等级")
    private Integer level;

    @Excel(name = "区域划分")
    private Integer region;

    @Excel(name = "状态")
    private Integer status;

    @Excel(name = "创建时间")
    private LocalDateTime created;

    @Excel(name = "修改时间")
    private LocalDateTime modified;

    @Excel(name = "状态")
    private Integer yn;

}
