package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
* 行政区域数据
|
* @author pzb
|
* @Date 2022/2/9 10:00
|
*/
|
@Data
|
@TableName("t_region")
|
public class Region {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@TableField("id")
|
private Integer id;
|
/**
|
* 城市名称
|
*/
|
@TableField("name")
|
@ApiModelProperty("省/市 名称")
|
private String name;
|
/**
|
* 城市code
|
*/
|
@TableField("code")
|
@ApiModelProperty("省/市 编码")
|
private String code;
|
/**
|
* 父级id
|
*/
|
@TableField("parent_id")
|
private Integer parentId;
|
}
|