package com.jwipc.sys.service.impl;

import com.jwipc.sys.entity.Resources;
import com.jwipc.sys.mapper.ResourcesMapper;
import com.jwipc.sys.model.po.MenuTreePO;
import com.jwipc.sys.model.po.TreeDatePO;
import com.jwipc.sys.model.query.ResourcesListQuery;
import com.jwipc.sys.service.IResourcesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统菜单 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-27
 */
@Service
public class ResourcesServiceImpl extends ServiceImpl<ResourcesMapper, Resources> implements IResourcesService {

    @Override
    public List<MenuTreePO> findMenuTreeByIds(List<Long> id, int menuType, int languageType) {
        return this.baseMapper.findByIds(id,menuType, languageType);
    }

    @Override
    public List<MenuTreePO> listAll(ResourcesListQuery query) {
        return this.baseMapper.listAll(query);
    }

    @Override
    public List<TreeDatePO> treeList(ResourcesListQuery query) {
        return this.baseMapper.treeList(query);
    }
}
