package com.mindskip.xzs.repository;
|
|
import com.mindskip.xzs.domain.SelfPractice;
|
import com.mindskip.xzs.domain.vo.SelfPracticeVO;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* @author:xp
|
* @date:2024/5/9 16:14
|
*/
|
@Mapper
|
public interface SelfPracticeMapper {
|
|
/**
|
* 添加个人练习
|
*
|
* @param entity
|
*/
|
void add(SelfPractice entity);
|
|
/**
|
* 分页
|
*
|
* @param query
|
* @return
|
*/
|
List<SelfPracticeVO> page(@Param("query") SelfPracticeVO query);
|
|
/**
|
* 删除
|
*
|
* @param ids
|
*/
|
void remove(List<Integer> ids);
|
|
/**
|
* id查详情
|
*
|
* @param id
|
* @return
|
*/
|
SelfPractice selectById(Integer id);
|
|
/**
|
* 设置题目id
|
*
|
* @param id
|
* @param questionIds
|
*/
|
void setQuestionIds(@Param("id") Integer id, @Param("questionIds") String questionIds);
|
}
|