package com.gxwebsoft.cms.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.Domain;
import com.gxwebsoft.cms.entity.Navigation;
import com.gxwebsoft.cms.param.NavigationParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 导航Mapper
 *
 * @author 科技小王子
 * @since 2024-03-04 21:27:55
 */
public interface NavigationMapper extends BaseMapper<Navigation> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<Navigation>
     */
    List<Navigation> selectPageRel(@Param("page") IPage<Navigation> page,
                             @Param("param") NavigationParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<Navigation> selectListRel(@Param("param") NavigationParam param);

    @InterceptorIgnore(tenantLine = "true")
    Navigation getByPathRel(@Param("param") NavigationParam param);
}
