package com.ruoyi.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.basic.domain.question.QuestionRule;
import com.ruoyi.basic.mapper.QuestionRuleMapper;
import com.ruoyi.basic.service.QuestionRuleService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
@RequiredArgsConstructor
public class QuestionRuleServiceImpl extends ServiceImpl<QuestionRuleMapper, QuestionRule> implements QuestionRuleService {

    private final QuestionRuleMapper ruleMapper;

    @Override
    public List<QuestionRule> getEnabledRulesBySurveyId(Long surveyId) {
        return ruleMapper.selectEnabledBySurveyId(surveyId);
    }
}
