package com.ruoyi.device.mqtt.annotation;

import com.ruoyi.device.mqtt.enums.MsgTypeEnum;
import org.springframework.stereotype.Component;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 上行报文 消费解析注解
 *
 * @author lwm
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface ConsumerHandler
{
    /**
     * 消息类型
     */
    MsgTypeEnum msgType();
}
