2025-07-24 15:07:03 +08:00
|
|
|
|
using DMS.Core.Enums;
|
|
|
|
|
|
|
2025-07-19 09:25:01 +08:00
|
|
|
|
namespace DMS.Core.Models;
|
2025-06-25 22:33:57 +08:00
|
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
|
/// <summary>
|
2025-07-21 14:35:17 +08:00
|
|
|
|
/// 领域模型:代表一个菜单项。
|
2025-07-03 13:17:25 +08:00
|
|
|
|
/// </summary>
|
2025-06-25 22:33:57 +08:00
|
|
|
|
public class MenuBean
|
|
|
|
|
|
{
|
2025-07-03 13:17:25 +08:00
|
|
|
|
public int Id { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
|
public int? ParentId { get; set; }
|
|
|
|
|
|
public string Header { get; set; }
|
|
|
|
|
|
public string Icon { get; set; }
|
2025-07-24 15:07:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单的类型,例如菜单关联的是设备,还是变量表,或者是MQTT
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MenuType MenuType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单关联的数据ID,例如设备Id,变量表Id
|
|
|
|
|
|
/// </summary>
|
2025-07-26 16:32:01 +08:00
|
|
|
|
public int TargetId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单关联的数据ID,例如设备Id,变量表Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string TargetViewKey { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
|
public string NavigationParameter { get; set; }
|
|
|
|
|
|
public int DisplayOrder { get; set; }
|
2025-06-25 22:33:57 +08:00
|
|
|
|
}
|