package com.gxwebsoft.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsDocsBook;
import com.gxwebsoft.cms.param.CmsDocsBookParam;

import java.util.List;

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

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

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

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

}
