lvfengfree b92e1119ae fix: 修复菜单为空问题 - 移除后端过滤home路由的错误逻辑
- 修复RouteService中错误过滤home路由的问题
- 后端现在正确返回所有用户有权限的路由
- 添加设备管理相关功能(列表、在线监控、电源管理、远程监控)
- 添加详细的修复文档和重启脚本
- 更新权限配置脚本

问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单
解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
2026-03-01 09:50:19 +08:00

98 lines
4.3 KiB
Plaintext

// Copyright (c) 2007-2010, Intel Corporation. All rights reserved.
[Experimental, Version ( "7.0.0" ),
Description (
"Describes the user consent service. This service manages user "
"opt-in options and sends a user consent code for KVM, "
"redirection, and set boot options." )]
class IPS_OptInService : CIM_Service {
[Description (
"Indicates the idle timeout, in seconds, after "
"which the opt-in code expires." ),
ValueMap { "0..59", "60..900", "901..4294967295" },
Values { "Reserved", "Seconds Timeout", "Reserved1" }]
uint32 OptInCodeTimeout;
[Description (
"Indicates The OptIn (User Consent) Policy for "
"Redirection operations,including KVM and IDER, or "
"setting of boot options. This value is Read Only if the "
"system was configured in Client Control Mode and "
"Read-Write in Admin Control Mode and "
"CanModifyOptInPolicy=true. The allowed values in Admin "
"Control Mode are: None (opt-in not required for any of "
"the features), KVM, or All (KVM+IDER+Boot options). "
"Possible values in Client Control Mode: All." ),
ValueMap { "0", "1", "2..4294967294", "4294967295" },
Values { "None", "KVM", "Reserved", "All" }]
uint32 OptInRequired;
[Description (
"Read Only. Indicates the state of OptIn: Not started: "
"OptIn is required for sessions affected by OptInPolicy. "
"Requested: a console has requested an opt-in code, but "
"it was not displayed to the user yet. Displayed: the "
"opt-in code was displayed to the user. Received: opt-in "
"code was successfully entered by the console operator. "
"opt-in is not required for additional redirection "
"sessions until a timeout occurs. In Session: A session "
"that uses the consent code is currently in progress" ),
ValueMap { "0", "1", "2", "3", "4", "5..255" },
Values { "Not started", "Requested", "Displayed", "Received",
"In Session", "Reserved" }]
uint8 OptInState;
[Description (
"Read Only: Indicates if Modifying the OptIn Policy via "
"WS-Management is enabled." ),
ValueMap { "0", "1" },
Values { "FALSE", "TRUE" }]
uint8 CanModifyOptInPolicy;
[Description (
"Defines the maximum time between session request and "
"session establishment (when user discloses the PIN on "
"the Sprite or MEBx screen to the remote operator and the "
"operator enters the PIN). When timeout expires, all "
"displays of Sprite notifications or MEBx screens are "
"cancelled. Intel(R) recommends a minimum of 5 minutes "
"(300 seconds). Read Only in Client Control Mode, R/W in "
"Admin Control Mode." ),
ValueMap { "0..9", "10..4095", "4096..65536" },
Values { "Reserved", "Seconds timeout", "Reserved1" }]
uint16 OptInDisplayTimeout;
[Description (
"Request an opt-in code. Intel(R) AMT generates code internally."
),
ValueMap { "0", "1", "2", "3", "4", ".." },
Values { "PT_STATUS_SUCCESS", "PT_STATUS_INTERNAL_ERROR",
"PT_STATUS_INVALID_STATE", "PT_STATUS_BLOCKED", "PT_STATUS_FAILED_FFS", "Reserved" }]
uint32 StartOptIn(
);
[Description ( "Cancel a previous opt-in code request." ),
ValueMap { "0", "1", "2", ".." },
Values { "PT_STATUS_SUCCESS", "PT_STATUS_INTERNAL_ERROR",
"PT_STATUS_INVALID_STATE", "Reserved" }]
uint32 CancelOptIn(
);
[Description ( "Send the opt-in code to Intel(R) AMT." ),
ValueMap { "0", "1", "2", "..", "2057", "..", "2066", ".." },
Values { "PT_STATUS_SUCCESS", "PT_STATUS_INTERNAL_ERROR",
"PT_STATUS_INVALID_STATE", "Reserved",
"PT_STATUS_DATA_MISSING", "Reserved1",
"PT_STATUS_INVALID_CREDENTIALS", "Reserved2" }]
uint32 SendOptInCode(
[IN, Description (
"The opt-in code generated by Intel(R) AMT. This "
"code is displayed on the user screen and should be "
"entered by the remote IT technician." ),
ValueMap { "0..999999", "1000000.." },
Values { "Generated Code", "Reserved" }]
uint32 OptInCode);
};