package com.fizz.business.service.hanle;


import com.fizz.business.constants.enums.OpcMessageType;
import com.fizz.business.domain.msg.OpcMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OpcReceiverHandler {

    @Autowired
    private OpcMessageDispatcher dispatcher;

    // 统一入口
    public void onMessageReceived(OpcMessageType type, OpcMessage message) {
        dispatcher.dispatch(type, message);
    }
}
