package com.fs.course.service.impl;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.*;

import com.fs.course.mapper.*;
import com.fs.course.vo.*;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.course.service.IFsUserCourseService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 课程Service业务层处理
 *
 * @author fs
 * @date 2024-05-15
 */
@Service
@Slf4j
public class FsUserCourseServiceImpl implements IFsUserCourseService
{
    @Autowired
    private FsUserCourseMapper fsUserCourseMapper;

    @Override
    public int updateViews(Long courseId) {
        return fsUserCourseMapper.updateViews(courseId);
    }


    @Override
    public List<FsUserCourseVideoAppletVO> selectFsUserCourseVideoApplet() {
        return fsUserCourseMapper.selectFsUserCourseVideoApplet();
    }

    @Override
    public List<FsUserCourseVideoAppletVO.FsUserCourseVideo> selectFsUserCourseVideoAppletByCourseId(Long courseId) {
        return fsUserCourseMapper.selectFsUserCourseVideoAppletByCourseId(courseId);
    }

}
