| | |
| | | package com.whyc.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import org.apache.ibatis.type.Alias; |
| | | |
| | | /** |
| | | * 用户角色表 |
| | | */ |
| | | @Alias("UserRole") |
| | | @TableName( schema = "`db_3.5mw_web`",value = "tb_user_role") |
| | | public class UserRole { |
| | | |
| | | private Integer id; |
| | | private Integer userId; |
| | | private Integer roleId; |
| | | |
| | | @TableField(exist = false) |
| | | private User user; |
| | | @TableField(exist = false) |
| | | private Role role; |
| | | @TableField(exist = false) |
| | | private String userIds; |
| | | @TableField(exist = false) |
| | | private String userNames; |
| | | @TableField(exist = false) |
| | | private String roleName; |
| | | @TableField(exist = false) |
| | | private Integer userCount; |
| | | |
| | | public UserRole() { |
| | | } |
| | | |
| | | public UserRole(Integer userId, Integer roleId) { |
| | | this.userId = userId; |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Integer getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Integer userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Integer getRoleId() { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Integer roleId) { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public User getUser() { |
| | | return user; |
| | |
| | | public void setRole(Role role) { |
| | | this.role = role; |
| | | } |
| | | |
| | | public String getUserIds() { |
| | | return userIds; |
| | | } |
| | | |
| | | public void setUserIds(String userIds) { |
| | | this.userIds = userIds; |
| | | } |
| | | |
| | | public String getUserNames() { |
| | | return userNames; |
| | | } |
| | | |
| | | public void setUserNames(String userNames) { |
| | | this.userNames = userNames; |
| | | } |
| | | |
| | | public String getRoleName() { |
| | | return roleName; |
| | | } |
| | | |
| | | public void setRoleName(String roleName) { |
| | | this.roleName = roleName; |
| | | } |
| | | |
| | | public Integer getUserCount() { |
| | | return userCount; |
| | | } |
| | | |
| | | public void setUserCount(Integer userCount) { |
| | | this.userCount = userCount; |
| | | } |
| | | } |