| | |
| | | package com.gkhy.assess.system.domain; |
| | | |
| | | 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 com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | import com.gkhy.assess.common.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import lombok.experimental.Accessors; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Accessors(chain = true) |
| | | @TableName("sys_region") |
| | | @ApiModel(value = "SysRegion对象", description = "系统地区表") |
| | | public class SysRegion implements Serializable { |
| | | public class SysRegion extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @NotBlank(message = "地区名称不能为空") |
| | | @Length(min = 1, max = 20, message = "地区名称不能超过20个字符") |
| | | @ApiModelProperty("地区名称") |
| | | @TableField("name") |
| | | private String name; |
| | |
| | | @TableField("region_type") |
| | | private Integer regionType; |
| | | |
| | | @Version |
| | | @ApiModelProperty("乐观锁") |
| | | @TableField("version") |
| | | private Integer version; |
| | | |
| | | @TableField(exist = false) |
| | | private List<SysRegion> children; |
| | | |