You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exam/repo/mapper/RepoMapper.java

32 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yf.exam.modules.repo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.exam.modules.repo.dto.request.RepoReqDTO;
import com.yf.exam.modules.repo.dto.response.RepoRespDTO;
import com.yf.exam.modules.repo.entity.Repo;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 题库Mapper接口继承自 MyBatis-Plus 的 BaseMapper 接口,用于操作题库实体类与数据库的交互。
* BaseMapper 接口提供了基本的增删改查操作,该接口在此基础上扩展了分页查询功能。
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 13:23
*/
public interface RepoMapper extends BaseMapper<Repo> {
/**
* 分页查询题库信息
*
* @param page 分页对象,包含分页的相关信息,如当前页码、每页记录数等,用于控制查询结果的分页展示。
* @param query 题库查询请求对象包含查询条件如排除题库ID、题库标题等用于筛选符合条件的题库记录。
* @return 返回一个包含 RepoRespDTO 对象的分页数据RepoRespDTO 是题库分页响应类,封装了题库的相关信息以及不同题型的数量。
*/
IPage<RepoRespDTO> paging(Page page, @Param("query") RepoReqDTO query);
}