package cn.stylefeng.guns.sys.modular.rest.entity;
|
|
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 java.io.Serializable;
|
|
/**
|
* <p>
|
* 角色和菜单关联表
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2019-04-01
|
*/
|
@TableName("sys_relation")
|
public class RestRelation implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "relation_id", type = IdType.ID_WORKER)
|
private Long relationId;
|
|
/**
|
* 菜单id
|
*/
|
@TableField("menu_id")
|
private Long menuId;
|
|
/**
|
* 角色id
|
*/
|
@TableField("role_id")
|
private Long roleId;
|
|
|
public Long getRelationId() {
|
return relationId;
|
}
|
|
public void setRelationId(Long relationId) {
|
this.relationId = relationId;
|
}
|
|
public Long getMenuId() {
|
return menuId;
|
}
|
|
public void setMenuId(Long menuId) {
|
this.menuId = menuId;
|
}
|
|
public Long getRoleId() {
|
return roleId;
|
}
|
|
public void setRoleId(Long roleId) {
|
this.roleId = roleId;
|
}
|
|
@Override
|
public String toString() {
|
return "Relation{" +
|
"relationId=" + relationId +
|
", menuId=" + menuId +
|
", roleId=" + roleId +
|
"}";
|
}
|
}
|