VodDictMapper.java 1.36 KB
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.dto.student.SearchVodsDTO;
import com.meishu.dto.task.GetRecommendVodByTreeIdVO;
import com.meishu.model.SubjectTreeDO;
import com.meishu.model.VodDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.vo.student.SearchVodsVO;
import com.meishu.vo.voddict.GetTreeVodsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 视频字典表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-27
 */
@Repository
public interface VodDictMapper extends BaseMapper<VodDictDO> {

    IPage<GetTreeVodsVO> getTreeVods(IPage iPage, Long treeId,String subjectEn, String vodName, String vodType,String shareStatus,Long userId,List<String>  longs,String checkStatus);

    /**
     * 查找科目下某个视频的知识点
     * @param id
     * @return
     */
    List<SubjectTreeDO> getTrees(Long id);

    /**
     * 小程序搜索视频
     */
    List<SearchVodsVO> searchVods(SearchVodsDTO searchVodsDTO);

    /**
     * 课程查找视频锁关联的知识点
     */
    List<SubjectTreeDO> getVodTrees(Long vodId);

    /**
     * 修改视频的审核状态
     */
    void updateStatus(Long id,String status);

    List<VodDictDO> getRecommendVodByTreeId(GetRecommendVodByTreeIdVO getRecommendVodByTreeIdVO);


}