jiazx0107@163.com
2023-11-08 768308ab47041062d9e97745099784acf297286b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
    }
}