package com.mmc.iuav.user.mq;

import com.alibaba.fastjson2.JSONObject;
import com.mmc.iuav.user.model.vo.UserAccountVO;
import com.rabbitmq.client.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;

/**
 * @author: zj
 * @Date: 2023/6/26 19:47
 */
@Slf4j
@Component
public class MqConsumer {

//    @RabbitListener(queues = RabbitmqConstant.USER_INFO_UPDATE_FANOUT_FORUM_QUEUE)
//    public void subscribeFanoutQueue(@Payload String userAccountVO, Channel channel, Message message){
//        UserAccountVO userAccountVO1 = JSONObject.parseObject(userAccountVO, UserAccountVO.class);
//        log.info("receive:" + userAccountVO1);
//    }
}