From 2b31b7e3926134da96d384ab3bdac345691a179c Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期五, 10 一月 2025 10:48:45 +0800
Subject: [PATCH] 优化权限

---
 WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuViewModel.cs |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuViewModel.cs
index 958552c..31fb3d7 100644
--- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuViewModel.cs
@@ -19,7 +19,7 @@
             this.ID = rhs.ID;
             this.ProjectID = rhs.ProjectID;
             this.ParentID = rhs.ParentID;
-            this.Type = rhs.Type;
+            this.Type = (eMenuType)rhs.Type;
             this.Name = rhs.Name;
             this.Path = rhs.Path;
             this.Permission = rhs.Permission;
@@ -37,7 +37,7 @@
             this.ID = rhs.ID;
             this.ProjectID = rhs.ProjectID;
             this.ParentID = rhs.ParentID;
-            this.Type = rhs.Type;
+            this.Type = (eMenuType)rhs.Type;
             this.Name = rhs.Name;
             this.Path = rhs.Path;
             this.Permission = rhs.Permission;
@@ -68,7 +68,7 @@
         /// 绫诲瀷
         /// </summary>
         [DisplayName("绫诲瀷")]
-        public int Type { get; set; }
+        public eMenuType Type { get; set; }
 
         /// <summary>
         /// 鍚嶇О
@@ -129,5 +129,26 @@
         /// </summary>
         [DisplayName("璇存槑")]
         public string Description { get; set; }
+
+        public enum eMenuType
+        {
+            /// <summary>
+            /// 鐩綍
+            /// </summary>
+            [Description("鐩綍")]
+            Catalog = 1,
+
+            /// <summary>
+            /// 鑿滃崟
+            /// </summary>
+            [Description("鑿滃崟")]
+            Munu = 2,
+
+            /// <summary>
+            /// 鍔熻兘鐐�
+            /// </summary>
+            [Description("鍔熻兘鐐�")]
+            Function = 3
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3