serverRoom/backend-csharp/AmtScanner.Api/add_os_devices_menu.sql
lvfengfree eebbacafde feat: 实现OS设备扫描和UUID绑定功能
- 添加OsDevice模型和OsDevicesController
- 实现WindowsScannerService用于网络扫描和WMI查询
- 添加AMT设备UUID查询功能(从CIM_ComputerSystemPackage获取PlatformGUID)
- 实现PlatformGUID到标准UUID格式的转换(字节序转换)
- 修复HardwareInfoRepository保存UUID的问题
- 前端添加OS设备管理页面和UUID获取/刷新按钮
- 添加数据库迁移脚本
2026-01-21 16:16:48 +08:00

12 lines
679 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 添加操作系统设备管理菜单放在桌面管理目录下ParentId=20
INSERT INTO `Menus` (`Id`, `Name`, `Title`, `Icon`, `Path`, `Component`, `ParentId`, `Sort`, `IsHide`, `KeepAlive`, `IsIframe`, `IsSystem`, `IsHideTab`, `CreatedAt`)
VALUES (22, 'OsDevices', '操作系统', 'Monitor', 'os-devices', '/desktop-manage/os-devices', 20, 2, 0, 0, 0, 0, 0, NOW());
-- 为超级管理员角色添加菜单权限
INSERT INTO `RoleMenus` (`RoleId`, `MenuId`)
SELECT r.Id, 22 FROM `Roles` r WHERE r.RoleCode = 'R_SUPER';
-- 为管理员角色添加菜单权限
INSERT INTO `RoleMenus` (`RoleId`, `MenuId`)
SELECT r.Id, 22 FROM `Roles` r WHERE r.RoleCode = 'R_ADMIN';