package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 省市区三级联动
|
* </p>
|
*
|
* @author 吕雪
|
* @since 2020-06-02
|
*/
|
@TableName("t_region")
|
public class TRegion extends Model<TRegion> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 城市名称
|
*/
|
private String name;
|
private String code;
|
private String citycode;
|
/**
|
* 父级ID
|
*/
|
@TableField("parent_id")
|
private Integer parentId;
|
/**
|
* 英文名称
|
*/
|
private String english;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public void setCode(String code) {
|
this.code = code;
|
}
|
|
public String getCitycode() {
|
return citycode;
|
}
|
|
public void setCitycode(String citycode) {
|
this.citycode = citycode;
|
}
|
|
public Integer getParentId() {
|
return parentId;
|
}
|
|
public void setParentId(Integer parentId) {
|
this.parentId = parentId;
|
}
|
|
public String getEnglish() {
|
return english;
|
}
|
|
public void setEnglish(String english) {
|
this.english = english;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "TRegion{" +
|
"id=" + id +
|
", name=" + name +
|
", code=" + code +
|
", citycode=" + citycode +
|
", parentId=" + parentId +
|
", english=" + english +
|
"}";
|
}
|
}
|