Menu.java
2.61 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.huaheng.pc.system.menu.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
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.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
import lombok.Data;
/**
* 角色对象 sys_menu
*
* @author huaheng
*/
@Data
@TableName(value = "sys_menu")
public class Menu
{
private static final long serialVersionUID = 1L;
/** 菜单ID */
@TableId(value = "id",type = IdType.AUTO)
private Integer id;
/** 菜单名称 */
@TableField
private String menuName;
/** 父菜单名称 */
@TableField
private String parentName;
/** 父菜单ID */
@TableField
private Integer parentId;
/** 显示顺序 */
@TableField
private String orderNum;
/** 菜单URL */
@TableField
private String url;
/** 类型:0目录,1菜单,2按钮 */
@TableField
private String menuType;
/** 手机端菜单*/
@TableField
private Boolean menuMobile;
/** 显示 */
@TableField
private Boolean visible;
/** 权限字符串 */
@TableField
private String perms;
/** 菜单图标 */
@TableField
private String icon;
/** 仓库Id */
@TableField
private Integer warehouseId;
/** 仓库编码 */
@TableField
private String warehouseCode;
/** 创建者 */
@TableField
private String createBy;
/** 创建时间 */
@TableField
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/** 更新者 */
@TableField
private String updateBy;
/** 更新时间 */
@TableField
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/** 备注 */
@TableField
// @TableField(exist=false)
private String remark;
/** 请求参数 */
private Map<String, Object> params;
/** 搜索值 */
private String searchValue;
/** 子菜单 */
private List<Menu> children = new ArrayList<Menu>();
@Override
public String toString()
{
return "Menu [id=" + id + ", menuName=" + menuName + ", warehouseId=" + warehouseId + ", warehouseCode=" + warehouseCode
+ ", parentName=" + parentName + ", parentId=" + parentId + ", orderNum=" + orderNum + ", url=" + url
+ ", menuType=" + menuType + ", visible=" + visible + ", perms=" + perms + ", icon=" + icon + ", children=" + children + "]";
}
}