package com.ruoyi.device.mqtt.handler.decoder.tax;

import com.ruoyi.device.mqtt.annotation.ConsumerHandler;
import com.ruoyi.device.mqtt.enums.MsgTypeEnum;
import com.ruoyi.device.mqtt.handler.decoder.AbstractDecoder;
import com.ruoyi.device.mqtt.vo.CommonHeader;
import com.ruoyi.device.mqtt.vo.CommonTopic;
import io.netty.buffer.ByteBuf;
import jakarta.annotation.Resource;

/**
 * 报税口密文数据上行解码
 *
 * @author lwm
 */
@ConsumerHandler(msgType = MsgTypeEnum.CIPHERTEXT_DATA_UP)
public class CiphertextDataDecoder extends AbstractDecoder<Void>
{
    @Resource
    private CiphertextDataService ciphertextDataService;

    @Override
    protected Void decode(CommonTopic topic, CommonHeader header, ByteBuf body)
    {
        ciphertextDataService.decode(topic, header, body, false);
        return null;
    }
}
