提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.modular.rest.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.IdType; |
|
4 |
import com.baomidou.mybatisplus.annotation.TableField; |
|
5 |
import com.baomidou.mybatisplus.annotation.TableId; |
|
6 |
import com.baomidou.mybatisplus.annotation.TableName; |
|
7 |
|
|
8 |
import java.io.Serializable; |
|
9 |
|
|
10 |
/** |
|
11 |
* <p> |
|
12 |
* 角色和菜单关联表 |
|
13 |
* </p> |
|
14 |
* |
|
15 |
* @author stylefeng |
|
16 |
* @since 2019-04-01 |
|
17 |
*/ |
|
18 |
@TableName("sys_relation") |
|
19 |
public class RestRelation implements Serializable { |
|
20 |
|
|
21 |
private static final long serialVersionUID = 1L; |
|
22 |
|
|
23 |
/** |
|
24 |
* 主键 |
|
25 |
*/ |
|
26 |
@TableId(value = "relation_id", type = IdType.ID_WORKER) |
|
27 |
private Long relationId; |
|
28 |
|
|
29 |
/** |
|
30 |
* 菜单id |
|
31 |
*/ |
|
32 |
@TableField("menu_id") |
|
33 |
private Long menuId; |
|
34 |
|
|
35 |
/** |
|
36 |
* 角色id |
|
37 |
*/ |
|
38 |
@TableField("role_id") |
|
39 |
private Long roleId; |
|
40 |
|
|
41 |
|
|
42 |
public Long getRelationId() { |
|
43 |
return relationId; |
|
44 |
} |
|
45 |
|
|
46 |
public void setRelationId(Long relationId) { |
|
47 |
this.relationId = relationId; |
|
48 |
} |
|
49 |
|
|
50 |
public Long getMenuId() { |
|
51 |
return menuId; |
|
52 |
} |
|
53 |
|
|
54 |
public void setMenuId(Long menuId) { |
|
55 |
this.menuId = menuId; |
|
56 |
} |
|
57 |
|
|
58 |
public Long getRoleId() { |
|
59 |
return roleId; |
|
60 |
} |
|
61 |
|
|
62 |
public void setRoleId(Long roleId) { |
|
63 |
this.roleId = roleId; |
|
64 |
} |
|
65 |
|
|
66 |
@Override |
|
67 |
public String toString() { |
|
68 |
return "Relation{" + |
|
69 |
"relationId=" + relationId + |
|
70 |
", menuId=" + menuId + |
|
71 |
", roleId=" + roleId + |
|
72 |
"}"; |
|
73 |
} |
|
74 |
} |