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

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

107 lines
4.1 KiB
Plaintext

// Copyright (c) 2007-2010, Intel Corporation. All rights reserved.
[Version ( "6.0.0" ),
Description ( "Describes a System Defense Policy" )]
class AMT_SystemDefensePolicy : CIM_ManagedElement {
[Key, Override ( "InstanceID" ),
Description (
"Opaquely and uniquely identifies an instance of this class."
)]
string InstanceID;
[Description ( "Policy name." )]
string PolicyName;
[Required, Description (
"In case multiple policies are being activated "
"simultaneously, the policy with the highest precedence "
"value takes effect. (Policies with the same precedence "
"are chosen arbitrarily)." )]
uint32 PolicyPrecedence;
[Description (
"Anti Spoofing has the highest priority for blocking. Any "
"packet that does NOT pass AS filter will not be "
"transmitted even if it passes other filters. Any packet "
"that does pass the AS filter is subject to the rest of "
"the CB filters before it is transmitted." ),
ValueMap { "0", "1", "2", "3", "4" },
Values { "Off", "EventOnMatch", "Count",
"Counting + EventOnMatch", "On without Counting or EventOnMatch"}]
uint32 AntiSpoofingSupport;
[Description (
"A list of Filter Creation Handles to be included in the Policy."
)]
uint32 FilterCreationHandles[];
[Required, Description (
"Specifies whether the TX packet should be dropped on filter match."
)]
boolean TxDefaultDrop;
[Required, Description (
"Specifies whether an Event should be created in the "
"Event Manager when this filter is matched. (The event "
"will be generated once and will be allowed again only "
"after statistics are read)." )]
boolean TxDefaultMatchEvent;
[Required, Description (
"Specifies whether to count filter matches. (Specifying "
"TRUE in this action will consume one extra counter from "
"the counter resources of the Policy)." )]
boolean TxDefaultCount;
[Required, Description (
"Specifies whether the RX packet should be dropped on filter match."
)]
boolean RxDefaultDrop;
[Required, Description (
"Specifies whether an Event should be created in the "
"Event Manager when this filter is matched. (The event "
"will be generated once and will be allowed again only "
"after statistics are read)." )]
boolean RxDefaultMatchEvent;
[Required, Description (
"Specifies whether to count filter matches. (Specifying "
"TRUE in this action will consume one extra counter from "
"the counter resources of the Policy)." )]
boolean RxDefaultCount;
[Description ( "Get the timeout parameter." )]
uint32 GetTimeout(
[OUT, Description (
"The timeout of the policy (timeout is measured in "
"minutes, and 0 means no timeout)." )]
uint32 Timeout);
[Description ( "Set the timeout parameter." ),
ValueMap { "0", "36", "38" },
Values { "PT_STATUS_SUCCESS", "PT_STATUS_INVALID_PARAMETER",
"PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED" }]
uint32 SetTimeout(
[Required, IN, Description (
"The timeout for the policy (measured in minutes, "
"and 0 means no timeout)." ),
ValueMap { "0", "1..65535", "65536.." },
Values { "Infinite", "Minutes for timeout", "Reserved" }]
uint32 Timeout);
[Description ( "Updates the statistics objects with new data." ),
ValueMap { "0", "1", "2" },
Values { "Success", "Policy not active", "Invalid parameter" }]
uint32 UpdateStatistics(
[Required, IN, Description (
"EPR to the CIM_EthernetPort object representing "
"the interface for which to update statistics" )]
CIM_EthernetPort REF NetworkInterface,
[Required, IN, Description (
"Causes statistics to be resetted" )]
boolean ResetOnRead);
};