UserRole.java 773 Bytes
package com.huaheng.pc.system.user.domain;

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;

/**
 * 用户和角色关联 sys_user_role
 * 
 * @author huaheng
 */
@Data
@TableName(value = "sys_user_role")
public class UserRole
{
    /** ID */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /** 用户ID */
    @TableField
    private Integer userId;
    /** 角色ID */
    @TableField
    private Integer roleId;

    @Override
    public String toString()
    {
        return "UserRole [id=" + id + ", userId=" + userId + ", roleId=" + roleId + "]";
    }

}