| package com.zy.system.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
|   | 
| import java.io.Serializable; | 
|   | 
| @TableName("sys_role_resource") | 
| public class RoleResource implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 编号 | 
|      */ | 
|     @TableId(value = "id", type = IdType.AUTO) | 
|     private Long id; | 
|   | 
|     /** | 
|      * 角色 | 
|      */ | 
|     @TableField("role_id") | 
|     private Long roleId; | 
|   | 
|     /** | 
|      * 资源 | 
|      */ | 
|     @TableField("resource_id") | 
|     private Long resourceId; | 
|   | 
|     public Long getId() { | 
|         return id; | 
|     } | 
|   | 
|     public void setId(Long id) { | 
|         this.id = id; | 
|     } | 
|   | 
|     public Long getRoleId() { | 
|         return roleId; | 
|     } | 
|   | 
|     public void setRoleId(Long roleId) { | 
|         this.roleId = roleId; | 
|     } | 
|   | 
|     public Long getResourceId() { | 
|         return resourceId; | 
|     } | 
|   | 
|     public void setResourceId(Long resourceId) { | 
|         this.resourceId = resourceId; | 
|     } | 
|   | 
|   | 
| } |