package com.njzscloud.supervisory.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njzscloud.common.security.support.EndpointResource;
import com.njzscloud.common.security.support.MenuResource;
import com.njzscloud.supervisory.resource.pojo.SysResourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统资源表
 */
@Mapper
public interface SysResourceMapper extends BaseMapper<SysResourceEntity> {

    List<MenuResource> listUserMenu(@Param("userId") Long userId);

    List<EndpointResource> listUserEndpoint(@Param("userId") Long userId);
}
