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/service/RepoService.java

39 lines
1.5 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.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yf.exam.core.api.dto.PagingReqDTO;
import com.yf.exam.modules.repo.dto.RepoDTO;
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;
/**
* <p>
* 题库业务类,定义了与题库相关的业务操作接口。
* 该接口继承自 MyBatis-Plus 的 IService 接口,可使用其提供的基础 CRUD 操作方法。
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 13:23
*/
public interface RepoService extends IService<Repo> {
/**
* 分页查询题库数据
*
* @param reqDTO 包含分页信息和查询条件的请求对象。
* PagingReqDTO 封装了分页参数RepoReqDTO 封装了具体的查询条件,如排除题库 ID、题库标题等。
* @return 一个 IPage 对象,包含分页查询结果,结果元素为 RepoRespDTO 类型,该类型封装了题库的详细信息及题型数量。
*/
IPage<RepoRespDTO> paging(PagingReqDTO<RepoReqDTO> reqDTO);
/**
* 保存或更新题库信息
*
* @param reqDTO 包含题库信息的数据传输对象,包含题库的 ID、编号、名称、备注等信息。
* 若 DTO 中的 ID 存在,则进行更新操作;若 ID 不存在,则进行新增操作。
*/
void save(RepoDTO reqDTO);
}