package com.mindskip.xzs.service;
|
|
import com.mindskip.xzs.domain.KnowledgePoint;
|
import com.mindskip.xzs.domain.other.KnowledgePointPage;
|
import com.mindskip.xzs.viewmodel.admin.knowledge.KnowledgePageRequestVM;
|
import com.github.pagehelper.PageInfo;
|
|
import java.util.List;
|
|
/**
|
* @version 2.2.0
|
* @description: 知识点
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
public interface KnowledgeService extends BaseService<KnowledgePoint> {
|
|
/**
|
* 根据学科、年级获取知识点
|
*
|
* @param name the name
|
* @param subjectId the subject id
|
* @param levelId the level id
|
* @return the knowledge point
|
*/
|
KnowledgePoint getKnowledgePoint(String name, Integer subjectId, Integer levelId);
|
|
/**
|
* 根据id获取知识点
|
*
|
* @param id the id
|
* @return the knowledge point by subject id
|
*/
|
List<KnowledgePoint> getKnowledgePointBySubjectId(Integer id);
|
|
/**
|
* 根据父节点id获取知识点
|
*
|
* @param id the id
|
* @return the knowledge point by parent id
|
*/
|
List<KnowledgePoint> getKnowledgePointByParentId(Integer id);
|
|
/**
|
* 知识点分页
|
*
|
* @param requestVM the request vm
|
* @return the page info
|
*/
|
PageInfo<KnowledgePointPage> page(KnowledgePageRequestVM requestVM);
|
}
|