package com.ruoyi.learn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.learn.mapper.LearnDirectedKnowledgeMapper;
import com.ruoyi.learn.domain.LearnDirectedKnowledge;
import com.ruoyi.learn.service.ILearnDirectedKnowledgeService;

/**
 * 定向知识点关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-25
 */
@Service
public class LearnDirectedKnowledgeServiceImpl implements ILearnDirectedKnowledgeService 
{
    @Autowired
    private LearnDirectedKnowledgeMapper learnDirectedKnowledgeMapper;

    /**
     * 查询定向知识点关系
     * 
     * @param id 定向知识点关系主键
     * @return 定向知识点关系
     */
    @Override
    public LearnDirectedKnowledge selectLearnDirectedKnowledgeById(Long id)
    {
        return learnDirectedKnowledgeMapper.selectLearnDirectedKnowledgeById(id);
    }

    /**
     * 查询定向知识点关系列表
     * 
     * @param learnDirectedKnowledge 定向知识点关系
     * @return 定向知识点关系
     */
    @Override
    public List<LearnDirectedKnowledge> selectLearnDirectedKnowledgeList(LearnDirectedKnowledge learnDirectedKnowledge)
    {
        return learnDirectedKnowledgeMapper.selectLearnDirectedKnowledgeList(learnDirectedKnowledge);
    }

    /**
     * 新增定向知识点关系
     * 
     * @param learnDirectedKnowledge 定向知识点关系
     * @return 结果
     */
    @Override
    public int insertLearnDirectedKnowledge(LearnDirectedKnowledge learnDirectedKnowledge)
    {
        return learnDirectedKnowledgeMapper.insertLearnDirectedKnowledge(learnDirectedKnowledge);
    }

    /**
     * 修改定向知识点关系
     * 
     * @param learnDirectedKnowledge 定向知识点关系
     * @return 结果
     */
    @Override
    public int updateLearnDirectedKnowledge(LearnDirectedKnowledge learnDirectedKnowledge)
    {
        return learnDirectedKnowledgeMapper.updateLearnDirectedKnowledge(learnDirectedKnowledge);
    }

    /**
     * 批量删除定向知识点关系
     * 
     * @param ids 需要删除的定向知识点关系主键
     * @return 结果
     */
    @Override
    public int deleteLearnDirectedKnowledgeByIds(Long[] ids)
    {
        return learnDirectedKnowledgeMapper.deleteLearnDirectedKnowledgeByIds(ids);
    }

    /**
     * 删除定向知识点关系信息
     * 
     * @param id 定向知识点关系主键
     * @return 结果
     */
    @Override
    public int deleteLearnDirectedKnowledgeById(Long id)
    {
        return learnDirectedKnowledgeMapper.deleteLearnDirectedKnowledgeById(id);
    }
}
