package com.ycl.platform.domain.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.ycl.platform.base.AbsEntity; import enumeration.general.RegionLevelEnum; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.experimental.Accessors; /** * 地域 * * @author xp * @since 2024-03-12 */ @Data @Accessors(chain = true) @TableName("t_region") @ApiModel(value = "Region对象", description = "地域") public class Region extends AbsEntity { private static final long serialVersionUID = 1L; @ApiModelProperty("区域全称") @TableField("full_name") private String fullName; @ApiModelProperty("区域简称") @TableField("simple_name") private String simpleName; @ApiModelProperty("地域级别") @TableField("region_level") private RegionLevelEnum regionLevel; @ApiModelProperty("市") @TableField("city") private String city; @ApiModelProperty("区县") @TableField("county") private String county; @ApiModelProperty("父级id") @TableField("parent_id") private Integer parentId; }