From 356c47fb0ea1a642784e85c82833141d065bc4bc Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期二, 05 八月 2025 09:22:25 +0800
Subject: [PATCH] feat:动态控制器开发

---
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs |   53 ++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 34 insertions(+), 19 deletions(-)

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index c866ce6..064da2e 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -618,10 +618,19 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<string>("ActionName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("濮旀墭鍚嶇О");
+
                     b.Property<string>("Code")
                         .IsRequired()
                         .HasColumnType("nvarchar(max)")
                         .HasComment("缂栧彿");
+
+                    b.Property<int>("Controller")
+                        .HasColumnType("int")
+                        .HasComment("鎺у埗鍣�");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
@@ -647,10 +656,20 @@
                         .HasColumnType("nvarchar(max)")
                         .HasComment("鍚嶇О");
 
+                    b.Property<string>("RequestTypeFullName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("璇锋眰绫诲瀷鍏ㄥ悕");
+
                     b.Property<string>("RequestTypeName")
                         .IsRequired()
                         .HasColumnType("nvarchar(max)")
                         .HasComment("璇锋眰绫诲瀷鍚嶇О");
+
+                    b.Property<string>("ResponseTypeFullName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)")
+                        .HasComment("鍝嶅簲绫诲瀷鍏ㄥ悕");
 
                     b.Property<string>("ResponseTypeName")
                         .IsRequired()
@@ -661,11 +680,6 @@
                         .IsRequired()
                         .HasColumnType("nvarchar(max)")
                         .HasComment("璺敱");
-
-                    b.Property<string>("Service")
-                        .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("寰湇鍔�");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int")
@@ -813,7 +827,7 @@
                         .HasColumnType("uniqueidentifier")
                         .HasComment("鍒涘缓鎿嶄綔浜�");
 
-                    b.Property<int?>("DataPower")
+                    b.Property<int>("DataPower")
                         .HasColumnType("int")
                         .HasComment("鏁版嵁鏉冮檺");
 
@@ -821,9 +835,9 @@
                         .HasColumnType("bit")
                         .HasComment("鏄惁鍒犻櫎");
 
-                    b.Property<Guid>("MenuId")
+                    b.Property<Guid>("ResourceId")
                         .HasColumnType("uniqueidentifier")
-                        .HasComment("鑿滃崟Id");
+                        .HasComment("璧勬簮Id");
 
                     b.Property<Guid>("RoleId")
                         .HasColumnType("uniqueidentifier")
@@ -846,7 +860,7 @@
 
                     b.HasKey("Id");
 
-                    b.HasIndex("MenuId");
+                    b.HasIndex("ResourceId");
 
                     b.HasIndex("RoleId");
 
@@ -1235,8 +1249,9 @@
                             IsDeleted = false,
                             IsReal = false,
                             Name = "绠$悊鍛�",
+                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                             Sort = 0,
-                            UserName = "admin"
+                            UserName = "system"
                         });
                 });
 
@@ -1726,7 +1741,7 @@
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.Department", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Enterprise");
@@ -1743,7 +1758,7 @@
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Category");
@@ -1786,7 +1801,7 @@
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Menu", "Parent")
-                        .WithMany("Childrens")
+                        .WithMany("Children")
                         .HasForeignKey("ParentId");
 
                     b.Navigation("Parent");
@@ -1813,9 +1828,9 @@
 
             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();
 
@@ -1825,7 +1840,7 @@
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.Navigation("Menu");
+                    b.Navigation("Resource");
 
                     b.Navigation("Role");
                 });
@@ -2086,12 +2101,12 @@
 
             modelBuilder.Entity("FlexJobApi.Core.Department", b =>
                 {
-                    b.Navigation("Childrens");
+                    b.Navigation("Children");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
                 {
-                    b.Navigation("Childrens");
+                    b.Navigation("Children");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
@@ -2103,7 +2118,7 @@
 
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
                 {
-                    b.Navigation("Childrens");
+                    b.Navigation("Children");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Role", b =>

--
Gitblit v1.9.1