package com.pj.project.re_role_menu;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * Model: re_role_menu -- app用户菜单中间表
 * @author qzy 
 */
@Data
@Accessors(chain = true)
@TableName(ReRoleMenu.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class ReRoleMenu extends Model<ReRoleMenu> implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "re_role_menu";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "re-role-menu";
	public static final String PERMISSION_CODE_ADD = "re-role-menu-add";
	public static final String PERMISSION_CODE_EDIT = "re-role-menu-edit";
	public static final String PERMISSION_CODE_DEL = "re-role-menu-del";

	public ReRoleMenu(Long appRoleId, Long appMenuId) {
		this.appRoleId = appRoleId;
		this.appMenuId = appMenuId;
	}


// ---------- 表中字段 ----------
	/**
	 * 主键 
	 */
	@TableId(type = IdType.AUTO)
	private Long id;	

	/**
	 * 职务id
	 */
	private Long appRoleId;	

	/**
	 * app菜单id 
	 */
	private Long appMenuId;	





	


}
