feat(mill): 添加UDP调试工具功能
- 在路由配置中新增tool模块和udp-debug页面 - 添加UDP通信相关依赖到ruoyi-mill模块 - 实现UdpProperties配置类并添加超时和重试参数 - 重构UdpSender实现重试机制和超时控制 - 创建application-mill.properties配置文件 - 定义IUdpService接口提供UDP通信服务 - 添加系统菜单初始化SQL脚本 - 实现前端API接口用于UDP配置和报文发送 - 开发UDP调试工具Vue组件界面 - 编写UDP调试工具快速启动指南文档
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.ruoyi.mill.service;
|
||||
|
||||
import com.ruoyi.mill.udp.UdpProperties;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* UDP 通信服务接口
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface IUdpService {
|
||||
|
||||
/**
|
||||
* 获取UDP配置
|
||||
*/
|
||||
UdpProperties getUdpConfig();
|
||||
|
||||
/**
|
||||
* 更新UDP配置
|
||||
*/
|
||||
AjaxResult updateUdpConfig(UdpProperties properties);
|
||||
|
||||
/**
|
||||
* 发送UDP报文
|
||||
*/
|
||||
boolean sendTelegram(String tcNo, byte[] payload);
|
||||
|
||||
/**
|
||||
* 获取电文历史记录
|
||||
*/
|
||||
List<Map<String, Object>> getTelegramHistory(int pageNum, int pageSize);
|
||||
|
||||
/**
|
||||
* 获取电文统计数据
|
||||
*/
|
||||
Map<String, Object> getTelegramStats();
|
||||
}
|
||||
Reference in New Issue
Block a user