package com.jwipc.sys.mapper;

import com.jwipc.sys.entity.Resources;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.sys.model.po.MenuTreePO;
import com.jwipc.sys.model.po.TreeDatePO;
import com.jwipc.sys.model.query.ResourcesListQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统菜单 Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-27
 */
public interface ResourcesMapper extends BaseMapper<Resources> {

    List<MenuTreePO> findByIds(@Param("ids") List<Long> id, @Param("menuType") int menuType,
                               @Param("language") int languageType);

    List<MenuTreePO> listAll(@Param("query") ResourcesListQuery query);

    List<TreeDatePO> treeList(@Param("query") ResourcesListQuery query);
}
