mitao
2025-01-20 93fec20f3cf9d7801eeaa10acef4687ed110d435
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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;
}