jiazx0107@163.com
2023-11-17 6c9892f782cf0eea02fb7f6c41fa74b4ed8c33d6
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
32
33
34
35
36
package com.fzzy.gateway.hx2023.service;
 
import com.fzzy.api.data.GatewayDeviceProtocol;
import com.fzzy.gateway.api.GatewaySyncGranService;
import com.fzzy.gateway.data.BaseResp;
import com.fzzy.gateway.data.BaseReqData;
import com.fzzy.gateway.entity.GatewayDevice;
import com.fzzy.gateway.hx2023.data.*;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
 
/**
 * 网关与粮情分机通讯和解析
 */
@Slf4j
@Data
@Service
public class HxGatewaySyncGrainImpl implements GatewaySyncGranService {
 
 
    @Override
    public String getGrainProtocol() {
        return GatewayDeviceProtocol.DEVICE_TEST.getCode();
    }
 
 
    @Override
    public BaseResp syncGrain(BaseReqData reqData) {
 
       return new BaseResp();
    }
 
 
}