package com.fs.app.controller;


import com.fs.app.service.AiSendService;
import com.fs.app.websocket.service.WebSocketServer;
import com.fs.fastGpt.service.AiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class FastGptTask {
    @Autowired
    private AiService aiService;
    @Autowired
    private AiSendService aiSendService;
    @Autowired
    private WebSocketServer webSocketServer;


//    @Scheduled(fixedRate = 120000) // 每分钟执行一次
//    public void remind(){
//        aiService.AiRemind();
//    }
//
//    @Scheduled(fixedRate = 10000) // 每10执行一次
//    public void sendMsg(){
//        Set<String> keys = webSocketServer.getSessionPools();
//        for (String key : keys) {
//            aiSendService.sendHookMsg(key);
//        }
//    }
}
