//package com.base.track.mq;
//
//import com.alibaba.fastjson.JSONObject;
//import com.base.orbit.mq.MqClient;
//import com.base.orbit.mq.kafka.builder.KafkaMqClientBuilder;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//
///**
// * @author jhzhu
// * @date 2023/2/6 10:01
// * @Description: kafka接收端
// */
//@Component
//@Slf4j
//public class MqProducer {
//
//    @Value("${kafka.service.url.list}")
//    private String kafkaServer;
//
//    private MqClient mqClient;
//
//    @Bean
//    public boolean init(){
//        mqClient = new KafkaMqClientBuilder()
//                .withBrokers(kafkaServer)
//                .build();
//        return true;
//    }
//
//    public void push(String topic, String auth, Object data) {
//        mqClient.push(topic, auth, JSONObject.toJSONString(data));
//    }
//}