package shop.alien.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import shop.alien.entity.store.StorePlatformMenu;
import shop.alien.entity.store.vo.StorePlatformMenuVo;

import java.util.List;

/**
 * 商家PC菜单权限表 Mapper 接口
 *
 * @author system
 * @since 2025-01-XX
 */
@Mapper
public interface StorePlatformMenuMapper extends BaseMapper<StorePlatformMenu> {

    IPage<StorePlatformMenuVo> selectList(IPage<StorePlatformMenuVo> store, LambdaQueryWrapper<StorePlatformMenuVo> queryWrapper);

    /**
     * 根据角色ID查询权限菜单列表
     *
     * @param roleId 角色ID
     * @return 菜单列表
     */
    List<StorePlatformMenu> selectMenusByRoleId(@Param("roleId") Long roleId);
}

