ExerciseDictService.java 1.55 KB
package com.meishu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.dto.exercise.AddExerciseDTO;
import com.meishu.dto.exercise.CheckExerciseDTO;
import com.meishu.dto.exercise.GetTreeExercisesDTO;
import com.meishu.dto.voddict.GetToCheckVodCountsDTO;
import com.meishu.dto.voddict.PublicCheckingDTO;
import com.meishu.model.ExerciseDictDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meishu.model.ExerciseTreeMappingDO;
import com.meishu.vo.exercise.GetExerciseDetailVO;
import com.meishu.vo.exercise.GetTreeExercisesVO;
import com.meishu.vo.voddict.GetToCheckCountsVO;

/**
 * <p>
 * 习题库 服务类
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-27
 */
public interface ExerciseDictService extends IService<ExerciseDictDO> {

    IPage<GetTreeExercisesVO> getTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO);

    IPage<GetTreeExercisesVO> getCheckTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO);

    String deleteExercise(ExerciseDictDO exerciseDictDO);

    String addExercise(AddExerciseDTO addExerciseDTO);

    String updateExercise(AddExerciseDTO addExerciseDTO);

    GetToCheckCountsVO getToCheckExeCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO);

    String checkExercise(CheckExerciseDTO checkExerciseDTO);

    IPage<ExerciseDictDO> publicUpload(PublicCheckingDTO publicCheckingDTO);

    String withdraw(ExerciseDictDO exerciseDictDO);

    GetExerciseDetailVO getExerciseDetail(ExerciseDictDO exerciseDictDO);

    String setRelatedExercise(ExerciseTreeMappingDO exerciseTreeMappingDO);

}