1
2
3
4
5 package gboat2.web.model;
6
7 import gboat2.base.core.annotation.Field;
8 import gboat2.base.core.annotation.Relation;
9 import gboat2.base.core.annotation.RelationType;
10 import gboat2.base.core.annotation.Relations;
11
12
13
14
15
16
17
18 @Relations(base = UserGroupOrganMapper.class, value = {
19 @Relation(refer = User.class, baseColumn = "userId", referColumn = "userId", type = RelationType.RIGHT),
20 @Relation(refer = Role.class, baseColumn = "roleId", referColumn = "roleId", type = RelationType.RIGHT),
21 @Relation(refer = Group.class, baseColumn = "groupId", referColumn = "groupId", type = RelationType.RIGHT)
22 })
23 public class UserRoleGroupOrganVO extends UserGroupOrganMapper{
24
25 @Field(clazz = User.class)
26 private String loginId;
27
28
29 @Field(clazz = User.class)
30 private String userNameZh;
31
32
33 @Field(clazz = Role.class)
34 private String roleName;
35
36
37 @Field(clazz = Group.class)
38 private String groupCode;
39
40
41 @Field(clazz = Role.class)
42 private String roleCode;
43
44
45 @Field(clazz = Group.class)
46 private String groupName;
47
48 public void setRoleName(String roleName) {
49 this.roleName = roleName;
50 }
51 public String getRoleName() {
52 return roleName;
53 }
54 public String getGroupName() {
55 return groupName;
56 }
57 public void setGroupName(String groupName) {
58 this.groupName = groupName;
59 }
60 public String getLoginId() {
61 return loginId;
62 }
63 public void setLoginId(String loginId) {
64 this.loginId = loginId;
65 }
66 public String getUserNameZh() {
67 return userNameZh;
68 }
69 public void setUserNameZh(String userNameZh) {
70 this.userNameZh = userNameZh;
71 }
72
73 public String getGroupCode() {
74 return groupCode;
75 }
76
77 public void setGroupCode(String groupCode) {
78 this.groupCode = groupCode;
79 }
80
81 public String getRoleCode() {
82 return roleCode;
83 }
84
85 public void setRoleCode(String roleCode) {
86 this.roleCode = roleCode;
87 }
88
89 }