package com.keao.edu.user.service.impl;

import com.keao.edu.common.dal.BaseDAO;
import com.keao.edu.common.service.impl.BaseServiceImpl;
import com.keao.edu.user.dao.ExamMusicTheoryDao;
import com.keao.edu.user.entity.ExamMusicTheory;
import com.keao.edu.user.service.ExamMusicTheoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamMusicTheoryServiceImpl extends BaseServiceImpl<Integer, ExamMusicTheory> implements ExamMusicTheoryService {

    @Autowired
    private ExamMusicTheoryDao examMusicTheoryDao;

    @Override
    public BaseDAO<Integer, ExamMusicTheory> getDAO() {
        return examMusicTheoryDao;
    }

    @Override
    public List<ExamMusicTheory> getTheoryLevelList(Integer examinationBasicId) {
        return examMusicTheoryDao.getTheoryLevelList(examinationBasicId);
    }
}
