|
1
2
|
package com.huaheng.pc.system.user.domain;
|
|
3
4
5
6
7
8
|
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;
|
|
9
10
11
12
13
|
/**
* 用户和角色关联 sys_user_role
*
* @author huaheng
*/
|
|
14
15
|
@Data
@TableName(value = "sys_user_role")
|
|
16
17
18
|
public class UserRole
{
/** ID */
|
|
19
|
@TableId(value = "id",type = IdType.AUTO)
|
|
20
21
|
private Integer id;
/** 用户ID */
|
|
22
|
@TableField
|
|
23
24
|
private Integer userId;
/** 角色ID */
|
|
25
|
@TableField
|
|
26
27
28
29
30
31
32
33
34
|
private Integer roleId;
@Override
public String toString()
{
return "UserRole [id=" + id + ", userId=" + userId + ", roleId=" + roleId + "]";
}
}
|