refactor(device): 重构设备信息模块,按面板拆分数据存储和接口

将原 SnDeviceSystemInfo 单一实体拆分为基本信息、硬件、网络、安全、其他信息五个独立子表和服务,重构 DeviceController 和 MobileController 接口以支持分面板查询和上传
This commit is contained in:
TongTongStudio
2026-08-05 02:09:38 +08:00
parent 537644ab2e
commit 3608c205b9
39 changed files with 2447 additions and 164 deletions

View File

@@ -4,6 +4,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.device.model.entity.SnDeviceInfo;
import com.youlai.boot.device.model.query.DeviceQuery;
import com.youlai.boot.device.model.vo.DeviceHardwareInfoVO;
import com.youlai.boot.device.model.vo.DeviceNetworkInfoVO;
import com.youlai.boot.device.model.vo.DeviceOtherInfoVO;
import com.youlai.boot.device.model.vo.DeviceSecurityInfoVO;
import com.youlai.boot.device.model.vo.DeviceSystemInfoVO;
import com.youlai.boot.device.model.vo.DevicePageVO;
@@ -24,13 +28,45 @@ public interface DeviceService extends IService<SnDeviceInfo> {
* @return 设备详情信息
*/
DevicePageVO getSnBindInfo(String sn);
/**
* 获取设备基本信息
*
* @param sn 设备序列号
* @return 设备基本信息(无则返回 null
*/
DeviceSystemInfoVO getDeviceBasicInfo(String sn);
/**
* 获取设备硬件信息
*
* @param sn 设备序列号
* @return 设备硬件信息
* @return 设备硬件信息(无则返回 null
*/
DeviceSystemInfoVO getSnSystemInfo(String sn);
DeviceHardwareInfoVO getDeviceHardwareInfo(String sn);
/**
* 获取设备网络信息
*
* @param sn 设备序列号
* @return 设备网络信息(无则返回 null
*/
DeviceNetworkInfoVO getDeviceNetworkInfo(String sn);
/**
* 获取设备安全信息
*
* @param sn 设备序列号
* @return 设备安全信息(无则返回 null
*/
DeviceSecurityInfoVO getDeviceSecurityInfo(String sn);
/**
* 获取设备其他信息
*
* @param sn 设备序列号
* @return 设备其他信息(无则返回 null
*/
DeviceOtherInfoVO getDeviceOtherInfo(String sn);
/**
* 添加设备