package cn.yunzhixue.ability.center.examsprint.application.report;

import org.springframework.stereotype.Service;

@Service
public class ExamSprintReportGenerationWorker {

    private final ExamSprintReportGenerationPipeline pipeline;

    public ExamSprintReportGenerationWorker(ExamSprintReportGenerationPipeline pipeline) {
        this.pipeline = pipeline;
    }

    public void process(String reportId) {
        pipeline.generate(reportId);
    }
}
