package com.gyee.frame.service.websocket.task;

import com.gyee.frame.common.websocket.WebsocketMessageService;
import com.gyee.frame.service.websocket.MatrixDetialGfPushService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

@Component
public class MatrixDetialGfPushTask {
    @Resource
    private MatrixDetialGfPushService matrixDetialGfPushService;
    @Resource
    private WebsocketMessageService websocketMessageService;

    public void matrixPush(String destination) throws Exception {

        Map<String, Object> map=matrixDetialGfPushService.genreSetMap();

        websocketMessageService.SendAlertToAll(destination,map);
    }
}
