package com.gxwebsoft.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsPage;
import com.gxwebsoft.cms.param.CmsPageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 单页Mapper
 *
 * @author WorkBuddy
 * @since 2026-07-29
 */
public interface CmsPageMapper extends BaseMapper<CmsPage> {

    /**
     * 分页关联查询
     */
    List<CmsPage> selectPageRel(@Param("page") IPage<CmsPage> page,
                                @Param("param") CmsPageParam param);

    /**
     * 查询全部
     */
    List<CmsPage> selectListRel(@Param("param") CmsPageParam param);
}
