package com.xiang.xservice.application.script.glados.schedule;

import com.xiang.xservice.application.script.glados.service.GLaDOSService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @Author: xiang
 * @Date: 2025-05-08 15:24
 */
@Component
@RequiredArgsConstructor
@Slf4j
public class GladosCheckInJob {

    private final GLaDOSService glaDOSService;

    @Scheduled(cron = "0 0 7 1/1 * ?")
    public void checkInJon() {
        log.info("[job] Glados Check In Job start, time:{}", LocalDateTime.now());
        glaDOSService.checkInV2();
    }
}
