update 电单车协议

This commit is contained in:
Guoqs
2024-08-20 16:13:32 +08:00
parent 8f3bd5f7f4
commit a2a0efa8eb
7 changed files with 78 additions and 256 deletions

View File

@@ -1,6 +1,5 @@
package com.jsowell.netty.service.electricbicycles;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelId;
@@ -8,7 +7,7 @@ import io.netty.channel.ChannelId;
* 云快充处理service
*/
public interface YKCBusinessService {
public interface EBikeBusinessService {
/**
* 处理桩发来的请求
* 不需要应答的返回null

View File

@@ -8,11 +8,10 @@ import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.YKCUtils;
import com.jsowell.netty.factory.YKCOperateFactory;
import com.jsowell.netty.handler.yunkuaichong.AbstractYkcHandler;
import com.jsowell.netty.service.electricbicycles.YKCBusinessService;
import com.jsowell.netty.service.electricbicycles.EBikeBusinessService;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.service.PileConnectorInfoService;
import com.jsowell.pile.service.PileMsgRecordService;
import com.jsowell.pile.service.YKCPushCommandService;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelId;
import lombok.extern.slf4j.Slf4j;
@@ -21,7 +20,7 @@ import org.springframework.stereotype.Service;
@Slf4j
@Service
public class YKCBusinessServiceImpl2 implements YKCBusinessService {
public class EBikeBusinessServiceImpl implements EBikeBusinessService {
@Autowired
private PileMsgRecordService pileMsgRecordService;
@@ -32,9 +31,6 @@ public class YKCBusinessServiceImpl2 implements YKCBusinessService {
@Autowired
private OrderBasicInfoService orderBasicInfoService;
@Autowired
private YKCPushCommandService ykcPushCommandService;
@Override
public byte[] process(byte[] msg, ChannelHandlerContext ctx) {
if (!YKCUtils.checkMsg(msg)) {

View File

@@ -9,10 +9,9 @@ import com.jsowell.common.util.YKCUtils;
import com.jsowell.netty.factory.YKCOperateFactory;
import com.jsowell.netty.handler.yunkuaichong.AbstractYkcHandler;
import com.jsowell.netty.service.yunkuaichong.YKCBusinessService;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.service.PileConnectorInfoService;
import com.jsowell.pile.service.PileMsgRecordService;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.service.YKCPushCommandService;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelId;
import lombok.extern.slf4j.Slf4j;
@@ -32,9 +31,6 @@ public class YKCBusinessServiceImpl implements YKCBusinessService {
@Autowired
private OrderBasicInfoService orderBasicInfoService;
@Autowired
private YKCPushCommandService ykcPushCommandService;
@Override
public byte[] process(byte[] msg, ChannelHandlerContext ctx) {
if (!YKCUtils.checkMsg(msg)) {