From 7374d934381f81e835314f60dc411b963614d803 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 04 八月 2025 18:36:29 +0800
Subject: [PATCH] pref:菜单优化

---
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs |  237 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 133 insertions(+), 104 deletions(-)

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index 91283db..f9ecf14 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -57,7 +57,8 @@
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("閮ㄩ棬璺緞");
 
                     b.Property<string>("Remark")
                         .HasColumnType("nvarchar(max)")
@@ -84,7 +85,7 @@
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("Department", t =>
+                    b.ToTable("Department", null, t =>
                         {
                             t.HasComment("閮ㄩ棬");
                         });
@@ -140,7 +141,7 @@
 
                     b.HasKey("Id");
 
-                    b.ToTable("DictionaryCategory", t =>
+                    b.ToTable("DictionaryCategory", null, t =>
                         {
                             t.HasComment("瀛楀吀绫诲埆");
                         });
@@ -202,7 +203,8 @@
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("瀛楀吀璺緞");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int")
@@ -225,7 +227,7 @@
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("DictionaryData", t =>
+                    b.ToTable("DictionaryData", null, t =>
                         {
                             t.HasComment("瀛楀吀鏁版嵁");
                         });
@@ -348,7 +350,7 @@
 
                     b.HasIndex("LicenseImageId");
 
-                    b.ToTable("Enterprise", t =>
+                    b.ToTable("Enterprise", null, t =>
                         {
                             t.HasComment("浼佷笟");
                         });
@@ -439,7 +441,7 @@
 
                     b.HasKey("Id");
 
-                    b.ToTable("FileStore", t =>
+                    b.ToTable("FileStore", null, t =>
                         {
                             t.HasComment("鏂囦欢瀛樺偍");
                         });
@@ -495,7 +497,7 @@
 
                     b.HasIndex("StoreId");
 
-                    b.ToTable("FileVirtualPath", t =>
+                    b.ToTable("FileVirtualPath", null, t =>
                         {
                             t.HasComment("鏂囦欢铏氭嫙璺緞");
                         });
@@ -506,6 +508,10 @@
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("ClientType")
+                        .HasColumnType("int")
+                        .HasComment("瀹㈡埛绔被鍨�");
 
                     b.Property<string>("Code")
                         .IsRequired()
@@ -539,9 +545,9 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁绂佺敤");
 
-                    b.Property<bool>("IsHidden")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁闅愯棌");
+                    b.Property<string>("Location")
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("浣嶇疆锛堢敤浜庢寜閽級");
 
                     b.Property<string>("Name")
                         .IsRequired()
@@ -554,7 +560,8 @@
                         .HasComment("涓婄骇Id");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鑿滃崟璺緞");
 
                     b.Property<string>("Remark")
                         .HasColumnType("nvarchar(max)")
@@ -583,20 +590,103 @@
                         .HasColumnType("nvarchar(max)")
                         .HasComment("閾炬帴鍦板潃");
 
+                    b.Property<int>("UserType")
+                        .HasColumnType("int")
+                        .HasComment("鐢ㄦ埛绫诲瀷");
+
                     b.Property<int>("VisitLevel")
                         .HasColumnType("int")
                         .HasComment("璁块棶绾у埆");
 
                     b.Property<string>("Width")
-                        .HasColumnType("nvarchar(max)");
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍒楀锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛�");
 
                     b.HasKey("Id");
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("Menu", t =>
+                    b.ToTable("Menu", null, t =>
                         {
                             t.HasComment("鑿滃崟");
+                        });
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("缂栧彿");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier")
+                        .HasComment("鍒涘缓鎿嶄綔浜�");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit")
+                        .HasComment("鏄惁鍒犻櫎");
+
+                    b.Property<bool>("IsExpired")
+                        .HasColumnType("bit")
+                        .HasComment("鏄惁宸茶繃鏈�");
+
+                    b.Property<int>("Method")
+                        .HasColumnType("int")
+                        .HasComment("璇锋眰鏂瑰紡");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍚嶇О");
+
+                    b.Property<string>("RequestTypeName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("璇锋眰绫诲瀷鍚嶇О");
+
+                    b.Property<string>("ResponseTypeName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍝嶅簲绫诲瀷鍚嶇О");
+
+                    b.Property<string>("Route")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("璺敱");
+
+                    b.Property<string>("Service")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("寰湇鍔�");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int")
+                        .HasComment("鎺掑簭");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("璺熻釜Id");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier")
+                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("Resource", null, t =>
+                        {
+                            t.HasComment("璧勬簮");
                         });
                 });
 
@@ -652,7 +742,7 @@
 
                     b.HasKey("Id");
 
-                    b.ToTable("Role", t =>
+                    b.ToTable("Role", null, t =>
                         {
                             t.HasComment("瑙掕壊");
                         });
@@ -704,13 +794,13 @@
 
                     b.HasIndex("RoleId");
 
-                    b.ToTable("RoleMenu", t =>
+                    b.ToTable("RoleMenu", null, t =>
                         {
                             t.HasComment("瑙掕壊鑿滃崟");
                         });
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.RoleWebApi", b =>
+            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
@@ -723,7 +813,7 @@
                         .HasColumnType("uniqueidentifier")
                         .HasComment("鍒涘缓鎿嶄綔浜�");
 
-                    b.Property<int?>("DataPower")
+                    b.Property<int>("DataPower")
                         .HasColumnType("int")
                         .HasComment("鏁版嵁鏉冮檺");
 
@@ -731,9 +821,9 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁鍒犻櫎");
 
-                    b.Property<Guid>("MenuId")
+                    b.Property<Guid>("ResourceId")
                         .HasColumnType("uniqueidentifier")
-                        .HasComment("鑿滃崟Id");
+                        .HasComment("璧勬簮Id");
 
                     b.Property<Guid>("RoleId")
                         .HasColumnType("uniqueidentifier")
@@ -756,13 +846,13 @@
 
                     b.HasKey("Id");
 
-                    b.HasIndex("MenuId");
+                    b.HasIndex("ResourceId");
 
                     b.HasIndex("RoleId");
 
-                    b.ToTable("RoleWebApi", t =>
+                    b.ToTable("RoleResource", null, t =>
                         {
-                            t.HasComment("瑙掕壊鎺ュ彛");
+                            t.HasComment("瑙掕壊璧勬簮");
                         });
                 });
 
@@ -853,7 +943,7 @@
 
                     b.HasIndex("EnterpriseId");
 
-                    b.ToTable("TaskInfo", t =>
+                    b.ToTable("TaskInfo", null, t =>
                         {
                             t.HasComment("浠诲姟淇℃伅");
                         });
@@ -908,7 +998,7 @@
 
                     b.HasIndex("BenefitId1");
 
-                    b.ToTable("TaskInfoBenefit", t =>
+                    b.ToTable("TaskInfoBenefit", null, t =>
                         {
                             t.HasComment("浠诲姟绂忓埄");
                         });
@@ -960,7 +1050,7 @@
 
                     b.HasIndex("TypeId");
 
-                    b.ToTable("TaskInfoCredentialLimit");
+                    b.ToTable("TaskInfoCredentialLimit", (string)null);
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
@@ -1025,7 +1115,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("TaskInfoUser", t =>
+                    b.ToTable("TaskInfoUser", null, t =>
                         {
                             t.HasComment("浠诲姟鐢ㄦ埛淇℃伅");
                         });
@@ -1131,7 +1221,7 @@
 
                     b.HasIndex("IdentityImgId");
 
-                    b.ToTable("UserAuth", t =>
+                    b.ToTable("UserAuth", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛");
                         });
@@ -1145,8 +1235,9 @@
                             IsDeleted = false,
                             IsReal = false,
                             Name = "绠$悊鍛�",
+                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                             Sort = 0,
-                            UserName = "admin"
+                            UserName = "system"
                         });
                 });
 
@@ -1251,7 +1342,7 @@
 
                     b.HasIndex("UserAuthId");
 
-                    b.ToTable("UserInfo", t =>
+                    b.ToTable("UserInfo", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅");
                         });
@@ -1327,7 +1418,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoBankCard", t =>
+                    b.ToTable("UserInfoBankCard", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�");
                         });
@@ -1413,7 +1504,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoCredential", t =>
+                    b.ToTable("UserInfoCredential", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功");
                         });
@@ -1465,7 +1556,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoDepartment", t =>
+                    b.ToTable("UserInfoDepartment", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬");
                         });
@@ -1517,7 +1608,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoExpectJob", t =>
+                    b.ToTable("UserInfoExpectJob", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅");
                         });
@@ -1569,7 +1660,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoPhoto", t =>
+                    b.ToTable("UserInfoPhoto", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�");
                         });
@@ -1621,71 +1712,9 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoRole", t =>
+                    b.ToTable("UserInfoRole", null, t =>
                         {
                             t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊");
-                        });
-                });
-
-            modelBuilder.Entity("FlexJobApi.Core.WebApi", b =>
-                {
-                    b.Property<Guid>("Id")
-                        .ValueGeneratedOnAdd()
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<string>("Code")
-                        .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("缂栧彿");
-
-                    b.Property<DateTimeOffset>("CreatedTime")
-                        .HasColumnType("datetimeoffset");
-
-                    b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
-
-                    b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
-
-                    b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
-
-                    b.Property<int>("Method")
-                        .HasColumnType("int")
-                        .HasComment("璇锋眰鏂瑰紡");
-
-                    b.Property<string>("Name")
-                        .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍚嶇О");
-
-                    b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
-
-                    b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<DateTimeOffset?>("UpdatedTime")
-                        .HasColumnType("datetimeoffset");
-
-                    b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
-
-                    b.Property<string>("Url")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺敱鍦板潃");
-
-                    b.HasKey("Id");
-
-                    b.ToTable("WebApi", t =>
-                        {
-                            t.HasComment("鎺ュ彛");
                         });
                 });
 
@@ -1783,21 +1812,21 @@
                     b.Navigation("Role");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.RoleWebApi", b =>
+            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
                 {
-                    b.HasOne("FlexJobApi.Core.Menu", "Menu")
+                    b.HasOne("FlexJobApi.Core.Resource", "Resource")
                         .WithMany()
-                        .HasForeignKey("MenuId")
+                        .HasForeignKey("ResourceId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.Role", "Role")
-                        .WithMany("RoleWebApis")
+                        .WithMany("RoleResources")
                         .HasForeignKey("RoleId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.Navigation("Menu");
+                    b.Navigation("Resource");
 
                     b.Navigation("Role");
                 });
@@ -2082,7 +2111,7 @@
                 {
                     b.Navigation("RoleMenus");
 
-                    b.Navigation("RoleWebApis");
+                    b.Navigation("RoleResources");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>

--
Gitblit v1.9.1