package com.ruoyi.system.model; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.util.List; /** *

* 省市管理 *

* * @author xiaochen * @since 2024-02-29 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("t_region") @ApiModel(value="TRegion对象", description="省市管理") public class TRegion implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty(value = "城市名称") @TableField("name") private String name; @ApiModelProperty(value = "城市代码") @TableField("code") private String code; @ApiModelProperty(value = "城市code") @TableField("cityCode") private String cityCode; @ApiModelProperty(value = "父级ID") @TableField("parentId") private Long parentId; @ApiModelProperty(value = "英文名称") @TableField("english") private String english; @ApiModelProperty(value = "首字母") @TableField("initial") private String initial; @TableField(exist = false) private List children; }