package com.xiaoniu.system.platformsettings.region.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 省市区
 * </p>
 *
 * @author haoxuyang
 * @since 2024-11-01 02:12:51
 */
@Getter
@Setter
@TableName("tb_region")
@Schema(name = "TbRegion", description = "省市区")
public class TbRegion implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @Schema(description = "上级id")
    private Integer pid;

    @Schema(description = "简称")
    private String shortname;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "全程")
    private String mergerName;

    @Schema(description = "类型（1-省， 2-市， 3-区县）")
    private Byte type;

    @Schema(description = "拼音")
    private String pinyin;

    @Schema(description = "电话区号")
    private String phoneCode;

    @Schema(description = "邮编")
    private String code;

    @Schema(description = "拼音首字母")
    private String first;

    @Schema(description = "经度")
    private String lng;

    @Schema(description = "纬度")
    private String lat;
}
