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

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

188 lines
9.9 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_BootConfigSetting.cs
//
// Contents: A class derived from SettingData that provides the container to arrange all the BootSourceSetting instances in an ordered sequence. There can be one or more of the BootConfigSetting instances associated to a ComputerSystem. For example, one such BootConfigSetting could be a default boot configuration supplied by the manufacturer, a second one could be a configuration recommended by the IT Administrator. A third one could be the one actually to be used on next system boot.
// This file was automatically generated from CIM_BootConfigSetting.mof
//
//----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Globalization;
using System.Xml.Serialization;
using System.IO;
using Intel.Manageability.WSManagement;
using Intel.Manageability.Cim.Untyped;
namespace Intel.Manageability.Cim.Typed
{
/// <summary>
///A class derived from SettingData that provides the container to arrange all the BootSourceSetting instances in an ordered sequence. There can be one or more of the BootConfigSetting instances associated to a ComputerSystem. For example, one such BootConfigSetting could be a default boot configuration supplied by the manufacturer, a second one could be a configuration recommended by the IT Administrator. A third one could be the one actually to be used on next system boot.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting")]
[System.Xml.Serialization.XmlRootAttribute("CIM_BootConfigSetting", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
public class CIM_BootConfigSetting : CIM_SettingData
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_BootConfigSetting() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_BootConfigSetting(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
/// <summary>
/// Constructor which recieves a Ws-Management client object.
/// </summary>
/// <param name="client">Ws-Management client</param>
public CIM_BootConfigSetting(IWSManClient client): base(client)
{
}
/// <summary>
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
private class ChangeBootOrder_INPUT : CimParams
{
public ChangeBootOrder_INPUT(string ns) : base(ns)
{
}
/// <summary>
/// Optional, An ordered array of BootSourceSettings.
/// </summary>
[CimField(false,false)]
public virtual CimReference[] Source
{
set
{
string[] strArray = new string[value.Length];
for (int i = 0; i < value.Length; i++)
{
strArray.SetValue(value[i].Serialize(false), i);
}
this.SetOrAddField("Source",strArray);
}
}
}
/// <summary>
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
private class ChangeBootOrder_OUTPUT : CimParams
{
public ChangeBootOrder_OUTPUT() : base("")
{
}
/// <summary>
/// Optional, Reference to the job spawned if the operation continues after the method returns. (May be null if the task is completed).
/// </summary>
[CimField(false,false)]
public virtual CimReference Job
{
get
{
string innerXML = this.GetField("Job")[0];
CimReference epr = new CimReference("Job", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", innerXML);
return epr;
}
}
}
/// <summary>
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
/// </summary>
/// <param name="inSource">Optional, IN -An ordered array of BootSourceSettings.</param>
/// <param name="outJob">OUT - Reference to the job spawned if the operation continues after the method returns. (May be null if the task is completed).</param>
/// <returns>
/// Legal values:
/// Completed with No Error : 0
/// Not Supported : 1
/// Unknown/Unspecified Error : 2
/// Busy : 3
/// Invalid Reference : 4
/// Invalid Parameter : 5
/// Access Denied : 6
/// DMTF Reserved : 7..32767
/// Vendor Specified : 32768..65535
/// </returns>
public virtual uint ChangeBootOrder(CimReference[] inSource,out CimReference outJob)
{
ChangeBootOrder_INPUT input = new ChangeBootOrder_INPUT(this.XmlNamespace);
if (inSource != null)
input.Source=inSource;
ChangeBootOrder_OUTPUT output = new ChangeBootOrder_OUTPUT();
uint returnValue = base.Invoke("ChangeBootOrder",input,out output);
outJob=null;
if (returnValue == 0)
{
if (output.ContainsField("Job"))
outJob = output.Job;
}
return returnValue;
}
/// <summary>
/// Enumerate instances of CIM_BootConfigSetting class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <param name="cimKeys">Keys for selecting the instances</param>
/// <returns>Collection of CIM_BootConfigSetting objects</returns>
public static new Collection<CIM_BootConfigSetting> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_BootConfigSetting> ret = CimBase.Enumerate<CIM_BootConfigSetting>(client, cimKeys);
return new Collection<CIM_BootConfigSetting>(ret);
}
/// <summary>
/// Enumerate instances of CIM_BootConfigSetting class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_BootConfigSetting objects</returns>
public static new Collection<CIM_BootConfigSetting> Enumerate(IWSManClient client)
{
List<CIM_BootConfigSetting> ret = CimBase.Enumerate<CIM_BootConfigSetting>(client);
return new Collection<CIM_BootConfigSetting>(ret);
}
/// <summary>
/// Delete the instance of CIM_BootConfigSetting if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
/// </summary>
/// <param name="client">WS-Management client</param>
public static new void Delete(IWSManClient client)
{
CimBase.Delete<CIM_BootConfigSetting>(client);
}
/// <summary>
/// Represents the keys of the CIM_BootConfigSetting class.
/// </summary>
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}