package com.gxwebsoft.cms.mapper;

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

import java.util.List;

/**
 * 书籍记录表Mapper
 *
 * @author 科技小王子
 * @since 2024-09-10 20:47:57
 */
public interface CmsDocsBookMapper extends BaseMapper<CmsDocsBook> {

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

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

}
