package com.fs.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.course.mapper.FsUserCourseVideoRedPackageMapper;
import com.fs.course.domain.FsUserCourseVideoRedPackage;
import com.fs.course.service.IFsUserCourseVideoRedPackageService;

/**
 * 课程公司红包Service业务层处理
 * 
 * @author fs
 * @date 2024-10-25
 */
@Service
public class FsUserCourseVideoRedPackageServiceImpl implements IFsUserCourseVideoRedPackageService 
{
    @Autowired
    private FsUserCourseVideoRedPackageMapper fsUserCourseVideoRedPackageMapper;

    /**
     * 查询课程公司红包
     * 
     * @param id 课程公司红包主键
     * @return 课程公司红包
     */
    @Override
    public FsUserCourseVideoRedPackage selectFsUserCourseVideoRedPackageById(Long id)
    {
        return fsUserCourseVideoRedPackageMapper.selectFsUserCourseVideoRedPackageById(id);
    }

    /**
     * 查询课程公司红包列表
     * 
     * @param fsUserCourseVideoRedPackage 课程公司红包
     * @return 课程公司红包
     */
    @Override
    public List<FsUserCourseVideoRedPackage> selectFsUserCourseVideoRedPackageList(FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage)
    {
        return fsUserCourseVideoRedPackageMapper.selectFsUserCourseVideoRedPackageList(fsUserCourseVideoRedPackage);
    }

    /**
     * 新增课程公司红包
     * 
     * @param fsUserCourseVideoRedPackage 课程公司红包
     * @return 结果
     */
    @Override
    public int insertFsUserCourseVideoRedPackage(FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage)
    {
        return fsUserCourseVideoRedPackageMapper.insertFsUserCourseVideoRedPackage(fsUserCourseVideoRedPackage);
    }

    /**
     * 修改课程公司红包
     * 
     * @param fsUserCourseVideoRedPackage 课程公司红包
     * @return 结果
     */
    @Override
    public int updateFsUserCourseVideoRedPackage(FsUserCourseVideoRedPackage fsUserCourseVideoRedPackage)
    {
        return fsUserCourseVideoRedPackageMapper.updateFsUserCourseVideoRedPackage(fsUserCourseVideoRedPackage);
    }

    /**
     * 批量删除课程公司红包
     * 
     * @param ids 需要删除的课程公司红包主键
     * @return 结果
     */
    @Override
    public int deleteFsUserCourseVideoRedPackageByIds(Long[] ids)
    {
        return fsUserCourseVideoRedPackageMapper.deleteFsUserCourseVideoRedPackageByIds(ids);
    }

    /**
     * 删除课程公司红包信息
     * 
     * @param id 课程公司红包主键
     * @return 结果
     */
    @Override
    public int deleteFsUserCourseVideoRedPackageById(Long id)
    {
        return fsUserCourseVideoRedPackageMapper.deleteFsUserCourseVideoRedPackageById(id);
    }
}
