package com.kym.miniapp.jobs;

import com.kym.service.admin.MonitorLogService;
import org.springframework.stereotype.Component;

/**
 * 离线通知
 *
 * @author skyline
 * @date 2023-08-29 15:45
 */
@Component
public class OfflineNotice extends Task {

    private final MonitorLogService monitorLogService;


    public OfflineNotice(MonitorLogService monitorLogService) {
        this.monitorLogService = monitorLogService;
    }

    @Override
    public void run() {
        // TODO 查询该设备在线情况，恢复在线则修改记录状态为已恢复，依旧离线则告警通知，修改状态为以告警


    }
}
