VodDictMapper.java 964 Bytes
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.VodDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.vod.ClassVodCompleteInfoVO;
import com.subsidy.vo.vod.GetContendVodsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 视频表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-11
 */
@Repository
public interface VodDictMapper extends BaseMapper<VodDictDO> {

    /**
     * 查看某个目录下的视频
     */
    IPage<GetContendVodsVO> getContendVods(IPage page,String vodName,Long contentId);

    /**
     * 查看某个课程下的视频
     */
    List<VodDictDO> getCourseVods(Long courseId,String vodName);

    /**
     * 获取某课程下,学习人数和平均学习时长
     */
    ClassVodCompleteInfoVO classVodCompleteInfo(Long classId, Long vodId,List<Long> memberIds,String vodName);
}