package com.zzg.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 lombok.Data;
|
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import java.io.Serializable;
|
|
/**
|
* @TableName sys_layer
|
*/
|
@Data
|
@TableName(value = "sys_layer", autoResultMap = true)
|
public class SysLayer implements Serializable {
|
|
public static final Integer LAYER_NODE_TYPE_CODE = 0;
|
public static final Integer LAYER_TYPE_CODE = 1;
|
public static final String ROOT_NODE_PID_CODE = "0";
|
public static final Integer LAYER_SIZE = 0;
|
public static final Integer LAYER_CHECKED = 1;
|
|
/**
|
* ID
|
*/
|
@TableId(type = IdType.ASSIGN_UUID)
|
private String id;
|
|
/**
|
* 类型 0:节点 1: 图层
|
*/
|
@TableField(value = "type")
|
@NotNull(message = "节点类型不能为空")
|
private Integer type;
|
|
/**
|
* 图层名
|
*/
|
@TableField(value = "name")
|
@NotEmpty(message = "图层名字不能为空")
|
private String name;
|
|
@TableField(value = "layer_name")
|
private String layerName;
|
|
/**
|
* 地址
|
*/
|
@TableField(value = "url")
|
private String url;
|
|
/**
|
* 类型
|
*/
|
@TableField(value = "url_type")
|
private String urlType;
|
|
/**
|
* 父级id
|
*/
|
@TableField(value = "parent_id")
|
private String parentId;
|
|
@TableField(value = "whether_checked")
|
private Integer whetherChecked;
|
|
@TableField(value = "whether_image")
|
private Integer whetherImage;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
}
|