package com.tzy.service.impl;

import com.tzy.dto.QuizLibDto;
import com.tzy.mapper.QuizLibMapper;
import com.tzy.service.QuizLibService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class QuizLibServiceImpl implements QuizLibService {
    @Autowired
    QuizLibMapper quizLibMapper;
    @Override
    public List<QuizLibDto> queryQuizLibByActivityId(Long activityId) {
        //查出所有题库
        return quizLibMapper.queryQuizLibByActivityId(activityId);
    }
}
