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 | 82 ++++++++++++++++++++++++----------------- 1 files changed, 48 insertions(+), 34 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index f9ecf14..064da2e 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -85,7 +85,7 @@ b.HasIndex("ParentId"); - b.ToTable("Department", null, t => + b.ToTable("Department", t => { t.HasComment("閮ㄩ棬"); }); @@ -141,7 +141,7 @@ b.HasKey("Id"); - b.ToTable("DictionaryCategory", null, t => + b.ToTable("DictionaryCategory", t => { t.HasComment("瀛楀吀绫诲埆"); }); @@ -227,7 +227,7 @@ b.HasIndex("ParentId"); - b.ToTable("DictionaryData", null, t => + b.ToTable("DictionaryData", t => { t.HasComment("瀛楀吀鏁版嵁"); }); @@ -350,7 +350,7 @@ b.HasIndex("LicenseImageId"); - b.ToTable("Enterprise", null, t => + b.ToTable("Enterprise", t => { t.HasComment("浼佷笟"); }); @@ -441,7 +441,7 @@ b.HasKey("Id"); - b.ToTable("FileStore", null, t => + b.ToTable("FileStore", t => { t.HasComment("鏂囦欢瀛樺偍"); }); @@ -497,7 +497,7 @@ b.HasIndex("StoreId"); - b.ToTable("FileVirtualPath", null, t => + b.ToTable("FileVirtualPath", t => { t.HasComment("鏂囦欢铏氭嫙璺緞"); }); @@ -606,7 +606,7 @@ b.HasIndex("ParentId"); - b.ToTable("Menu", null, t => + b.ToTable("Menu", t => { t.HasComment("鑿滃崟"); }); @@ -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") @@ -684,7 +698,7 @@ b.HasKey("Id"); - b.ToTable("Resource", null, t => + b.ToTable("Resource", t => { t.HasComment("璧勬簮"); }); @@ -742,7 +756,7 @@ b.HasKey("Id"); - b.ToTable("Role", null, t => + b.ToTable("Role", t => { t.HasComment("瑙掕壊"); }); @@ -794,7 +808,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleMenu", null, t => + b.ToTable("RoleMenu", t => { t.HasComment("瑙掕壊鑿滃崟"); }); @@ -850,7 +864,7 @@ b.HasIndex("RoleId"); - b.ToTable("RoleResource", null, t => + b.ToTable("RoleResource", t => { t.HasComment("瑙掕壊璧勬簮"); }); @@ -943,7 +957,7 @@ b.HasIndex("EnterpriseId"); - b.ToTable("TaskInfo", null, t => + b.ToTable("TaskInfo", t => { t.HasComment("浠诲姟淇℃伅"); }); @@ -998,7 +1012,7 @@ b.HasIndex("BenefitId1"); - b.ToTable("TaskInfoBenefit", null, t => + b.ToTable("TaskInfoBenefit", t => { t.HasComment("浠诲姟绂忓埄"); }); @@ -1050,7 +1064,7 @@ b.HasIndex("TypeId"); - b.ToTable("TaskInfoCredentialLimit", (string)null); + b.ToTable("TaskInfoCredentialLimit"); }); modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => @@ -1115,7 +1129,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("TaskInfoUser", null, t => + b.ToTable("TaskInfoUser", t => { t.HasComment("浠诲姟鐢ㄦ埛淇℃伅"); }); @@ -1221,7 +1235,7 @@ b.HasIndex("IdentityImgId"); - b.ToTable("UserAuth", null, t => + b.ToTable("UserAuth", t => { t.HasComment("鐢ㄦ埛"); }); @@ -1342,7 +1356,7 @@ b.HasIndex("UserAuthId"); - b.ToTable("UserInfo", null, t => + b.ToTable("UserInfo", t => { t.HasComment("鐢ㄦ埛淇℃伅"); }); @@ -1418,7 +1432,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoBankCard", null, t => + b.ToTable("UserInfoBankCard", t => { t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�"); }); @@ -1504,7 +1518,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoCredential", null, t => + b.ToTable("UserInfoCredential", t => { t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功"); }); @@ -1556,7 +1570,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoDepartment", null, t => + b.ToTable("UserInfoDepartment", t => { t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬"); }); @@ -1608,7 +1622,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoExpectJob", null, t => + b.ToTable("UserInfoExpectJob", t => { t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅"); }); @@ -1660,7 +1674,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoPhoto", null, t => + b.ToTable("UserInfoPhoto", t => { t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�"); }); @@ -1712,7 +1726,7 @@ b.HasIndex("UserInfoId"); - b.ToTable("UserInfoRole", null, t => + b.ToTable("UserInfoRole", t => { t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊"); }); @@ -1727,7 +1741,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.Department", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Enterprise"); @@ -1744,7 +1758,7 @@ .IsRequired(); b.HasOne("FlexJobApi.Core.DictionaryData", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Category"); @@ -1787,7 +1801,7 @@ modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.HasOne("FlexJobApi.Core.Menu", "Parent") - .WithMany("Childrens") + .WithMany("Children") .HasForeignKey("ParentId"); b.Navigation("Parent"); @@ -2087,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 => @@ -2104,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