package cn.iocoder.yudao.module.system.service.mqtt;

import cn.iocoder.yudao.module.system.api.robot.RobotUpdatePalletHeightApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class RobotUpdatePalletHeightServiceImpl implements MqttService {

    @Autowired
    private RobotUpdatePalletHeightApi robotUpdatePalletHeightApi;

    @Override
    public void analysisMessage(String message) {
        log.info("处理RobotTaskStatusServiceImpl的消息 :{}",message);
        robotUpdatePalletHeightApi.updatePalletHeight(message);
    }
}
