package com.usky.rule.service.impl;

import com.usky.rule.mapper.RuleEngineCronMapper;
import com.usky.rule.service.RuleEngineCronService;
import com.usky.rule.vo.RuleEngineCronVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuleEngineCronServiceImpl implements RuleEngineCronService {
    private final RuleEngineCronMapper ruleEngineCronMapper;

    public RuleEngineCronServiceImpl(RuleEngineCronMapper ruleEngineCronMapper) {
        this.ruleEngineCronMapper = ruleEngineCronMapper;
    }

    @Override
    public List<RuleEngineCronVO> getTurnedOnCron() {
        return ruleEngineCronMapper.getTurnedOnCron();
    }
}
