package com.njzscloud.dispose.sys.resource.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.njzscloud.common.security.permission.RolePermission;
import com.njzscloud.dispose.sys.resource.pojo.entity.ResourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统资源表
 */
@Mapper
public interface ResourceMapper extends BaseMapper<ResourceEntity> {
    List<String> occupied(@Param(Constants.WRAPPER) QueryWrapper<Object> ew);

    List<ResourceEntity> listRoleRes(@Param("ew") QueryWrapper<?> ew);

    List<RolePermission> loadPermission();

}
