package com.gxwebsoft.cms.service;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.Navigation;
import com.gxwebsoft.cms.param.NavigationParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Navigation>
     */
    PageResult<Navigation> pageRel(NavigationParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Navigation>
     */
    List<Navigation> listRel(NavigationParam param);

    /**
     * 根据id查询
     *
     * @param navigationId ID
     * @return Navigation
     */
    Navigation getByIdRel(Integer navigationId);

    void saveAsync(Navigation navigation);

}
