| | |
| | | package com.fzzy.gateway.hx2023.service; |
| | | |
| | | import com.fzzy.api.data.GatewayDeviceProtocol; |
| | | import com.fzzy.gateway.api.GatewaySyncGranService; |
| | | import com.fzzy.gateway.hx2023.data.KafaGrainData; |
| | | import com.fzzy.gateway.hx2023.data.SyncReqData; |
| | | 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.springframework.stereotype.Component; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 网关与粮情分机通讯和解析 |
| | | */ |
| | | @Slf4j |
| | | @Data |
| | | @Component |
| | | @Service |
| | | public class HxGatewaySyncGrainImpl implements GatewaySyncGranService { |
| | | |
| | | |
| | | @Override |
| | | public String getGrainProtocol() { |
| | | return null; |
| | | return GatewayDeviceProtocol.DEVICE_TEST.getCode(); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public KafaGrainData syncGrain(SyncReqData reqData) { |
| | | return null; |
| | | public BaseResp syncGrain(BaseReqData reqData) { |
| | | |
| | | return new BaseResp(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |