2025-09-15 15:48:54 +08:00
|
|
|
package com.cdzy.operations.service;
|
|
|
|
|
|
2025-10-16 10:15:43 +08:00
|
|
|
import com.cdzy.operations.model.dto.EbikeEcuInOverview;
|
2025-10-15 15:18:46 +08:00
|
|
|
import com.cdzy.operations.model.vo.EbikeEcuInfoBatchVo;
|
2025-09-15 15:48:54 +08:00
|
|
|
import com.cdzy.operations.model.vo.EbikeEcuInfoVo;
|
|
|
|
|
import com.mybatisflex.core.service.IService;
|
|
|
|
|
import com.cdzy.operations.model.entity.EbikeEcuInfo;
|
|
|
|
|
|
2025-10-30 10:46:28 +08:00
|
|
|
import java.io.IOException;
|
2025-10-16 10:15:43 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2025-09-15 15:48:54 +08:00
|
|
|
/**
|
|
|
|
|
* 中控基本信息 服务层。
|
|
|
|
|
*
|
|
|
|
|
* @author attiya
|
|
|
|
|
* @since 2025-09-15
|
|
|
|
|
*/
|
|
|
|
|
public interface EbikeEcuInfoService extends IService<EbikeEcuInfo> {
|
|
|
|
|
|
2025-10-15 15:18:46 +08:00
|
|
|
/**
|
|
|
|
|
* 中控入库
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
*/
|
2025-09-15 15:48:54 +08:00
|
|
|
void saveEcu(EbikeEcuInfoVo ebikeEcuInfo);
|
2025-10-15 15:18:46 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量入库
|
|
|
|
|
* @param batchVo 入库信息
|
|
|
|
|
*/
|
|
|
|
|
void batchSave(EbikeEcuInfoBatchVo batchVo);
|
2025-10-16 10:15:43 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 总览
|
|
|
|
|
* @return 总览数据
|
|
|
|
|
*/
|
|
|
|
|
List<EbikeEcuInOverview> overview();
|
2025-10-30 10:46:28 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 检测设备是否在线
|
|
|
|
|
* @param ecuSn 中控SN码
|
|
|
|
|
* @param bikeCode 车辆编号
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean online(String ecuSn, String bikeCode) throws IOException;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 寻车铃命令
|
2025-10-31 10:07:37 +08:00
|
|
|
* @param ebikeEcuInfo 中控信息
|
2025-10-30 10:46:28 +08:00
|
|
|
* @return 结果
|
|
|
|
|
*/
|
2025-10-31 10:07:37 +08:00
|
|
|
boolean findBike(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GPS命令
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean gps(EbikeEcuInfo ebikeEcuInfo);
|
2025-10-30 16:38:04 +08:00
|
|
|
|
2025-10-31 10:23:00 +08:00
|
|
|
/**
|
|
|
|
|
* 打开电池仓锁命令
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean openBatteryLock(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
2025-11-03 11:30:59 +08:00
|
|
|
/**
|
|
|
|
|
* 关闭电池仓所命令
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean closeBatteryLock(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
2025-10-30 16:38:04 +08:00
|
|
|
/**
|
|
|
|
|
* 校验参数
|
|
|
|
|
* @param ecuSn 中控SN码
|
|
|
|
|
* @param bikeCode 车辆编号
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean checkSnOrBikeCode(String ecuSn, String bikeCode);
|
2025-10-31 10:07:37 +08:00
|
|
|
|
2025-11-03 11:30:59 +08:00
|
|
|
/**
|
|
|
|
|
* 关锁
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean lock(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 开锁
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean unLock(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 打开头盔锁
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean openHelmet(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
2025-11-05 09:45:29 +08:00
|
|
|
/**
|
|
|
|
|
* 打开头盔锁
|
|
|
|
|
* @param ebikeEcuInfo 中控信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
boolean powerOff(EbikeEcuInfo ebikeEcuInfo);
|
|
|
|
|
|
2025-10-31 10:07:37 +08:00
|
|
|
/**
|
|
|
|
|
* 执行命令
|
|
|
|
|
* @param ecuSn 中控SN码
|
|
|
|
|
* @param bikeCode 车辆编号
|
|
|
|
|
* @param commandCode 命令编码
|
|
|
|
|
* @return 执行结果
|
|
|
|
|
*/
|
|
|
|
|
boolean executeCommand(String ecuSn, String bikeCode, String commandCode);
|
2025-11-10 16:25:04 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据车辆编号获取中控信息
|
|
|
|
|
* @param bikeCode 车辆编号
|
|
|
|
|
* @return 中控信息
|
|
|
|
|
*/
|
|
|
|
|
EbikeEcuInfo getEcu(String bikeCode);
|
|
|
|
|
|
2025-09-15 15:48:54 +08:00
|
|
|
}
|