package org.dromara.task;
import lombok.extern.slf4j.Slf4j;
import lombok.RequiredArgsConstructor;
import org.dromara.service.impl.SenEventsReportServiceImpl;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@RequiredArgsConstructor
public class EventReportTask {
    private  final SenEventsReportServiceImpl senEventsReportService;
    @Scheduled(cron = "0 0/10 * * * ?")
    public void reportJob() {
        senEventsReportService.reportEvents();
    }

}