package org.jeecg.modules.dnc.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.jeecg.modules.dnc.entity.Button;
|
|
import java.util.List;
|
|
public interface ButtonMapper extends BaseMapper<Button> {
|
|
/**
|
* 获取系统按钮的权限
|
* @return
|
*/
|
List<Button> getButtonPerms(@Param("userId") String userId);
|
|
/**
|
* 获取用户对应角色的菜单操作权限
|
* @param userId
|
* @return
|
*/
|
List<Button> getMenuButtonPerms(@Param("userId") String userId, @Param("menuUrl") String menuUrl);
|
|
/**
|
* 获取用户对应角色的对象操作权限
|
* @param userId
|
* @return
|
*/
|
List<Button> getObjectButtonPerms(@Param("userId") String userId, @Param("objectPerm") String objectPerm);
|
}
|