package com.fzzy.gateway.service; import com.fzzy.api.data.GatewayDeviceProtocol; import com.fzzy.gateway.api.GatewaySyncWeightService; import com.fzzy.gateway.hx2023.data.SyncReqData; import com.fzzy.gateway.hx2023.data.WeightInfo; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; /** * 设备默认协议,什么都不做 */ @Slf4j @Component public class DeviceWeightServiceTest implements GatewaySyncWeightService { @Override public String getWeightProtocol() { return GatewayDeviceProtocol.DEVICE_TEST.getCode(); } @Override public WeightInfo syncWeightInfo(SyncReqData reqData) { log.info("----------DO NOTHING---------"); return null; } }