diff --git a/aspnet-core/Directory.Build.Volo.targets b/aspnet-core/Directory.Build.Volo.targets index 15fda5ed..e43733ce 100644 --- a/aspnet-core/Directory.Build.Volo.targets +++ b/aspnet-core/Directory.Build.Volo.targets @@ -6,6 +6,7 @@ + diff --git a/aspnet-core/Lion.AbpPro.sln b/aspnet-core/Lion.AbpPro.sln index 9a3a9483..1cf8bff9 100644 --- a/aspnet-core/Lion.AbpPro.sln +++ b/aspnet-core/Lion.AbpPro.sln @@ -173,6 +173,40 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "host", "host", "{7FF93622-9 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.NotificationManagement.HttpApi.Host", "modules\NotificationManagement\host\Lion.AbpPro.NotificationManagement.HttpApi.Host\Lion.AbpPro.NotificationManagement.HttpApi.Host.csproj", "{FA5E029F-1826-4C1E-8AED-6FA5C3362A3A}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BasicManagement", "BasicManagement", "{C2FE6BA0-3DE5-403F-A91F-BCB9ADA5B068}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "host", "host", "{4E6D558B-CA6D-4133-8701-FDC6F245DA37}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AF419621-2F14-45CE-AF1B-B688E1B21BCB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{6464122A-1DC2-45E8-B599-4B5C32FBC85B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.HttpApi.Client", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.HttpApi.Client\Lion.AbpPro.BasicManagement.HttpApi.Client.csproj", "{97EE641B-69AB-40A6-B20B-4A7FD3B2681E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.HttpApi", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.HttpApi\Lion.AbpPro.BasicManagement.HttpApi.csproj", "{0EE57014-A75A-4E54-97B6-785C2F874EA4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.EntityFrameworkCore", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.EntityFrameworkCore\Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj", "{4F5841EB-A0C9-4E89-AA02-376F2190F68D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Domain.Shared", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Domain.Shared\Lion.AbpPro.BasicManagement.Domain.Shared.csproj", "{C4E1B96F-7905-48ED-AD72-98F5983E65A5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Domain", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Domain\Lion.AbpPro.BasicManagement.Domain.csproj", "{95385FBA-53E4-4144-B6FE-B5561081B9F9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Application.Contracts", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application.Contracts\Lion.AbpPro.BasicManagement.Application.Contracts.csproj", "{4D808FF7-C204-40F1-881D-21B27D8D290E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Application", "modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Lion.AbpPro.BasicManagement.Application.csproj", "{354E0590-F6B2-43F5-A563-F543C498F3EA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.TestBase", "modules\BasicManagement\test\Lion.AbpPro.BasicManagement.TestBase\Lion.AbpPro.BasicManagement.TestBase.csproj", "{47F2E236-E6BE-4F52-8389-5CF03BDC9B78}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp", "modules\BasicManagement\test\Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp\Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.csproj", "{1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests", "modules\BasicManagement\test\Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests\Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests.csproj", "{9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Domain.Tests", "modules\BasicManagement\test\Lion.AbpPro.BasicManagement.Domain.Tests\Lion.AbpPro.BasicManagement.Domain.Tests.csproj", "{2BACB63E-2830-4371-AEBB-E8089E3EB316}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.Application.Tests", "modules\BasicManagement\test\Lion.AbpPro.BasicManagement.Application.Tests\Lion.AbpPro.BasicManagement.Application.Tests.csproj", "{19A28EF9-A5AE-4EC5-851C-D2547E5FE29C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lion.AbpPro.BasicManagement.HttpApi.Host", "modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host\Lion.AbpPro.BasicManagement.HttpApi.Host.csproj", "{26765303-B9D8-457B-915C-ED869CEEB210}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -407,6 +441,58 @@ Global {FA5E029F-1826-4C1E-8AED-6FA5C3362A3A}.Debug|Any CPU.Build.0 = Debug|Any CPU {FA5E029F-1826-4C1E-8AED-6FA5C3362A3A}.Release|Any CPU.ActiveCfg = Release|Any CPU {FA5E029F-1826-4C1E-8AED-6FA5C3362A3A}.Release|Any CPU.Build.0 = Release|Any CPU + {97EE641B-69AB-40A6-B20B-4A7FD3B2681E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {97EE641B-69AB-40A6-B20B-4A7FD3B2681E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {97EE641B-69AB-40A6-B20B-4A7FD3B2681E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {97EE641B-69AB-40A6-B20B-4A7FD3B2681E}.Release|Any CPU.Build.0 = Release|Any CPU + {0EE57014-A75A-4E54-97B6-785C2F874EA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0EE57014-A75A-4E54-97B6-785C2F874EA4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0EE57014-A75A-4E54-97B6-785C2F874EA4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0EE57014-A75A-4E54-97B6-785C2F874EA4}.Release|Any CPU.Build.0 = Release|Any CPU + {4F5841EB-A0C9-4E89-AA02-376F2190F68D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4F5841EB-A0C9-4E89-AA02-376F2190F68D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F5841EB-A0C9-4E89-AA02-376F2190F68D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4F5841EB-A0C9-4E89-AA02-376F2190F68D}.Release|Any CPU.Build.0 = Release|Any CPU + {C4E1B96F-7905-48ED-AD72-98F5983E65A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C4E1B96F-7905-48ED-AD72-98F5983E65A5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C4E1B96F-7905-48ED-AD72-98F5983E65A5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C4E1B96F-7905-48ED-AD72-98F5983E65A5}.Release|Any CPU.Build.0 = Release|Any CPU + {95385FBA-53E4-4144-B6FE-B5561081B9F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {95385FBA-53E4-4144-B6FE-B5561081B9F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {95385FBA-53E4-4144-B6FE-B5561081B9F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {95385FBA-53E4-4144-B6FE-B5561081B9F9}.Release|Any CPU.Build.0 = Release|Any CPU + {4D808FF7-C204-40F1-881D-21B27D8D290E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4D808FF7-C204-40F1-881D-21B27D8D290E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4D808FF7-C204-40F1-881D-21B27D8D290E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4D808FF7-C204-40F1-881D-21B27D8D290E}.Release|Any CPU.Build.0 = Release|Any CPU + {354E0590-F6B2-43F5-A563-F543C498F3EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {354E0590-F6B2-43F5-A563-F543C498F3EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {354E0590-F6B2-43F5-A563-F543C498F3EA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {354E0590-F6B2-43F5-A563-F543C498F3EA}.Release|Any CPU.Build.0 = Release|Any CPU + {47F2E236-E6BE-4F52-8389-5CF03BDC9B78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47F2E236-E6BE-4F52-8389-5CF03BDC9B78}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47F2E236-E6BE-4F52-8389-5CF03BDC9B78}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47F2E236-E6BE-4F52-8389-5CF03BDC9B78}.Release|Any CPU.Build.0 = Release|Any CPU + {1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69}.Release|Any CPU.Build.0 = Release|Any CPU + {9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D}.Release|Any CPU.Build.0 = Release|Any CPU + {2BACB63E-2830-4371-AEBB-E8089E3EB316}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2BACB63E-2830-4371-AEBB-E8089E3EB316}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2BACB63E-2830-4371-AEBB-E8089E3EB316}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2BACB63E-2830-4371-AEBB-E8089E3EB316}.Release|Any CPU.Build.0 = Release|Any CPU + {19A28EF9-A5AE-4EC5-851C-D2547E5FE29C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19A28EF9-A5AE-4EC5-851C-D2547E5FE29C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19A28EF9-A5AE-4EC5-851C-D2547E5FE29C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19A28EF9-A5AE-4EC5-851C-D2547E5FE29C}.Release|Any CPU.Build.0 = Release|Any CPU + {26765303-B9D8-457B-915C-ED869CEEB210}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26765303-B9D8-457B-915C-ED869CEEB210}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26765303-B9D8-457B-915C-ED869CEEB210}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26765303-B9D8-457B-915C-ED869CEEB210}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -488,6 +574,23 @@ Global {7971DF5A-B001-4751-8F40-D7752C612BF1} = {04DBDB01-70F4-4E06-B468-8F87850B22BE} {7FF93622-971D-4B30-A5FC-72D729D26E29} = {EB2B8705-18E7-49E1-A565-93A6DE5570D5} {FA5E029F-1826-4C1E-8AED-6FA5C3362A3A} = {7FF93622-971D-4B30-A5FC-72D729D26E29} + {C2FE6BA0-3DE5-403F-A91F-BCB9ADA5B068} = {F8A8EB2A-2D4B-464F-9A13-F8F7B6A8FAA3} + {4E6D558B-CA6D-4133-8701-FDC6F245DA37} = {C2FE6BA0-3DE5-403F-A91F-BCB9ADA5B068} + {AF419621-2F14-45CE-AF1B-B688E1B21BCB} = {C2FE6BA0-3DE5-403F-A91F-BCB9ADA5B068} + {6464122A-1DC2-45E8-B599-4B5C32FBC85B} = {C2FE6BA0-3DE5-403F-A91F-BCB9ADA5B068} + {97EE641B-69AB-40A6-B20B-4A7FD3B2681E} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {0EE57014-A75A-4E54-97B6-785C2F874EA4} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {4F5841EB-A0C9-4E89-AA02-376F2190F68D} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {C4E1B96F-7905-48ED-AD72-98F5983E65A5} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {95385FBA-53E4-4144-B6FE-B5561081B9F9} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {4D808FF7-C204-40F1-881D-21B27D8D290E} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {354E0590-F6B2-43F5-A563-F543C498F3EA} = {AF419621-2F14-45CE-AF1B-B688E1B21BCB} + {47F2E236-E6BE-4F52-8389-5CF03BDC9B78} = {6464122A-1DC2-45E8-B599-4B5C32FBC85B} + {1368FE7F-E1A7-4FD5-AF05-CFA59C0E0E69} = {6464122A-1DC2-45E8-B599-4B5C32FBC85B} + {9ECCC0EC-CC5A-4E49-96BE-3F2B15CCD94D} = {6464122A-1DC2-45E8-B599-4B5C32FBC85B} + {2BACB63E-2830-4371-AEBB-E8089E3EB316} = {6464122A-1DC2-45E8-B599-4B5C32FBC85B} + {19A28EF9-A5AE-4EC5-851C-D2547E5FE29C} = {6464122A-1DC2-45E8-B599-4B5C32FBC85B} + {26765303-B9D8-457B-915C-ED869CEEB210} = {4E6D558B-CA6D-4133-8701-FDC6F245DA37} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F} diff --git a/aspnet-core/modules/BasicManagement/Lion.AbpPro.BasicManagement.sln b/aspnet-core/modules/BasicManagement/Lion.AbpPro.BasicManagement.sln new file mode 100644 index 00000000..06bc99b8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/Lion.AbpPro.BasicManagement.sln @@ -0,0 +1,118 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29001.49 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Domain.Shared", "src\Lion.AbpPro.BasicManagement.Domain.Shared\Lion.AbpPro.BasicManagement.Domain.Shared.csproj", "{D64C1577-4929-4B60-939E-96DE1534891A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Domain", "src\Lion.AbpPro.BasicManagement.Domain\Lion.AbpPro.BasicManagement.Domain.csproj", "{F2840BC7-0188-4606-9126-DADD0F5ABF7A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Application.Contracts", "src\Lion.AbpPro.BasicManagement.Application.Contracts\Lion.AbpPro.BasicManagement.Application.Contracts.csproj", "{BD65D04F-08D5-40C1-8C24-77CA0BACB877}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Application", "src\Lion.AbpPro.BasicManagement.Application\Lion.AbpPro.BasicManagement.Application.csproj", "{78040F9E-3501-4A40-82DF-00A597710F35}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{649A3FFA-182F-4E56-9717-E6A9A2BEC545}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "host", "host", "{E400416D-2895-4512-9D17-90681EEC7E0A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.EntityFrameworkCore", "src\Lion.AbpPro.BasicManagement.EntityFrameworkCore\Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj", "{0CE86223-D31D-4315-A1F5-87BA3EE1B844}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.HttpApi", "src\Lion.AbpPro.BasicManagement.HttpApi\Lion.AbpPro.BasicManagement.HttpApi.csproj", "{077AA5F8-8B61-420C-A6B5-0150A66FDB34}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.HttpApi.Client", "src\Lion.AbpPro.BasicManagement.HttpApi.Client\Lion.AbpPro.BasicManagement.HttpApi.Client.csproj", "{36E2735F-CEAB-44C8-A6D1-2CDAFF399751}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.TestBase", "test\Lion.AbpPro.BasicManagement.TestBase\Lion.AbpPro.BasicManagement.TestBase.csproj", "{C5BB573D-3030-4BCB-88B7-F6A85C32766C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests", "test\Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests\Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests.csproj", "{527F645C-C1FC-406E-8479-81386C8ECF13}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Domain.Tests", "test\Lion.AbpPro.BasicManagement.Domain.Tests\Lion.AbpPro.BasicManagement.Domain.Tests.csproj", "{E60895E5-79C4-447D-88B7-85CB5BA336A4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.Application.Tests", "test\Lion.AbpPro.BasicManagement.Application.Tests\Lion.AbpPro.BasicManagement.Application.Tests.csproj", "{90CB5DC4-C040-45C7-8900-9688B26405BC}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.HttpApi.Host", "host\Lion.AbpPro.BasicManagement.HttpApi.Host\Lion.AbpPro.BasicManagement.HttpApi.Host.csproj", "{37B135B0-DAFE-4616-B25C-1BDF32FC44A2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp", "test\Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp\Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.csproj", "{1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D64C1577-4929-4B60-939E-96DE1534891A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D64C1577-4929-4B60-939E-96DE1534891A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D64C1577-4929-4B60-939E-96DE1534891A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D64C1577-4929-4B60-939E-96DE1534891A}.Release|Any CPU.Build.0 = Release|Any CPU + {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Release|Any CPU.Build.0 = Release|Any CPU + {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Release|Any CPU.Build.0 = Release|Any CPU + {78040F9E-3501-4A40-82DF-00A597710F35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {78040F9E-3501-4A40-82DF-00A597710F35}.Debug|Any CPU.Build.0 = Debug|Any CPU + {78040F9E-3501-4A40-82DF-00A597710F35}.Release|Any CPU.ActiveCfg = Release|Any CPU + {78040F9E-3501-4A40-82DF-00A597710F35}.Release|Any CPU.Build.0 = Release|Any CPU + {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Release|Any CPU.Build.0 = Release|Any CPU + {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Debug|Any CPU.Build.0 = Debug|Any CPU + {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Release|Any CPU.ActiveCfg = Release|Any CPU + {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Release|Any CPU.Build.0 = Release|Any CPU + {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Debug|Any CPU.Build.0 = Debug|Any CPU + {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Release|Any CPU.ActiveCfg = Release|Any CPU + {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Release|Any CPU.Build.0 = Release|Any CPU + {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Release|Any CPU.Build.0 = Release|Any CPU + {527F645C-C1FC-406E-8479-81386C8ECF13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {527F645C-C1FC-406E-8479-81386C8ECF13}.Debug|Any CPU.Build.0 = Debug|Any CPU + {527F645C-C1FC-406E-8479-81386C8ECF13}.Release|Any CPU.ActiveCfg = Release|Any CPU + {527F645C-C1FC-406E-8479-81386C8ECF13}.Release|Any CPU.Build.0 = Release|Any CPU + {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Release|Any CPU.Build.0 = Release|Any CPU + {90CB5DC4-C040-45C7-8900-9688B26405BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {90CB5DC4-C040-45C7-8900-9688B26405BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {90CB5DC4-C040-45C7-8900-9688B26405BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {90CB5DC4-C040-45C7-8900-9688B26405BC}.Release|Any CPU.Build.0 = Release|Any CPU + {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Release|Any CPU.Build.0 = Release|Any CPU + {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D64C1577-4929-4B60-939E-96DE1534891A} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {F2840BC7-0188-4606-9126-DADD0F5ABF7A} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {BD65D04F-08D5-40C1-8C24-77CA0BACB877} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {78040F9E-3501-4A40-82DF-00A597710F35} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {0CE86223-D31D-4315-A1F5-87BA3EE1B844} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {077AA5F8-8B61-420C-A6B5-0150A66FDB34} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {36E2735F-CEAB-44C8-A6D1-2CDAFF399751} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} + {C5BB573D-3030-4BCB-88B7-F6A85C32766C} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} + {527F645C-C1FC-406E-8479-81386C8ECF13} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} + {E60895E5-79C4-447D-88B7-85CB5BA336A4} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} + {90CB5DC4-C040-45C7-8900-9688B26405BC} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} + {37B135B0-DAFE-4616-B25C-1BDF32FC44A2} = {E400416D-2895-4512-9D17-90681EEC7E0A} + {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4324B3B4-B60B-4E3C-91D8-59576B4E26DD} + EndGlobalSection +EndGlobal diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/BasicManagementHttpApiHostModule.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/BasicManagementHttpApiHostModule.cs new file mode 100644 index 00000000..64235651 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/BasicManagementHttpApiHostModule.cs @@ -0,0 +1,240 @@ +using System.Text; +using Microsoft.AspNetCore.Authentication.JwtBearer; +using Microsoft.AspNetCore.DataProtection; +using Lion.AbpPro.BasicManagement.EntityFrameworkCore; +using Lion.AbpPro.Shared.Hosting.Microservices; +using Lion.AbpPro.Shared.Hosting.Microservices.Swaggers; +using Microsoft.AspNetCore.Mvc; +using Microsoft.IdentityModel.Tokens; +using StackExchange.Redis; +using Microsoft.OpenApi.Models; +using Swashbuckle.AspNetCore.SwaggerUI; +using Volo.Abp; +using Volo.Abp.AspNetCore.ExceptionHandling; +using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy; +using Volo.Abp.AspNetCore.Serilog; +using Volo.Abp.Autofac; +using Volo.Abp.Caching; +using Volo.Abp.Caching.StackExchangeRedis; +using Volo.Abp.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore.MySQL; +using Volo.Abp.Localization; +using Volo.Abp.Modularity; +using Volo.Abp.Swashbuckle; +using Volo.Abp.VirtualFileSystem; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementApplicationModule), + typeof(BasicManagementEntityFrameworkCoreModule), + typeof(BasicManagementHttpApiModule), + typeof(AbpAspNetCoreMvcUiMultiTenancyModule), + typeof(AbpAutofacModule), + typeof(AbpCachingStackExchangeRedisModule), + typeof(AbpEntityFrameworkCoreMySQLModule), + typeof(AbpAspNetCoreSerilogModule), + typeof(AbpSwashbuckleModule), + typeof(SharedHostingMicroserviceModule) +)] +public class BasicManagementHttpApiHostModule : AbpModule +{ + private const string DefaultCorsPolicyName = "Default"; + + public override void ConfigureServices(ServiceConfigurationContext context) + { + ConfigureCache(context); + ConfigureSwaggerServices(context); + ConfigureJwtAuthentication(context); + Configure(options => { options.UseMySQL(); }); + Configure(options => + { + options.SendExceptionsDetailsToClients = false; + }); + ConfigureVirtualFileSystem(context); + } + + public override void OnApplicationInitialization(ApplicationInitializationContext context) + { + var app = context.GetApplicationBuilder(); + + app.UseCorrelationId(); + app.UseStaticFiles(); + app.UseRouting(); + app.UseCors(); + app.UseAuthentication(); + app.UseMultiTenancy(); + app.UseAbpRequestLocalization(); + app.UseAuthorization(); + app.UseSwagger(); + app.UseAbpSwaggerUI(options => + { + options.SwaggerEndpoint("/swagger/BasicManagement/swagger.json", "BasicManagement API"); + options.DocExpansion(DocExpansion.None); + options.DefaultModelsExpandDepth(-1); + }); + app.UseAuditing(); + app.UseAbpSerilogEnrichers(); + app.UseConfiguredEndpoints(); + } + /// + /// 配置虚拟文件系统 + /// + /// + private void ConfigureVirtualFileSystem(ServiceConfigurationContext context) + { + Configure(options => + { + options.FileSets.AddEmbedded(); + }); + } + /// + /// Redis缓存 + /// + private void ConfigureCache(ServiceConfigurationContext context) + { + Configure( + options => { options.KeyPrefix = "AbpPro:"; }); + var configuration = context.Services.GetConfiguration(); + var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); + context.Services + .AddDataProtection() + .PersistKeysToStackExchangeRedis(redis, "AbpPro-Protection-Keys"); + } + + private static void ConfigureSwaggerServices(ServiceConfigurationContext context) + { + context.Services.AddSwaggerGen( + options => + { + // 文件下载类型 + options.MapType(() => new OpenApiSchema() { Type = "file" }); + + options.SwaggerDoc("BasicManagement", + new OpenApiInfo { Title = "BasicManagement API", Version = "v1" }); + options.DocInclusionPredicate((docName, description) => true); + options.EnableAnnotations(); // 启用注解 + options.DocumentFilter(); + options.SchemaFilter(); + // 加载所有xml注释,这里会导致swagger加载有点缓慢 + var xmlPaths = Directory.GetFiles(AppContext.BaseDirectory, "*.xml"); + foreach (var xml in xmlPaths) + { + options.IncludeXmlComments(xml, true); + } + + options.AddSecurityDefinition(JwtBearerDefaults.AuthenticationScheme, + new OpenApiSecurityScheme() + { + Description = "直接在下框输入JWT生成的Token", + Name = "Authorization", + In = ParameterLocation.Header, + Type = SecuritySchemeType.Http, + Scheme = JwtBearerDefaults.AuthenticationScheme, + BearerFormat = "JWT" + }); + options.AddSecurityRequirement(new OpenApiSecurityRequirement + { + { + new OpenApiSecurityScheme + { + Reference = new OpenApiReference + { + Type = ReferenceType.SecurityScheme, Id = "Bearer" + } + }, + new List() + } + }); + + options.AddSecurityDefinition("ApiKey", new OpenApiSecurityScheme() + { + Type = SecuritySchemeType.ApiKey, + In = ParameterLocation.Header, + Name = "Accept-Language", + Description = "多语言设置,系统预设语言有zh-Hans、en,默认为zh-Hans", + }); + + options.AddSecurityRequirement(new OpenApiSecurityRequirement + { + { + new OpenApiSecurityScheme + { + Reference = new OpenApiReference + { Type = ReferenceType.SecurityScheme, Id = "ApiKey" } + }, + Array.Empty() + } + }); + }); + } + + /// + /// 配置JWT + /// + private void ConfigureJwtAuthentication(ServiceConfigurationContext context) + { + var configuration = context.Services.GetConfiguration(); + context.Services.AddAuthentication(options => + { + options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; + options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; + }) + .AddJwtBearer(options => + { + options.TokenValidationParameters = + new TokenValidationParameters() + { + // 是否开启签名认证 + ValidateIssuerSigningKey = true, + ValidateIssuer = true, + ValidateAudience = true, + ValidateLifetime = true, + //ClockSkew = TimeSpan.Zero, + ValidIssuer = configuration["Jwt:Issuer"], + ValidAudience = configuration["Jwt:Audience"], + IssuerSigningKey = + new SymmetricSecurityKey( + Encoding.ASCII.GetBytes(configuration["Jwt:SecurityKey"])) + }; + + options.Events = new JwtBearerEvents + { + OnMessageReceived = currentContext => + { + var path = currentContext.HttpContext.Request.Path; + if (path.StartsWithSegments("/login")) + { + return Task.CompletedTask; + } + + var accessToken = string.Empty; + if (currentContext.HttpContext.Request.Headers.ContainsKey("Authorization")) + { + accessToken = currentContext.HttpContext.Request.Headers["Authorization"]; + if (!string.IsNullOrWhiteSpace(accessToken)) + { + accessToken = accessToken.Split(" ").LastOrDefault(); + } + } + + if (accessToken.IsNullOrWhiteSpace()) + { + accessToken = currentContext.Request.Query["access_token"].FirstOrDefault(); + } + + if (accessToken.IsNullOrWhiteSpace()) + { + accessToken = currentContext.Request.Cookies[DefaultCorsPolicyName]; + } + + currentContext.Token = accessToken; + currentContext.Request.Headers.Remove("Authorization"); + currentContext.Request.Headers.Add("Authorization", $"Bearer {accessToken}"); + + return Task.CompletedTask; + } + }; + }); + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Controllers/HomeController.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Controllers/HomeController.cs new file mode 100644 index 00000000..8455b54d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Controllers/HomeController.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Volo.Abp.AspNetCore.Mvc; + +namespace Lion.AbpPro.BasicManagement.Controllers; + +public class HomeController : AbpController +{ + public ActionResult Index() + { + return Redirect("~/swagger"); + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Dockerfile b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Dockerfile new file mode 100644 index 00000000..504518f2 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Dockerfile @@ -0,0 +1,18 @@ +FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base +WORKDIR /app +EXPOSE 80 + +FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build +WORKDIR /src +COPY . . +WORKDIR /src/templates/service/host/Lion.AbpPro.BasicManagement.HttpApi.Host +RUN dotnet restore -nowarn:msb3202,nu1503 +RUN dotnet build --no-restore -c Release -o /app + +FROM build AS publish +RUN dotnet publish --no-restore -c Release -o /app + +FROM base AS final +WORKDIR /app +COPY --from=publish /app . +ENTRYPOINT ["dotnet", "Lion.AbpPro.BasicManagement.HttpApi.Host.dll"] diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContext.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContext.cs new file mode 100644 index 00000000..9a3bd045 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContext.cs @@ -0,0 +1,20 @@ +using Microsoft.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore; + +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +public class BasicManagementHttpApiHostMigrationsDbContext : AbpDbContext +{ + public BasicManagementHttpApiHostMigrationsDbContext(DbContextOptions options) + : base(options) + { + + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + base.OnModelCreating(modelBuilder); + + modelBuilder.ConfigureBasicManagement(); + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContextFactory.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContextFactory.cs new file mode 100644 index 00000000..28008457 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/EntityFrameworkCore/BasicManagementHttpApiHostMigrationsDbContextFactory.cs @@ -0,0 +1,28 @@ +using System.IO; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Design; +using Microsoft.Extensions.Configuration; + +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +public class BasicManagementHttpApiHostMigrationsDbContextFactory : IDesignTimeDbContextFactory +{ + public BasicManagementHttpApiHostMigrationsDbContext CreateDbContext(string[] args) + { + var configuration = BuildConfiguration(); + + var builder = new DbContextOptionsBuilder() + .UseMySql(configuration.GetConnectionString("Default"), MySqlServerVersion.LatestSupportedServerVersion); + + return new BasicManagementHttpApiHostMigrationsDbContext(builder.Options); + } + + private static IConfigurationRoot BuildConfiguration() + { + var builder = new ConfigurationBuilder() + .SetBasePath(Directory.GetCurrentDirectory()) + .AddJsonFile("appsettings.json", optional: false); + + return builder.Build(); + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Lion.AbpPro.BasicManagement.HttpApi.Host.csproj b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Lion.AbpPro.BasicManagement.HttpApi.Host.csproj new file mode 100644 index 00000000..babbab88 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Lion.AbpPro.BasicManagement.HttpApi.Host.csproj @@ -0,0 +1,43 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + true + Lion.AbpPro.BasicManagement-c2d31439-b723-48e2-b061-5ebd7aeb6010 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220823.txt b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220823.txt new file mode 100644 index 00000000..963cd9e9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220823.txt @@ -0,0 +1,2685 @@ +2022-08-23 22:20:03.435 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:20:03.463 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:20:03.464 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:20:03.464 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:20:03.465 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:20:03.465 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:20:03.466 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:20:03.468 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:20:03.469 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:20:03.481 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:20:03.482 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:20:03.483 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:20:03.484 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:20:03.484 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:20:03.485 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:20:03.485 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:20:03.486 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:20:03.487 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:20:03.487 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:20:03.488 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:20:03.488 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:20:03.489 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:20:03.490 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:20:03.490 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:20:03.491 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:20:03.491 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:20:03.492 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:20:03.492 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:20:03.493 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:20:03.493 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:20:03.494 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:20:03.494 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:20:03.495 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:20:03.496 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:20:03.496 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:20:03.497 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:20:03.499 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:20:03.501 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:20:03.502 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:20:03.502 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:20:03.503 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:20:03.503 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:20:03.504 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:20:03.505 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:20:03.505 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:20:03.506 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:20:03.507 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:20:03.507 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:20:03.508 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:20:03.509 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:20:03.509 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:20:03.510 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:20:03.510 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:20:03.511 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:20:03.512 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:20:03.512 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:20:03.515 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:20:03.515 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:20:03.516 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:20:03.517 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:20:03.517 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:20:03.518 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:20:03.519 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:20:03.519 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:20:03.520 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:20:03.520 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:20:03.521 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:20:03.521 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:20:03.522 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:20:03.523 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:20:03.523 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:20:03.524 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:20:03.524 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:20:03.525 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:20:03.526 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:20:03.526 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:20:03.527 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:20:03.527 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:20:03.532 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:20:03.533 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:20:03.533 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:20:03.534 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:20:03.534 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:20:03.535 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:20:03.536 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:20:03.536 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:20:03.537 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:20:03.537 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:20:03.538 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:20:03.539 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:20:03.539 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:20:03.540 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:20:03.540 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:20:03.541 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:20:03.541 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:20:03.542 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:20:03.543 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:20:03.546 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:20:03.547 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:20:03.547 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:20:03.548 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:20:03.549 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:20:03.549 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:20:03.550 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:20:03.551 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:20:03.551 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:20:03.552 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:20:03.553 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:20:03.553 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:20:03.554 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:20:03.554 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:20:03.555 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:20:04.009 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:20:04.060 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:20:04.062 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:20:04.064 +08:00 [INF] Hosting environment: Development +2022-08-23 22:20:04.065 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:20:04.402 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:20:04.409 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:20:05.138 +08:00 [ERR] Connection id "0HMK52A99DPT6", Request id "0HMK52A99DPT6:00000002": An unhandled exception was thrown by the application. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware -> Volo.Abp.MultiTenancy.TenantConfigurationProvider -> Volo.Abp.TenantManagement.TenantStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.TenantManagement.AbpTenantManagementDomainModule, Volo.Abp.TenantManagement.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.TenantManagement.AbpTenantManagementDomainModule, Volo.Abp.TenantManagement.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.AspNetCore.Http.MiddlewareFactory.Create(Type middlewareType) + at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) + at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) + at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) +2022-08-23 22:20:05.306 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 500 0 - 904.5064ms +2022-08-23 22:20:08.779 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:08.803 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:13.839 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:13.865 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:18.884 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:18.910 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:23.921 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:23.937 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:28.965 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:28.994 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:34.011 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:34.040 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:39.058 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:39.083 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:44.107 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:44.124 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:20:49.136 +08:00 [ERR] An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. + ---> AutoMapper.AutoMapperConfigurationException: +Unmapped members were found. Review the types and members below. +Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type +For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters +===================================================================================== +IdentityUser -> LoginOutput (Destination member list) +Volo.Abp.Identity.IdentityUser -> Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput (Destination member list) + +Unmapped properties: +Token + + at Volo.Abp.AutoMapper.AbpAutoMapperModule.<>c__DisplayClass2_1.g__ValidateAll|2(IConfigurationProvider config) + at Volo.Abp.AutoMapper.AbpAutoMapperModule.CreateMappings(IServiceProvider serviceProvider) + at Autofac.Extensions.DependencyInjection.AutofacRegistration.<>c__DisplayClass3_0.b__0(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Delegate.DelegateActivator.b__2_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundJobs.BackgroundJobWorker.DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + at Volo.Abp.BackgroundWorkers.AsyncPeriodicBackgroundWorkerBase.DoWorkAsync() +2022-08-23 22:20:49.152 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Volo.Abp.BackgroundJobs.BackgroundJobStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule, Volo.Abp.BackgroundJobs.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor + +2022-08-23 22:21:24.843 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:21:24.869 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:21:24.870 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:21:24.870 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:21:24.871 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:21:24.871 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:21:24.872 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:21:24.872 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:21:24.873 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:21:24.873 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:21:24.873 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:21:24.874 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:21:24.874 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:21:24.875 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:21:24.875 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:21:24.876 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:21:24.876 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:21:24.877 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:21:24.877 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:21:24.878 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:21:24.880 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:21:24.882 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:21:24.882 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:21:24.883 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:21:24.883 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:21:24.884 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:21:24.884 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:21:24.885 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:21:24.885 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:21:24.886 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:21:24.887 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:21:24.887 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:21:24.888 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:21:24.888 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:21:24.889 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:21:24.889 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:21:24.890 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:21:24.890 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:21:24.891 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:21:24.891 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:21:24.892 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:21:24.892 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:21:24.893 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:21:24.893 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:21:24.894 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:21:24.896 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:21:24.897 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:21:24.897 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:21:24.898 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:21:24.898 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:21:24.899 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:21:24.900 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:21:24.900 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:21:24.901 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:21:24.901 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:21:24.902 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:21:24.902 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:21:24.903 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:21:24.903 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:21:24.904 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:21:24.905 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:21:24.905 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:21:24.906 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:21:24.906 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:21:24.907 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:21:24.907 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:21:24.908 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:21:24.908 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:21:24.909 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:21:24.909 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:21:24.910 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:21:24.915 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:21:24.915 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:21:24.916 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:21:24.916 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:21:24.917 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:21:24.917 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:21:24.918 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:21:24.918 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:21:24.919 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:21:24.920 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:21:24.920 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:21:24.921 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:21:24.921 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:21:24.922 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:21:24.922 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:21:24.923 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:21:24.923 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:21:24.924 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:21:24.925 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:21:24.925 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:21:24.928 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:21:24.928 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:21:24.929 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:21:24.930 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:21:24.931 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:21:24.931 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:21:24.932 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:21:24.932 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:21:24.933 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:21:24.934 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:21:24.934 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:21:24.935 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:21:24.935 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:21:24.936 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:21:24.936 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:21:24.937 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:21:24.937 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:21:24.938 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:21:24.938 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:21:24.939 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:21:24.939 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:21:25.334 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:21:25.376 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:21:25.378 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:21:25.379 +08:00 [INF] Hosting environment: Development +2022-08-23 22:21:25.379 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:21:25.784 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:21:25.792 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:21:28.295 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:21:28.317 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:21:28.351 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:21:28.360 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 36.344ms +2022-08-23 22:21:28.364 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:21:28.383 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 2599.4371ms +2022-08-23 22:21:28.390 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger - - +2022-08-23 22:21:28.396 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger - - - 301 0 - 5.4534ms +2022-08-23 22:21:28.402 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:21:28.476 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 73.9537ms +2022-08-23 22:21:28.521 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui.css - - +2022-08-23 22:21:28.522 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/ui/abp.js - - +2022-08-23 22:21:28.527 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/ui/abp.swagger.js - - +2022-08-23 22:21:28.528 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui-bundle.js - - +2022-08-23 22:21:28.530 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui-standalone-preset.js - - +2022-08-23 22:21:28.547 +08:00 [INF] Sending file. Request path: '/swagger/ui/abp.js'. Physical path: 'N/A' +2022-08-23 22:21:28.547 +08:00 [INF] Sending file. Request path: '/swagger/ui/abp.swagger.js'. Physical path: 'N/A' +2022-08-23 22:21:28.553 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/ui/abp.js - - - 200 3122 application/javascript 30.6392ms +2022-08-23 22:21:28.560 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/ui/abp.swagger.js - - - 200 1246 application/javascript 33.7304ms +2022-08-23 22:21:28.571 +08:00 [INF] Sending file. Request path: '/swagger-ui.css'. Physical path: 'N/A' +2022-08-23 22:21:28.580 +08:00 [INF] Sending file. Request path: '/swagger-ui-standalone-preset.js'. Physical path: 'N/A' +2022-08-23 22:21:28.584 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui.css - - - 200 143943 text/css 63.6951ms +2022-08-23 22:21:28.585 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui-standalone-preset.js - - - 200 339486 application/javascript 55.0516ms +2022-08-23 22:21:28.595 +08:00 [INF] Sending file. Request path: '/swagger-ui-bundle.js'. Physical path: 'N/A' +2022-08-23 22:21:28.597 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/swagger-ui-bundle.js - - - 200 1095087 application/javascript 68.6634ms +2022-08-23 22:21:28.885 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:21:28.932 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/favicon-32x32.png - - +2022-08-23 22:21:28.948 +08:00 [INF] Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A' +2022-08-23 22:21:28.951 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/favicon-32x32.png - - - 200 628 image/png 18.9267ms +2022-08-23 22:21:29.159 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 273.8320ms +2022-08-23 22:21:39.697 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - +2022-08-23 22:21:39.700 +08:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-23 22:21:39.702 +08:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle). +2022-08-23 22:21:39.713 +08:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. +2022-08-23 22:21:39.714 +08:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 10.3525ms +2022-08-23 22:21:39.715 +08:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-23 22:21:39.716 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - - 204 - - 18.5906ms +2022-08-23 22:21:39.751 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:21:39.753 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:21:39.754 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:21:39.763 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:21:39.801 +08:00 [ERR] ---------- RemoteServiceErrorInfo ---------- +{ + "code": null, + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": { + "ActivatorChain": "Lion.AbpPro.BasicManagement.Systems.AccountController -> Lion.AbpPro.BasicManagement.Users.AccountAppService" + }, + "validationErrors": null +} + +2022-08-23 22:21:39.803 +08:00 [ERR] An exception was thrown while activating Lion.AbpPro.BasicManagement.Systems.AccountController -> Lion.AbpPro.BasicManagement.Users.AccountAppService. +Autofac.Core.DependencyResolutionException: An exception was thrown while activating Lion.AbpPro.BasicManagement.Systems.AccountController -> Lion.AbpPro.BasicManagement.Users.AccountAppService. + ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Lion.AbpPro.BasicManagement.Users.AccountAppService' can be invoked with the available services and parameters: +Cannot resolve parameter 'Microsoft.AspNetCore.Identity.SignInManager`1[Volo.Abp.Identity.IdentityUser] signInManager' of constructor 'Void .ctor(Volo.Abp.Identity.IdentityUserManager, Microsoft.Extensions.Options.IOptionsSnapshot`1[Lion.AbpPro.BasicManagement.ConfigurationOptions.JwtOptions], Microsoft.AspNetCore.Identity.SignInManager`1[Volo.Abp.Identity.IdentityUser])'. + at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) + at Autofac.Core.Activators.Reflection.ReflectionActivator.b__11_0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass41_0.b__0(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Extras.DynamicProxy.RegistrationExtensions.<>c__DisplayClass8_0`3.b__1(ResolveRequestContext ctxt, Action`1 next) + at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + --- End of inner exception stack trace --- + at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next) + at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt) + at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) + at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) + at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) + at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) + at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) + at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) + at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) + at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) + at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) + at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext) + at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass6_0.g__CreateController|0(ControllerContext controllerContext) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() +--- End of stack trace from previous location --- + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:21:39.845 +08:00 [ERR] ---------- Exception Data ---------- +ActivatorChain = Lion.AbpPro.BasicManagement.Systems.AccountController -> Lion.AbpPro.BasicManagement.Users.AccountAppService + +2022-08-23 22:21:39.853 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:21:39.858 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 93.438ms +2022-08-23 22:21:39.862 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:21:40.175 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 424.1464ms +2022-08-23 22:29:43.395 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:29:43.422 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:29:43.423 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:29:43.424 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:29:43.424 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:29:43.425 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:29:43.425 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:29:43.425 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:29:43.426 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:29:43.426 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:29:43.427 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:29:43.427 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:29:43.428 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:29:43.428 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:29:43.429 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:29:43.429 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:29:43.430 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:29:43.431 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:29:43.431 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:29:43.432 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:29:43.432 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:29:43.433 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:29:43.434 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:29:43.434 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:29:43.435 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:29:43.435 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:29:43.436 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:29:43.436 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:29:43.437 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:29:43.437 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:29:43.438 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:29:43.438 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:29:43.439 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:29:43.440 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:29:43.440 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:29:43.441 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:29:43.441 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:29:43.442 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:29:43.443 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:29:43.443 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:29:43.446 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:29:43.446 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:29:43.447 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:29:43.447 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:29:43.448 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:29:43.448 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:29:43.449 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:29:43.449 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:29:43.450 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:29:43.451 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:29:43.451 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:29:43.452 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:29:43.452 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:29:43.453 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:29:43.453 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:29:43.454 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:29:43.454 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:29:43.455 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:29:43.455 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:29:43.456 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:29:43.456 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:29:43.457 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:29:43.457 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:29:43.458 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:29:43.458 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:29:43.459 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:29:43.462 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:29:43.462 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:29:43.463 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:29:43.463 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:29:43.464 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:29:43.464 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:29:43.465 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:29:43.466 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:29:43.466 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:29:43.467 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:29:43.467 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:29:43.468 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:29:43.468 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:29:43.469 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:29:43.469 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:29:43.470 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:29:43.470 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:29:43.471 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:29:43.472 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:29:43.472 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:29:43.473 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:29:43.473 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:29:43.474 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:29:43.477 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:29:43.478 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:29:43.478 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:29:43.479 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:29:43.479 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:29:43.480 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:29:43.480 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:29:43.481 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:29:43.481 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:29:43.482 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:29:43.483 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:29:43.483 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:29:43.484 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:29:43.484 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:29:43.485 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:29:43.485 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:29:43.486 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:29:43.486 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:29:43.487 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:29:43.487 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:29:43.488 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:29:43.488 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:29:43.489 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:29:43.494 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:29:43.888 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:29:43.927 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:29:43.929 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:29:43.930 +08:00 [INF] Hosting environment: Development +2022-08-23 22:29:43.931 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:29:44.165 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:29:44.170 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:29:45.515 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:29:45.531 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:29:45.554 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:29:45.561 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 24.3102ms +2022-08-23 22:29:45.564 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:29:45.576 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1412.0039ms +2022-08-23 22:29:45.584 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:29:45.622 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 38.3488ms +2022-08-23 22:29:45.956 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:29:46.157 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 201.4978ms +2022-08-23 22:29:50.327 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - +2022-08-23 22:29:50.335 +08:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-23 22:29:50.339 +08:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle). +2022-08-23 22:29:50.383 +08:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. +2022-08-23 22:29:50.387 +08:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 18.5052ms +2022-08-23 22:29:50.390 +08:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-23 22:29:50.393 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - - 204 - - 66.5633ms +2022-08-23 22:29:50.441 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:29:50.443 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:29:50.445 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:29:50.456 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:29:51.711 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:29:51.714 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1402(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:29:51.767 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:29:51.768 +08:00 [WRN] Details: +2022-08-23 22:29:51.780 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:29:51.789 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 1331.3888ms +2022-08-23 22:29:51.791 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:29:52.120 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 1679.0024ms +2022-08-23 22:31:42.868 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:31:42.895 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:31:42.896 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:31:42.896 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:31:42.896 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:31:42.897 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:31:42.897 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:31:42.898 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:31:42.898 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:31:42.899 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:31:42.899 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:31:42.900 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:31:42.900 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:31:42.900 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:31:42.901 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:31:42.901 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:31:42.902 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:31:42.903 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:31:42.903 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:31:42.904 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:31:42.904 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:31:42.905 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:31:42.905 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:31:42.906 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:31:42.906 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:31:42.907 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:31:42.907 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:31:42.908 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:31:42.908 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:31:42.910 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:31:42.911 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:31:42.911 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:31:42.912 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:31:42.912 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:31:42.913 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:31:42.913 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:31:42.914 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:31:42.914 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:31:42.915 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:31:42.916 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:31:42.916 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:31:42.917 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:31:42.917 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:31:42.918 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:31:42.918 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:31:42.919 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:31:42.919 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:31:42.920 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:31:42.920 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:31:42.921 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:31:42.922 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:31:42.922 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:31:42.923 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:31:42.923 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:31:42.924 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:31:42.924 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:31:42.928 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:31:42.929 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:31:42.930 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:31:42.930 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:31:42.931 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:31:42.931 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:31:42.932 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:31:42.932 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:31:42.933 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:31:42.933 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:31:42.934 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:31:42.935 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:31:42.935 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:31:42.936 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:31:42.936 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:31:42.937 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:31:42.937 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:31:42.938 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:31:42.938 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:31:42.939 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:31:42.939 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:31:42.940 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:31:42.940 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:31:42.942 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:31:42.943 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:31:42.943 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:31:42.944 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:31:42.944 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:31:42.945 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:31:42.946 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:31:42.946 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:31:42.947 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:31:42.947 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:31:42.948 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:31:42.948 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:31:42.949 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:31:42.949 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:31:42.950 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:31:42.950 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:31:42.951 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:31:42.951 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:31:42.952 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:31:42.952 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:31:42.953 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:31:42.954 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:31:42.954 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:31:42.955 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:31:42.955 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:31:42.956 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:31:42.956 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:31:42.961 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:31:42.962 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:31:42.962 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:31:42.963 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:31:42.963 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:31:42.964 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:31:42.964 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:31:43.338 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:31:43.377 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:31:43.379 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:31:43.379 +08:00 [INF] Hosting environment: Development +2022-08-23 22:31:43.380 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:31:43.922 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:31:43.928 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:31:45.330 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:31:45.352 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:31:45.381 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:31:45.388 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 28.8644ms +2022-08-23 22:31:45.391 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:31:45.404 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1482.5426ms +2022-08-23 22:31:45.414 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:31:45.462 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 47.9690ms +2022-08-23 22:31:45.698 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:31:45.926 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 227.7470ms +2022-08-23 22:31:46.382 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:31:46.384 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:31:46.386 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:31:46.401 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:31:52.649 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:31:52.652 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1381(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:31:52.696 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:31:52.696 +08:00 [WRN] Details: +2022-08-23 22:31:52.707 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:31:52.712 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 6309.9983ms +2022-08-23 22:31:52.713 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:31:52.981 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 6600.0358ms +2022-08-23 22:32:04.345 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:32:04.346 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:32:04.348 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:32:04.349 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:34:14.303 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:34:14.335 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:34:14.336 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:34:14.337 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:34:14.337 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:34:14.338 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:34:14.338 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:34:14.339 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:34:14.341 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:34:14.341 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:34:14.342 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:34:14.342 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:34:14.343 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:34:14.343 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:34:14.344 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:34:14.344 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:34:14.345 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:34:14.346 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:34:14.347 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:34:14.347 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:34:14.348 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:34:14.348 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:34:14.349 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:34:14.350 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:34:14.350 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:34:14.351 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:34:14.352 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:34:14.353 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:34:14.353 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:34:14.354 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:34:14.357 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:34:14.358 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:34:14.358 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:34:14.359 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:34:14.360 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:34:14.360 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:34:14.361 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:34:14.362 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:34:14.362 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:34:14.363 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:34:14.364 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:34:14.364 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:34:14.365 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:34:14.366 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:34:14.366 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:34:14.367 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:34:14.368 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:34:14.368 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:34:14.369 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:34:14.370 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:34:14.373 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:34:14.373 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:34:14.374 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:34:14.375 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:34:14.376 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:34:14.376 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:34:14.377 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:34:14.378 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:34:14.378 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:34:14.379 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:34:14.380 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:34:14.380 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:34:14.381 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:34:14.382 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:34:14.382 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:34:14.383 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:34:14.384 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:34:14.384 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:34:14.385 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:34:14.386 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:34:14.388 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:34:14.392 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:34:14.393 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:34:14.394 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:34:14.394 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:34:14.395 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:34:14.396 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:34:14.397 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:34:14.397 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:34:14.398 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:34:14.399 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:34:14.399 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:34:14.400 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:34:14.401 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:34:14.401 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:34:14.402 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:34:14.405 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:34:14.406 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:34:14.407 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:34:14.408 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:34:14.408 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:34:14.409 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:34:14.410 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:34:14.410 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:34:14.411 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:34:14.412 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:34:14.412 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:34:14.413 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:34:14.414 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:34:14.415 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:34:14.415 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:34:14.416 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:34:14.417 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:34:14.418 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:34:14.421 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:34:14.424 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:34:14.425 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:34:14.426 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:34:14.427 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:34:14.427 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:34:14.428 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:34:14.429 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:34:14.429 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:34:14.885 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:34:14.935 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:34:14.938 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:34:14.938 +08:00 [INF] Hosting environment: Development +2022-08-23 22:34:14.939 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:34:15.362 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:34:15.370 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:34:16.788 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:34:16.807 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:34:16.836 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:34:16.842 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 28.0747ms +2022-08-23 22:34:16.846 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:34:16.859 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1496.8962ms +2022-08-23 22:34:16.866 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:34:16.907 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 41.3253ms +2022-08-23 22:34:17.111 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:34:17.321 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 210.0052ms +2022-08-23 22:34:21.460 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:34:21.462 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:34:21.465 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:34:21.474 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:34:25.828 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:34:25.830 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1400(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:34:25.872 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:34:25.872 +08:00 [WRN] Details: +2022-08-23 22:34:25.883 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:34:25.889 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 4413.0832ms +2022-08-23 22:34:25.890 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:34:26.133 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 4672.9292ms +2022-08-23 22:35:03.938 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:35:03.940 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:35:03.943 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:35:03.944 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:35:07.857 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:35:07.859 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1400(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:35:07.873 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:35:07.873 +08:00 [WRN] Details: +2022-08-23 22:35:07.874 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:35:07.878 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 3931.1469ms +2022-08-23 22:35:07.879 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:35:07.902 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 3964.3325ms +2022-08-23 22:40:09.089 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:40:09.133 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:40:09.134 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:40:09.134 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:40:09.135 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:40:09.136 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:40:09.138 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:40:09.140 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:40:09.140 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:40:09.141 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:40:09.142 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:40:09.142 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:40:09.143 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:40:09.143 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:40:09.144 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:40:09.145 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:40:09.145 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:40:09.146 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:40:09.146 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:40:09.147 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:40:09.147 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:40:09.148 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:40:09.149 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:40:09.149 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:40:09.150 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:40:09.151 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:40:09.152 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:40:09.156 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:40:09.157 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:40:09.157 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:40:09.158 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:40:09.159 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:40:09.160 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:40:09.161 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:40:09.162 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:40:09.162 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:40:09.163 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:40:09.164 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:40:09.165 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:40:09.165 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:40:09.166 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:40:09.169 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:40:09.172 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:40:09.173 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:40:09.173 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:40:09.174 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:40:09.175 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:40:09.176 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:40:09.176 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:40:09.177 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:40:09.178 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:40:09.179 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:40:09.180 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:40:09.181 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:40:09.182 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:40:09.187 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:40:09.188 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:40:09.189 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:40:09.190 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:40:09.190 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:40:09.191 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:40:09.192 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:40:09.193 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:40:09.193 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:40:09.194 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:40:09.195 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:40:09.196 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:40:09.196 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:40:09.197 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:40:09.199 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:40:09.203 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:40:09.203 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:40:09.204 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:40:09.205 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:40:09.206 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:40:09.206 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:40:09.207 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:40:09.208 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:40:09.209 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:40:09.209 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:40:09.210 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:40:09.211 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:40:09.212 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:40:09.212 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:40:09.213 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:40:09.217 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:40:09.222 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:40:09.223 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:40:09.224 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:40:09.225 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:40:09.226 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:40:09.226 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:40:09.227 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:40:09.228 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:40:09.228 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:40:09.229 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:40:09.234 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:40:09.235 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:40:09.235 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:40:09.236 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:40:09.237 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:40:09.238 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:40:09.239 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:40:09.239 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:40:09.240 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:40:09.241 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:40:09.241 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:40:09.242 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:40:09.243 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:40:09.244 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:40:09.245 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:40:09.245 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:40:09.249 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:40:09.773 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:40:09.820 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:40:09.822 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:40:09.823 +08:00 [INF] Hosting environment: Development +2022-08-23 22:40:09.824 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:40:10.533 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:40:12.354 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:40:12.376 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:40:12.408 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:40:12.415 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 33.13ms +2022-08-23 22:40:12.419 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:40:12.432 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1899.8172ms +2022-08-23 22:40:12.440 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:40:12.492 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 51.8755ms +2022-08-23 22:40:12.783 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:40:13.053 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 272.2455ms +2022-08-23 22:40:18.027 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:40:18.030 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:40:18.032 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:40:18.043 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:40:19.207 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:40:19.210 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1395(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:40:19.253 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:40:19.254 +08:00 [WRN] Details: +2022-08-23 22:40:19.266 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:40:19.272 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 1227.5224ms +2022-08-23 22:40:19.273 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:40:19.573 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 1546.8169ms +2022-08-23 22:45:12.920 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:45:12.946 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:45:12.948 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:45:12.948 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:45:12.949 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:45:12.949 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:45:12.950 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:45:12.950 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:45:12.950 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:45:12.951 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:45:12.951 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:45:12.952 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:45:12.952 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:45:12.952 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:45:12.953 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:45:12.953 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:45:12.954 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:45:12.954 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:45:12.955 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:45:12.955 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:45:12.956 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:45:12.956 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:45:12.956 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:45:12.957 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:45:12.957 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:45:12.958 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:45:12.959 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:45:12.959 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:45:12.960 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:45:12.960 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:45:12.961 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:45:12.964 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:45:12.964 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:45:12.965 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:45:12.965 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:45:12.966 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:45:12.966 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:45:12.967 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:45:12.967 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:45:12.968 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:45:12.969 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:45:12.969 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:45:12.970 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:45:12.970 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:45:12.971 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:45:12.971 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:45:12.972 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:45:12.972 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:45:12.973 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:45:12.973 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:45:12.974 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:45:12.974 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:45:12.975 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:45:12.975 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:45:12.976 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:45:12.976 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:45:12.977 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:45:12.980 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:45:12.981 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:45:12.982 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:45:12.982 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:45:12.983 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:45:12.983 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:45:12.984 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:45:12.984 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:45:12.985 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:45:12.985 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:45:12.986 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:45:12.986 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:45:12.987 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:45:12.987 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:45:12.988 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:45:12.988 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:45:12.989 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:45:12.990 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:45:12.990 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:45:12.991 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:45:12.991 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:45:12.992 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:45:12.996 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:45:12.998 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:45:12.999 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:45:12.999 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:45:13.000 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:45:13.000 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:45:13.001 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:45:13.001 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:45:13.002 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:45:13.003 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:45:13.003 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:45:13.004 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:45:13.004 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:45:13.005 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:45:13.005 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:45:13.006 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:45:13.006 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:45:13.007 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:45:13.007 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:45:13.008 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:45:13.011 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:45:13.011 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:45:13.012 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:45:13.012 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:45:13.013 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:45:13.013 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:45:13.014 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:45:13.014 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:45:13.015 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:45:13.015 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:45:13.016 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:45:13.016 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:45:13.017 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:45:13.017 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:45:13.370 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:45:13.404 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:45:13.406 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:45:13.407 +08:00 [INF] Hosting environment: Development +2022-08-23 22:45:13.407 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:45:13.820 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:45:15.169 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:45:15.192 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:45:15.221 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:45:15.228 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 30.0254ms +2022-08-23 22:45:15.232 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:45:15.246 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1427.3447ms +2022-08-23 22:45:15.252 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:45:15.300 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 47.9338ms +2022-08-23 22:45:15.554 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:45:15.782 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 227.6031ms +2022-08-23 22:45:25.092 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:45:25.095 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:45:25.097 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:45:25.108 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:45:26.094 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:45:26.097 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1395(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:45:26.139 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:45:26.139 +08:00 [WRN] Details: +2022-08-23 22:45:26.151 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:45:26.156 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 1042.0241ms +2022-08-23 22:45:26.157 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:45:26.414 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 1322.3482ms +2022-08-23 22:46:57.414 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:46:57.440 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:46:57.441 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:46:57.441 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:46:57.442 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:46:57.442 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:46:57.443 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:46:57.443 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:46:57.444 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:46:57.444 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:46:57.444 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:46:57.445 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:46:57.445 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:46:57.446 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:46:57.446 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:46:57.447 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:46:57.447 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:46:57.447 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:46:57.448 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:46:57.448 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:46:57.449 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:46:57.449 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:46:57.449 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:46:57.450 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:46:57.451 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:46:57.451 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:46:57.452 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:46:57.452 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:46:57.453 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:46:57.453 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:46:57.454 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:46:57.454 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:46:57.455 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:46:57.456 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:46:57.456 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:46:57.457 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:46:57.457 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:46:57.458 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:46:57.461 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:46:57.462 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:46:57.462 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:46:57.463 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:46:57.463 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:46:57.464 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:46:57.464 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:46:57.465 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:46:57.465 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:46:57.466 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:46:57.466 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:46:57.467 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:46:57.468 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:46:57.468 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:46:57.469 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:46:57.469 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:46:57.470 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:46:57.470 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:46:57.471 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:46:57.471 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:46:57.472 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:46:57.472 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:46:57.475 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:46:57.476 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:46:57.476 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:46:57.477 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:46:57.478 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:46:57.478 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:46:57.479 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:46:57.479 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:46:57.480 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:46:57.480 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:46:57.481 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:46:57.481 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:46:57.482 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:46:57.482 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:46:57.483 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:46:57.483 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:46:57.484 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:46:57.484 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:46:57.485 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:46:57.486 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:46:57.486 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:46:57.487 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:46:57.487 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:46:57.488 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:46:57.488 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:46:57.489 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:46:57.492 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:46:57.493 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:46:57.493 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:46:57.494 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:46:57.494 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:46:57.495 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:46:57.495 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:46:57.496 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:46:57.497 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:46:57.497 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:46:57.498 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:46:57.498 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:46:57.499 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:46:57.499 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:46:57.500 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:46:57.500 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:46:57.501 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:46:57.501 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:46:57.502 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:46:57.502 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:46:57.503 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:46:57.503 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:46:57.504 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:46:57.507 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:46:57.511 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:46:57.511 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:46:57.512 +08:00 [INF] - Lion.AbpPro.Shared.Hosting.Microservices.SharedHostingMicroserviceModule +2022-08-23 22:46:57.872 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:46:57.906 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:46:57.908 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:46:57.908 +08:00 [INF] Hosting environment: Development +2022-08-23 22:46:57.909 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:46:58.419 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:46:59.885 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:46:59.904 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:46:59.932 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:46:59.937 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 27.9536ms +2022-08-23 22:46:59.941 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:46:59.954 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1536.5381ms +2022-08-23 22:46:59.964 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:47:00.007 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 43.1544ms +2022-08-23 22:47:00.216 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:47:00.401 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:47:00.405 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:47:00.409 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:47:00.428 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:47:00.554 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 337.9101ms +2022-08-23 22:47:03.142 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:47:03.145 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1376(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:47:03.202 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:47:03.203 +08:00 [WRN] Details: +2022-08-23 22:47:03.217 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:47:03.224 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 2793.9826ms +2022-08-23 22:47:03.226 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:47:03.611 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 500 - application/json;+charset=utf-8 3211.1325ms +2022-08-23 22:49:15.044 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:49:15.070 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:49:15.071 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:49:15.071 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:49:15.072 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:49:15.072 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:49:15.073 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:49:15.073 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:49:15.073 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:49:15.074 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:49:15.074 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:49:15.075 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:49:15.075 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:49:15.076 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:49:15.077 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:49:15.078 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:49:15.079 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:49:15.079 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:49:15.080 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:49:15.080 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:49:15.081 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:49:15.081 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:49:15.081 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:49:15.082 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:49:15.082 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:49:15.083 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:49:15.083 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:49:15.084 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:49:15.084 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:49:15.085 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:49:15.085 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:49:15.086 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:49:15.086 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:49:15.087 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:49:15.088 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:49:15.088 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:49:15.089 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:49:15.089 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:49:15.090 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:49:15.090 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:49:15.091 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:49:15.093 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:49:15.094 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:49:15.094 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:49:15.095 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:49:15.096 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:49:15.096 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:49:15.097 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:49:15.097 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:49:15.098 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:49:15.098 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:49:15.099 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:49:15.099 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:49:15.100 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:49:15.100 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:49:15.101 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:49:15.102 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:49:15.102 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:49:15.103 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:49:15.103 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:49:15.104 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:49:15.104 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:49:15.105 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:49:15.105 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:49:15.106 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:49:15.111 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:49:15.111 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:49:15.112 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:49:15.113 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:49:15.113 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:49:15.114 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:49:15.114 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:49:15.115 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:49:15.116 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:49:15.116 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:49:15.117 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:49:15.117 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:49:15.118 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:49:15.118 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:49:15.119 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:49:15.120 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:49:15.120 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:49:15.121 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:49:15.121 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:49:15.125 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:49:15.126 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:49:15.126 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:49:15.127 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:49:15.127 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:49:15.128 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:49:15.129 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:49:15.129 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:49:15.130 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:49:15.130 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:49:15.131 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:49:15.131 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:49:15.132 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:49:15.133 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:49:15.133 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:49:15.134 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:49:15.134 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:49:15.135 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:49:15.135 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:49:15.136 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:49:15.140 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:49:15.142 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:49:15.143 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:49:15.143 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:49:15.144 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:49:15.144 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:49:15.145 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:49:15.146 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:49:15.540 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:49:15.572 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:49:15.574 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:49:15.575 +08:00 [INF] Hosting environment: Development +2022-08-23 22:49:15.576 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:49:16.079 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:49:17.360 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:49:17.379 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:49:17.405 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:49:17.413 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 28.5669ms +2022-08-23 22:49:17.416 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:49:17.428 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1350.7200ms +2022-08-23 22:49:17.434 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:49:17.477 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 43.0875ms +2022-08-23 22:49:17.691 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-23 22:49:17.920 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 228.7228ms +2022-08-23 22:49:19.668 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:49:19.672 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:49:19.676 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:49:19.691 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:49:19.703 +08:00 [ERR] The antiforgery token could not be decrypted. +2022-08-23 22:49:19.705 +08:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. +2022-08-23 22:49:19.708 +08:00 [INF] Executing StatusCodeResult, setting HTTP status code 400 +2022-08-23 22:49:19.711 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 17.1967ms +2022-08-23 22:49:19.713 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:49:21.311 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 400 0 - 1642.4070ms +2022-08-23 22:49:29.982 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:49:29.984 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:49:29.986 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:49:29.987 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:49:30.891 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:49:30.893 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:49:30.939 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:49:30.940 +08:00 [WRN] Details: +2022-08-23 22:49:30.951 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:49:30.957 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 968.883ms +2022-08-23 22:49:30.958 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:49:31.012 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 1030.3005ms +2022-08-23 22:50:21.195 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:21.203 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:21.206 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:21.207 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:21.293 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:21.297 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:21.305 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:21.305 +08:00 [WRN] Details: +2022-08-23 22:50:21.306 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:21.307 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 98.7905ms +2022-08-23 22:50:21.308 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:21.332 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 137.5533ms +2022-08-23 22:50:22.316 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:22.319 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:22.321 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:22.322 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:22.387 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:22.388 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:22.397 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:22.398 +08:00 [WRN] Details: +2022-08-23 22:50:22.398 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:22.399 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 75.2279ms +2022-08-23 22:50:22.400 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:22.420 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 103.7237ms +2022-08-23 22:50:22.503 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:22.504 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:22.506 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:22.507 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:22.568 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:22.570 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:22.583 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:22.584 +08:00 [WRN] Details: +2022-08-23 22:50:22.584 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:22.585 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 77.2248ms +2022-08-23 22:50:22.586 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:22.606 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 103.3507ms +2022-08-23 22:50:23.577 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:23.579 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:23.580 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:23.581 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:23.628 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:23.630 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:23.640 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:23.643 +08:00 [WRN] Details: +2022-08-23 22:50:23.644 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:23.645 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 62.1802ms +2022-08-23 22:50:23.646 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:23.666 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 88.9695ms +2022-08-23 22:50:24.386 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:24.387 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:24.389 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:24.390 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:24.446 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:24.448 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:24.458 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:24.458 +08:00 [WRN] Details: +2022-08-23 22:50:24.459 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:24.460 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 69.0299ms +2022-08-23 22:50:24.461 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:24.493 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 106.3817ms +2022-08-23 22:50:25.098 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:25.099 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:25.104 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:25.104 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:25.163 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:25.164 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:25.173 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:25.173 +08:00 [WRN] Details: +2022-08-23 22:50:25.174 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:25.175 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 68.994ms +2022-08-23 22:50:25.176 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:25.202 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 103.8432ms +2022-08-23 22:50:25.961 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:50:25.964 +08:00 [INF] No CORS policy found for the specified request. +2022-08-23 22:50:25.966 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:25.966 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:50:26.013 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:50:26.014 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1358(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:50:26.024 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:50:26.027 +08:00 [WRN] Details: +2022-08-23 22:50:26.028 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:50:26.029 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 61.07ms +2022-08-23 22:50:26.030 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:50:26.049 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 87.5207ms +2022-08-23 22:53:35.808 +08:00 [INF] User profile is available. Using 'C:\Users\wangjun\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. +2022-08-23 22:53:35.893 +08:00 [INF] Loaded ABP modules: +2022-08-23 22:53:35.894 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-23 22:53:35.895 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-23 22:53:35.895 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-23 22:53:35.895 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-23 22:53:35.896 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-23 22:53:35.896 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-23 22:53:35.897 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-23 22:53:35.897 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-23 22:53:35.898 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-23 22:53:35.898 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-23 22:53:35.898 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-23 22:53:35.899 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-23 22:53:35.899 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-23 22:53:35.900 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-23 22:53:35.900 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-23 22:53:35.900 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-23 22:53:35.901 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-23 22:53:35.901 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-23 22:53:35.902 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-23 22:53:35.902 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-23 22:53:35.902 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-23 22:53:35.903 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-23 22:53:35.903 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-23 22:53:35.904 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-23 22:53:35.905 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-23 22:53:35.905 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-23 22:53:35.906 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-23 22:53:35.906 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-23 22:53:35.907 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-23 22:53:35.909 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-23 22:53:35.909 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-23 22:53:35.910 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-23 22:53:35.911 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-23 22:53:35.911 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-23 22:53:35.912 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-23 22:53:35.912 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-23 22:53:35.913 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-23 22:53:35.913 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-23 22:53:35.914 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-23 22:53:35.914 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-23 22:53:35.915 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-23 22:53:35.916 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-23 22:53:35.916 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-23 22:53:35.917 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-23 22:53:35.917 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-23 22:53:35.918 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-23 22:53:35.918 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-23 22:53:35.919 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-23 22:53:35.919 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-23 22:53:35.920 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-23 22:53:35.920 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-23 22:53:35.921 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-23 22:53:35.921 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-23 22:53:35.922 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-23 22:53:35.922 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-23 22:53:35.926 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-23 22:53:35.926 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-23 22:53:35.927 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-23 22:53:35.927 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-23 22:53:35.928 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-23 22:53:35.928 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-23 22:53:35.929 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-23 22:53:35.930 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-23 22:53:35.930 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-23 22:53:35.931 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-23 22:53:35.931 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-23 22:53:35.932 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-23 22:53:35.932 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-23 22:53:35.933 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-23 22:53:35.933 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-23 22:53:35.934 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-23 22:53:35.934 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-23 22:53:35.935 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-23 22:53:35.935 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-23 22:53:35.936 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-23 22:53:35.936 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-23 22:53:35.937 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-23 22:53:35.938 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-23 22:53:35.941 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-23 22:53:35.941 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-23 22:53:35.942 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-23 22:53:35.942 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-23 22:53:35.943 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-23 22:53:35.943 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-23 22:53:35.944 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-23 22:53:35.944 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-23 22:53:35.945 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-23 22:53:35.945 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-23 22:53:35.946 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-23 22:53:35.947 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-23 22:53:35.947 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-23 22:53:35.948 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-23 22:53:35.948 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-23 22:53:35.949 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-23 22:53:35.949 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-23 22:53:35.950 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-23 22:53:35.950 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-23 22:53:35.951 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-23 22:53:35.952 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-23 22:53:35.952 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-23 22:53:35.953 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-23 22:53:35.959 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-23 22:53:35.960 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-23 22:53:35.960 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-23 22:53:35.961 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-23 22:53:35.961 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-23 22:53:35.962 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-23 22:53:35.963 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-23 22:53:35.963 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-23 22:53:35.964 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-23 22:53:35.964 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-23 22:53:36.319 +08:00 [INF] Initialized all ABP modules. +2022-08-23 22:53:36.379 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-23 22:53:36.380 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-23 22:53:36.381 +08:00 [INF] Hosting environment: Development +2022-08-23 22:53:36.382 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-23 22:53:36.924 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-23 22:53:36.932 +08:00 [WRN] Failed to determine the https port for redirect. +2022-08-23 22:53:38.719 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:53:38.742 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-23 22:53:38.766 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-23 22:53:38.771 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 24.141ms +2022-08-23 22:53:38.774 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-23 22:53:38.784 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 1861.1795ms +2022-08-23 22:53:38.790 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-23 22:53:38.828 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 37.8904ms +2022-08-23 22:53:39.052 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/v1/swagger.json - - +2022-08-23 22:53:39.225 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 172.8050ms +2022-08-23 22:53:41.807 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-23 22:53:41.809 +08:00 [INF] CORS policy execution failed. +2022-08-23 22:53:41.810 +08:00 [INF] Request origin http://localhost:44324 does not have permission to access the resource. +2022-08-23 22:53:41.813 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:53:41.823 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-23 22:53:42.750 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "An internal error occurred during your request!", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-23 22:53:42.752 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1364(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-23 22:53:42.796 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-23 22:53:42.797 +08:00 [WRN] Details: +2022-08-23 22:53:42.809 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-23 22:53:42.815 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 990.8017ms +2022-08-23 22:53:42.816 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-23 22:53:43.080 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 1273.2296ms diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220824.txt b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220824.txt new file mode 100644 index 00000000..20b0d54d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs-20220824.txt @@ -0,0 +1,194 @@ +2022-08-24 13:26:53.260 +08:00 [INF] Loaded ABP modules: +2022-08-24 13:26:53.307 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiHostModule +2022-08-24 13:26:53.308 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationModule +2022-08-24 13:26:53.309 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainModule +2022-08-24 13:26:53.309 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2022-08-24 13:26:53.310 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2022-08-24 13:26:53.311 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2022-08-24 13:26:53.311 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2022-08-24 13:26:53.312 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2022-08-24 13:26:53.328 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2022-08-24 13:26:53.330 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2022-08-24 13:26:53.332 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2022-08-24 13:26:53.333 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2022-08-24 13:26:53.333 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2022-08-24 13:26:53.334 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2022-08-24 13:26:53.335 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2022-08-24 13:26:53.336 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2022-08-24 13:26:53.336 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2022-08-24 13:26:53.337 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2022-08-24 13:26:53.338 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2022-08-24 13:26:53.338 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingContractsModule +2022-08-24 13:26:53.339 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2022-08-24 13:26:53.340 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2022-08-24 13:26:53.340 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2022-08-24 13:26:53.341 +08:00 [INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule +2022-08-24 13:26:53.342 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2022-08-24 13:26:53.343 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2022-08-24 13:26:53.344 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2022-08-24 13:26:53.345 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementDomainSharedModule +2022-08-24 13:26:53.346 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2022-08-24 13:26:53.348 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2022-08-24 13:26:53.357 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2022-08-24 13:26:53.359 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2022-08-24 13:26:53.365 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2022-08-24 13:26:53.377 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2022-08-24 13:26:53.383 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2022-08-24 13:26:53.385 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2022-08-24 13:26:53.392 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2022-08-24 13:26:53.405 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2022-08-24 13:26:53.430 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2022-08-24 13:26:53.449 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2022-08-24 13:26:53.460 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2022-08-24 13:26:53.466 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2022-08-24 13:26:53.468 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2022-08-24 13:26:53.470 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2022-08-24 13:26:53.474 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2022-08-24 13:26:53.478 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2022-08-24 13:26:53.479 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2022-08-24 13:26:53.480 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2022-08-24 13:26:53.481 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2022-08-24 13:26:53.482 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2022-08-24 13:26:53.483 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2022-08-24 13:26:53.484 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2022-08-24 13:26:53.485 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2022-08-24 13:26:53.487 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2022-08-24 13:26:53.489 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2022-08-24 13:26:53.498 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementApplicationContractsModule +2022-08-24 13:26:53.499 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2022-08-24 13:26:53.500 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2022-08-24 13:26:53.501 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2022-08-24 13:26:53.503 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2022-08-24 13:26:53.504 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2022-08-24 13:26:53.505 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2022-08-24 13:26:53.510 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2022-08-24 13:26:53.511 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2022-08-24 13:26:53.512 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2022-08-24 13:26:53.514 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2022-08-24 13:26:53.516 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2022-08-24 13:26:53.517 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2022-08-24 13:26:53.518 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2022-08-24 13:26:53.529 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2022-08-24 13:26:53.531 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2022-08-24 13:26:53.532 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2022-08-24 13:26:53.533 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2022-08-24 13:26:53.534 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2022-08-24 13:26:53.535 +08:00 [INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule +2022-08-24 13:26:53.536 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule +2022-08-24 13:26:53.537 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2022-08-24 13:26:53.542 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2022-08-24 13:26:53.543 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2022-08-24 13:26:53.544 +08:00 [INF] - Lion.AbpPro.BasicManagement.EntityFrameworkCore.BasicManagementEntityFrameworkCoreModule +2022-08-24 13:26:53.545 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2022-08-24 13:26:53.547 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2022-08-24 13:26:53.548 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2022-08-24 13:26:53.549 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2022-08-24 13:26:53.549 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2022-08-24 13:26:53.550 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2022-08-24 13:26:53.551 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2022-08-24 13:26:53.552 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2022-08-24 13:26:53.559 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2022-08-24 13:26:53.561 +08:00 [INF] - Lion.AbpPro.BasicManagement.BasicManagementHttpApiModule +2022-08-24 13:26:53.563 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2022-08-24 13:26:53.564 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2022-08-24 13:26:53.565 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2022-08-24 13:26:53.566 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2022-08-24 13:26:53.566 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2022-08-24 13:26:53.567 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2022-08-24 13:26:53.568 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2022-08-24 13:26:53.572 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2022-08-24 13:26:53.572 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2022-08-24 13:26:53.573 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2022-08-24 13:26:53.574 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2022-08-24 13:26:53.575 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2022-08-24 13:26:53.576 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2022-08-24 13:26:53.577 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2022-08-24 13:26:53.578 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2022-08-24 13:26:53.579 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2022-08-24 13:26:53.580 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2022-08-24 13:26:53.581 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2022-08-24 13:26:53.582 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2022-08-24 13:26:53.586 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2022-08-24 13:26:53.586 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2022-08-24 13:26:55.071 +08:00 [INF] Initialized all ABP modules. +2022-08-24 13:26:55.132 +08:00 [INF] Now listening on: http://localhost:44324 +2022-08-24 13:26:55.135 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2022-08-24 13:26:55.137 +08:00 [INF] Hosting environment: Development +2022-08-24 13:26:55.138 +08:00 [INF] Content root path: D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host +2022-08-24 13:26:55.302 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/ - - +2022-08-24 13:26:59.596 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-24 13:26:59.625 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller Lion.AbpPro.BasicManagement.Controllers.HomeController (Lion.AbpPro.BasicManagement.HttpApi.Host). +2022-08-24 13:26:59.664 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2022-08-24 13:26:59.672 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host) in 40.2794ms +2022-08-24 13:26:59.684 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Controllers.HomeController.Index (Lion.AbpPro.BasicManagement.HttpApi.Host)' +2022-08-24 13:26:59.721 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/ - - - 302 0 - 4419.2778ms +2022-08-24 13:26:59.733 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger - - +2022-08-24 13:26:59.739 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger - - - 301 0 - 6.0422ms +2022-08-24 13:26:59.746 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/index.html - - +2022-08-24 13:26:59.798 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/index.html - - - 200 - text/html;charset=utf-8 52.2946ms +2022-08-24 13:27:00.125 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - +2022-08-24 13:27:00.451 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/swagger/BasicManagement/swagger.json - - - 200 - application/json;charset=utf-8 326.7641ms +2022-08-24 13:27:10.772 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - +2022-08-24 13:27:10.775 +08:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-24 13:27:10.779 +08:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle). +2022-08-24 13:27:10.792 +08:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. +2022-08-24 13:27:10.794 +08:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 13.0704ms +2022-08-24 13:27:10.795 +08:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2022-08-24 13:27:10.796 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44324/abp/Swashbuckle/SetCsrfCookie application/json - - 204 - - 24.2157ms +2022-08-24 13:27:10.835 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-24 13:27:10.838 +08:00 [INF] No CORS policy found for the specified request. +2022-08-24 13:27:10.840 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-24 13:27:10.852 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-24 13:27:10.869 +08:00 [ERR] The antiforgery token could not be decrypted. +2022-08-24 13:27:10.871 +08:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. +2022-08-24 13:27:10.875 +08:00 [INF] Executing StatusCodeResult, setting HTTP status code 400 +2022-08-24 13:27:10.876 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 23.3032ms +2022-08-24 13:27:10.877 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-24 13:27:11.232 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 400 0 - 397.1138ms +2022-08-24 13:27:21.937 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 +2022-08-24 13:27:21.939 +08:00 [INF] No CORS policy found for the specified request. +2022-08-24 13:27:21.941 +08:00 [INF] Executing endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-24 13:27:21.942 +08:00 [INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Lion.AbpPro.BasicManagement.Users.Dtos.LoginOutput] LoginAsync(Lion.AbpPro.BasicManagement.Users.Dtos.LoginInput) on controller Lion.AbpPro.BasicManagement.Systems.AccountController (Lion.AbpPro.BasicManagement.HttpApi). +2022-08-24 13:27:23.234 +08:00 [WRN] ---------- RemoteServiceErrorInfo ---------- +{ + "code": "Lion.AbpPro.BasicManagement:100003", + "message": "用户名或者密码错误", + "details": null, + "data": {}, + "validationErrors": null +} + +2022-08-24 13:27:23.238 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown. +Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. + at Lion.AbpPro.BasicManagement.Users.AccountAppService.LoginAsync(LoginInput input) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\src\Lion.AbpPro.BasicManagement.Application\Users\AccountAppService.cs:line 39 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1387(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2022-08-24 13:27:23.297 +08:00 [WRN] Code:Lion.AbpPro.BasicManagement:100003 +2022-08-24 13:27:23.298 +08:00 [WRN] Details: +2022-08-24 13:27:23.313 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. +2022-08-24 13:27:23.322 +08:00 [INF] Executed action Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi) in 1378.6532ms +2022-08-24 13:27:23.327 +08:00 [INF] Executed endpoint 'Lion.AbpPro.BasicManagement.Systems.AccountController.LoginAsync (Lion.AbpPro.BasicManagement.HttpApi)' +2022-08-24 13:27:23.401 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44324/api/app/account/login application/json 46 - 403 - application/json;+charset=utf-8 1463.5504ms diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs.txt b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs.txt new file mode 100644 index 00000000..2aa25252 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Logs/logs.txt @@ -0,0 +1,16 @@ +2022-08-23 22:11:33.863 +08:00 [INF] Starting web host. +2022-08-23 22:11:39.197 +08:00 [FTL] Host terminated unexpectedly! +Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException: Exception of type 'Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException' was thrown. + at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.OnNext(KeyValuePair`2 value) + at System.Diagnostics.DiagnosticListener.Write(String name, Object value) + at Microsoft.Extensions.Hosting.HostBuilder.Build() + at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build() + at Lion.AbpPro.BasicManagement.Program.Main(String[] args) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host\Program.cs:line 36 +2022-08-23 22:13:21.209 +08:00 [INF] Starting web host. +2022-08-23 22:13:22.124 +08:00 [FTL] Host terminated unexpectedly! +Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException: Exception of type 'Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException' was thrown. + at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.OnNext(KeyValuePair`2 value) + at System.Diagnostics.DiagnosticListener.Write(String name, Object value) + at Microsoft.Extensions.Hosting.HostBuilder.Build() + at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build() + at Lion.AbpPro.BasicManagement.Program.Main(String[] args) in D:\github\WangJunZzz\abp-vnext-pro\aspnet-core\modules\BasicManagement\host\Lion.AbpPro.BasicManagement.HttpApi.Host\Program.cs:line 36 diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.Designer.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.Designer.cs new file mode 100644 index 00000000..97fb9c62 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.Designer.cs @@ -0,0 +1,1295 @@ +// +using System; +using Lion.AbpPro.BasicManagement.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Volo.Abp.EntityFrameworkCore; + +#nullable disable + +namespace Lion.AbpPro.BasicManagement.Migrations +{ + [DbContext(typeof(BasicManagementHttpApiHostMigrationsDbContext))] + [Migration("20220823141140_Init")] + partial class Init + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) + .HasAnnotation("ProductVersion", "6.0.7") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ApplicationName") + .HasMaxLength(96) + .HasColumnType("varchar(96)") + .HasColumnName("ApplicationName"); + + b.Property("BrowserInfo") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("BrowserInfo"); + + b.Property("ClientId") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ClientId"); + + b.Property("ClientIpAddress") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ClientIpAddress"); + + b.Property("ClientName") + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("ClientName"); + + b.Property("Comments") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Comments"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CorrelationId") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("CorrelationId"); + + b.Property("Exceptions") + .HasColumnType("longtext"); + + b.Property("ExecutionDuration") + .HasColumnType("int") + .HasColumnName("ExecutionDuration"); + + b.Property("ExecutionTime") + .HasColumnType("datetime(6)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("HttpMethod") + .HasMaxLength(16) + .HasColumnType("varchar(16)") + .HasColumnName("HttpMethod"); + + b.Property("HttpStatusCode") + .HasColumnType("int") + .HasColumnName("HttpStatusCode"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("char(36)") + .HasColumnName("ImpersonatorTenantId"); + + b.Property("ImpersonatorTenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ImpersonatorTenantName"); + + b.Property("ImpersonatorUserId") + .HasColumnType("char(36)") + .HasColumnName("ImpersonatorUserId"); + + b.Property("ImpersonatorUserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("ImpersonatorUserName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("TenantName"); + + b.Property("Url") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Url"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasColumnName("UserId"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("UserName"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId", "ExecutionTime"); + + b.ToTable("AbpAuditLogs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AuditLogId") + .HasColumnType("char(36)") + .HasColumnName("AuditLogId"); + + b.Property("ExecutionDuration") + .HasColumnType("int") + .HasColumnName("ExecutionDuration"); + + b.Property("ExecutionTime") + .HasColumnType("datetime(6)") + .HasColumnName("ExecutionTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("MethodName") + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("MethodName"); + + b.Property("Parameters") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasColumnName("Parameters"); + + b.Property("ServiceName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("ServiceName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("AuditLogId"); + + b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); + + b.ToTable("AbpAuditLogActions", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AuditLogId") + .HasColumnType("char(36)") + .HasColumnName("AuditLogId"); + + b.Property("ChangeTime") + .HasColumnType("datetime(6)") + .HasColumnName("ChangeTime"); + + b.Property("ChangeType") + .HasColumnType("tinyint unsigned") + .HasColumnName("ChangeType"); + + b.Property("EntityId") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("EntityId"); + + b.Property("EntityTenantId") + .HasColumnType("char(36)"); + + b.Property("EntityTypeFullName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("EntityTypeFullName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("AuditLogId"); + + b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("EntityChangeId") + .HasColumnType("char(36)"); + + b.Property("NewValue") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("NewValue"); + + b.Property("OriginalValue") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("OriginalValue"); + + b.Property("PropertyName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("PropertyName"); + + b.Property("PropertyTypeFullName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("PropertyTypeFullName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsAbandoned") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false); + + b.Property("JobArgs") + .IsRequired() + .HasMaxLength(1048576) + .HasColumnType("longtext"); + + b.Property("JobName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("LastTryTime") + .HasColumnType("datetime(6)"); + + b.Property("NextTryTime") + .HasColumnType("datetime(6)"); + + b.Property("Priority") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint unsigned") + .HasDefaultValue((byte)15); + + b.Property("TryCount") + .ValueGeneratedOnAdd() + .HasColumnType("smallint") + .HasDefaultValue((short)0); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.HasKey("Id"); + + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpFeatureValues", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("Description") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("Regex") + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("RegexDescription") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("Required") + .HasColumnType("tinyint(1)"); + + b.Property("ValueType") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("AbpClaimTypes", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("SourceTenantId") + .HasColumnType("char(36)"); + + b.Property("SourceUserId") + .HasColumnType("char(36)"); + + b.Property("TargetTenantId") + .HasColumnType("char(36)"); + + b.Property("TargetUserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") + .IsUnique(); + + b.ToTable("AbpLinkUsers", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasColumnName("IsDefault"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)") + .HasColumnName("IsPublic"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)") + .HasColumnName("IsStatic"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("NormalizedName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("NormalizedName"); + + b.ToTable("AbpRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => + { + b.Property("Id") + .HasColumnType("char(36)"); + + b.Property("ClaimType") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ClaimValue") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpRoleClaims", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Action") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("ApplicationName") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("BrowserInfo") + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("ClientId") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ClientIpAddress") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CorrelationId") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("Identity") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Action"); + + b.HasIndex("TenantId", "ApplicationName"); + + b.HasIndex("TenantId", "Identity"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpSecurityLogs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AccessFailedCount") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasDefaultValue(0) + .HasColumnName("AccessFailedCount"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Email") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Email"); + + b.Property("EmailConfirmed") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("EmailConfirmed"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsExternal") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsExternal"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("LockoutEnabled") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("LockoutEnabled"); + + b.Property("LockoutEnd") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("Name"); + + b.Property("NormalizedEmail") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("NormalizedEmail"); + + b.Property("NormalizedUserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("NormalizedUserName"); + + b.Property("PasswordHash") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("PasswordHash"); + + b.Property("PhoneNumber") + .HasMaxLength(16) + .HasColumnType("varchar(16)") + .HasColumnName("PhoneNumber"); + + b.Property("PhoneNumberConfirmed") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("PhoneNumberConfirmed"); + + b.Property("SecurityStamp") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("SecurityStamp"); + + b.Property("Surname") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("Surname"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TwoFactorEnabled") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("TwoFactorEnabled"); + + b.Property("UserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("UserName"); + + b.HasKey("Id"); + + b.HasIndex("Email"); + + b.HasIndex("NormalizedEmail"); + + b.HasIndex("NormalizedUserName"); + + b.HasIndex("UserName"); + + b.ToTable("AbpUsers", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => + { + b.Property("Id") + .HasColumnType("char(36)"); + + b.Property("ClaimType") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ClaimValue") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("AbpUserClaims", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("LoginProvider") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderDisplayName") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .IsRequired() + .HasMaxLength(196) + .HasColumnType("varchar(196)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("UserId", "LoginProvider"); + + b.HasIndex("LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => + { + b.Property("OrganizationUnitId") + .HasColumnType("char(36)"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("OrganizationUnitId", "UserId"); + + b.HasIndex("UserId", "OrganizationUnitId"); + + b.ToTable("AbpUserOrganizationUnits", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("UserId", "RoleId"); + + b.HasIndex("RoleId", "UserId"); + + b.ToTable("AbpUserRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("LoginProvider") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Name") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Value") + .HasColumnType("longtext"); + + b.HasKey("UserId", "LoginProvider", "Name"); + + b.ToTable("AbpUserTokens", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(95) + .HasColumnType("varchar(95)") + .HasColumnName("Code"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("Code"); + + b.HasIndex("ParentId"); + + b.ToTable("AbpOrganizationUnits", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => + { + b.Property("OrganizationUnitId") + .HasColumnType("char(36)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("OrganizationUnitId", "RoleId"); + + b.HasIndex("RoleId", "OrganizationUnitId"); + + b.ToTable("AbpOrganizationUnitRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpPermissionGrants", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(2048) + .HasColumnType("varchar(2048)"); + + b.HasKey("Id"); + + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpSettings", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.HasKey("Id"); + + b.HasIndex("Name"); + + b.ToTable("AbpTenants", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => + { + b.Property("TenantId") + .HasColumnType("char(36)"); + + b.Property("Name") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.HasKey("TenantId", "Name"); + + b.ToTable("AbpTenantConnectionStrings", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => + { + b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) + .WithMany("Actions") + .HasForeignKey("AuditLogId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) + .WithMany("EntityChanges") + .HasForeignKey("AuditLogId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => + { + b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => + { + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany() + .HasForeignKey("OrganizationUnitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("OrganizationUnits") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => + { + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany() + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany() + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany("Roles") + .HasForeignKey("OrganizationUnitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany() + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => + { + b.HasOne("Volo.Abp.TenantManagement.Tenant", null) + .WithMany("ConnectionStrings") + .HasForeignKey("TenantId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => + { + b.Navigation("Actions"); + + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => + { + b.Navigation("Claims"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => + { + b.Navigation("Claims"); + + b.Navigation("Logins"); + + b.Navigation("OrganizationUnits"); + + b.Navigation("Roles"); + + b.Navigation("Tokens"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.Navigation("Roles"); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => + { + b.Navigation("ConnectionStrings"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.cs new file mode 100644 index 00000000..ab400db7 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/20220823141140_Init.cs @@ -0,0 +1,880 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Lion.AbpPro.BasicManagement.Migrations +{ + public partial class Init : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterDatabase() + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + UserId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + TenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ImpersonatorUserId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ImpersonatorUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ImpersonatorTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ImpersonatorTenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExecutionTime = table.Column(type: "datetime(6)", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CorrelationId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + HttpMethod = table.Column(type: "varchar(16)", maxLength: 16, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Url = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Exceptions = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Comments = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + HttpStatusCode = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + JobName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + JobArgs = table.Column(type: "longtext", maxLength: 1048576, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + NextTryTime = table.Column(type: "datetime(6)", nullable: false), + LastTryTime = table.Column(type: "datetime(6)", nullable: true), + IsAbandoned = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + Priority = table.Column(type: "tinyint unsigned", nullable: false, defaultValue: (byte)15), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpClaimTypes", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Required = table.Column(type: "tinyint(1)", nullable: false), + IsStatic = table.Column(type: "tinyint(1)", nullable: false), + Regex = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + RegexDescription = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Description = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ValueType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpFeatureValues", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderKey = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpLinkUsers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + SourceUserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + SourceTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + TargetUserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TargetTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ParentId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + Code = table.Column(type: "varchar(95)", maxLength: 95, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + DisplayName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id"); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpPermissionGrants", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderKey = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpRoles", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + NormalizedName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + IsDefault = table.Column(type: "tinyint(1)", nullable: false), + IsStatic = table.Column(type: "tinyint(1)", nullable: false), + IsPublic = table.Column(type: "tinyint(1)", nullable: false), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpSecurityLogs", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Identity = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Action = table.Column(type: "varchar(96)", maxLength: 96, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + UserId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CorrelationId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "varchar(2048)", maxLength: 2048, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderKey = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + NormalizedUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Surname = table.Column(type: "varchar(64)", maxLength: 64, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Email = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + NormalizedEmail = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + EmailConfirmed = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + PasswordHash = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + SecurityStamp = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + IsExternal = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + PhoneNumber = table.Column(type: "varchar(16)", maxLength: 16, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + PhoneNumberConfirmed = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + IsActive = table.Column(type: "tinyint(1)", nullable: false), + TwoFactorEnabled = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + LockoutEnd = table.Column(type: "datetime(6)", nullable: true), + LockoutEnabled = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + LastModificationTime = table.Column(type: "datetime(6)", nullable: true), + LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + IsDeleted = table.Column(type: "tinyint(1)", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + DeletionTime = table.Column(type: "datetime(6)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpAuditLogActions", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + AuditLogId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + ServiceName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + MethodName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + Parameters = table.Column(type: "varchar(2000)", maxLength: 2000, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + ExecutionTime = table.Column(type: "datetime(6)", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); + table.ForeignKey( + name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + AuditLogId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ChangeTime = table.Column(type: "datetime(6)", nullable: false), + ChangeType = table.Column(type: "tinyint unsigned", nullable: false), + EntityTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + EntityId = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + EntityTypeFullName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ExtraProperties = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + RoleId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + OrganizationUnitId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUn~", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + RoleId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ClaimType = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ClaimValue = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpTenantConnectionStrings", + columns: table => new + { + TenantId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Value = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); + table.ForeignKey( + name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", + column: x => x.TenantId, + principalTable: "AbpTenants", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + UserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ClaimType = table.Column(type: "varchar(256)", maxLength: 256, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ClaimValue = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + UserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + LoginProvider = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + ProviderKey = table.Column(type: "varchar(196)", maxLength: 196, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + ProviderDisplayName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + UserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + OrganizationUnitId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + CreationTime = table.Column(type: "datetime(6)", nullable: false), + CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUn~", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + UserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + RoleId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + UserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + LoginProvider = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + Value = table.Column(type: "longtext", nullable: true) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"), + EntityChangeId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), + NewValue = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + OriginalValue = table.Column(type: "varchar(512)", maxLength: 512, nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"), + PropertyName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4"), + PropertyTypeFullName = table.Column(type: "varchar(64)", maxLength: 64, nullable: false) + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_AuditLogId", + table: "AbpAuditLogActions", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_Execution~", + table: "AbpAuditLogActions", + columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_AuditLogId", + table: "AbpEntityChanges", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", + table: "AbpFeatureValues", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_Target~", + table: "AbpLinkUsers", + columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "RoleId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_Code", + table: "AbpOrganizationUnits", + column: "Code"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", + table: "AbpPermissionGrants", + columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_NormalizedName", + table: "AbpRoles", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Action", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Action" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_ApplicationName", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "ApplicationName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Identity", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Identity" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_UserId", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_Name_ProviderName_ProviderKey", + table: "AbpSettings", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_Name", + table: "AbpTenants", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "UserId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_RoleId_UserId", + table: "AbpUserRoles", + columns: new[] { "RoleId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_Email", + table: "AbpUsers", + column: "Email"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedEmail", + table: "AbpUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedUserName", + table: "AbpUsers", + column: "NormalizedUserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_UserName", + table: "AbpUsers", + column: "UserName"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogActions"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpClaimTypes"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatureValues"); + + migrationBuilder.DropTable( + name: "AbpLinkUsers"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpPermissionGrants"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSecurityLogs"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantConnectionStrings"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + } + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/BasicManagementHttpApiHostMigrationsDbContextModelSnapshot.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/BasicManagementHttpApiHostMigrationsDbContextModelSnapshot.cs new file mode 100644 index 00000000..123fe83f --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Migrations/BasicManagementHttpApiHostMigrationsDbContextModelSnapshot.cs @@ -0,0 +1,1293 @@ +// +using System; +using Lion.AbpPro.BasicManagement.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Volo.Abp.EntityFrameworkCore; + +#nullable disable + +namespace Lion.AbpPro.BasicManagement.Migrations +{ + [DbContext(typeof(BasicManagementHttpApiHostMigrationsDbContext))] + partial class BasicManagementHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) + .HasAnnotation("ProductVersion", "6.0.7") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ApplicationName") + .HasMaxLength(96) + .HasColumnType("varchar(96)") + .HasColumnName("ApplicationName"); + + b.Property("BrowserInfo") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("BrowserInfo"); + + b.Property("ClientId") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ClientId"); + + b.Property("ClientIpAddress") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ClientIpAddress"); + + b.Property("ClientName") + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("ClientName"); + + b.Property("Comments") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Comments"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CorrelationId") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("CorrelationId"); + + b.Property("Exceptions") + .HasColumnType("longtext"); + + b.Property("ExecutionDuration") + .HasColumnType("int") + .HasColumnName("ExecutionDuration"); + + b.Property("ExecutionTime") + .HasColumnType("datetime(6)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("HttpMethod") + .HasMaxLength(16) + .HasColumnType("varchar(16)") + .HasColumnName("HttpMethod"); + + b.Property("HttpStatusCode") + .HasColumnType("int") + .HasColumnName("HttpStatusCode"); + + b.Property("ImpersonatorTenantId") + .HasColumnType("char(36)") + .HasColumnName("ImpersonatorTenantId"); + + b.Property("ImpersonatorTenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("ImpersonatorTenantName"); + + b.Property("ImpersonatorUserId") + .HasColumnType("char(36)") + .HasColumnName("ImpersonatorUserId"); + + b.Property("ImpersonatorUserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("ImpersonatorUserName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("TenantName"); + + b.Property("Url") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Url"); + + b.Property("UserId") + .HasColumnType("char(36)") + .HasColumnName("UserId"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("UserName"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "ExecutionTime"); + + b.HasIndex("TenantId", "UserId", "ExecutionTime"); + + b.ToTable("AbpAuditLogs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AuditLogId") + .HasColumnType("char(36)") + .HasColumnName("AuditLogId"); + + b.Property("ExecutionDuration") + .HasColumnType("int") + .HasColumnName("ExecutionDuration"); + + b.Property("ExecutionTime") + .HasColumnType("datetime(6)") + .HasColumnName("ExecutionTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("MethodName") + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("MethodName"); + + b.Property("Parameters") + .HasMaxLength(2000) + .HasColumnType("varchar(2000)") + .HasColumnName("Parameters"); + + b.Property("ServiceName") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("ServiceName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("AuditLogId"); + + b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); + + b.ToTable("AbpAuditLogActions", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AuditLogId") + .HasColumnType("char(36)") + .HasColumnName("AuditLogId"); + + b.Property("ChangeTime") + .HasColumnType("datetime(6)") + .HasColumnName("ChangeTime"); + + b.Property("ChangeType") + .HasColumnType("tinyint unsigned") + .HasColumnName("ChangeType"); + + b.Property("EntityId") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("EntityId"); + + b.Property("EntityTenantId") + .HasColumnType("char(36)"); + + b.Property("EntityTypeFullName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("EntityTypeFullName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("AuditLogId"); + + b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); + + b.ToTable("AbpEntityChanges", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("EntityChangeId") + .HasColumnType("char(36)"); + + b.Property("NewValue") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("NewValue"); + + b.Property("OriginalValue") + .HasMaxLength(512) + .HasColumnType("varchar(512)") + .HasColumnName("OriginalValue"); + + b.Property("PropertyName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("PropertyName"); + + b.Property("PropertyTypeFullName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("PropertyTypeFullName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityChangeId"); + + b.ToTable("AbpEntityPropertyChanges", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsAbandoned") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false); + + b.Property("JobArgs") + .IsRequired() + .HasMaxLength(1048576) + .HasColumnType("longtext"); + + b.Property("JobName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("LastTryTime") + .HasColumnType("datetime(6)"); + + b.Property("NextTryTime") + .HasColumnType("datetime(6)"); + + b.Property("Priority") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint unsigned") + .HasDefaultValue((byte)15); + + b.Property("TryCount") + .ValueGeneratedOnAdd() + .HasColumnType("smallint") + .HasDefaultValue((short)0); + + b.HasKey("Id"); + + b.HasIndex("IsAbandoned", "NextTryTime"); + + b.ToTable("AbpBackgroundJobs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.HasKey("Id"); + + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpFeatureValues", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("Description") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("Regex") + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("RegexDescription") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("Required") + .HasColumnType("tinyint(1)"); + + b.Property("ValueType") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("AbpClaimTypes", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("SourceTenantId") + .HasColumnType("char(36)"); + + b.Property("SourceUserId") + .HasColumnType("char(36)"); + + b.Property("TargetTenantId") + .HasColumnType("char(36)"); + + b.Property("TargetUserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") + .IsUnique(); + + b.ToTable("AbpLinkUsers", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDefault") + .HasColumnType("tinyint(1)") + .HasColumnName("IsDefault"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)") + .HasColumnName("IsPublic"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)") + .HasColumnName("IsStatic"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("NormalizedName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("NormalizedName"); + + b.ToTable("AbpRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => + { + b.Property("Id") + .HasColumnType("char(36)"); + + b.Property("ClaimType") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ClaimValue") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.ToTable("AbpRoleClaims", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Action") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("ApplicationName") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("BrowserInfo") + .HasMaxLength(512) + .HasColumnType("varchar(512)"); + + b.Property("ClientId") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ClientIpAddress") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CorrelationId") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("Identity") + .HasMaxLength(96) + .HasColumnType("varchar(96)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TenantName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Action"); + + b.HasIndex("TenantId", "ApplicationName"); + + b.HasIndex("TenantId", "Identity"); + + b.HasIndex("TenantId", "UserId"); + + b.ToTable("AbpSecurityLogs", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AccessFailedCount") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasDefaultValue(0) + .HasColumnName("AccessFailedCount"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Email") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("Email"); + + b.Property("EmailConfirmed") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("EmailConfirmed"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsExternal") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsExternal"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("LockoutEnabled") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("LockoutEnabled"); + + b.Property("LockoutEnd") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("Name"); + + b.Property("NormalizedEmail") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("NormalizedEmail"); + + b.Property("NormalizedUserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("NormalizedUserName"); + + b.Property("PasswordHash") + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("PasswordHash"); + + b.Property("PhoneNumber") + .HasMaxLength(16) + .HasColumnType("varchar(16)") + .HasColumnName("PhoneNumber"); + + b.Property("PhoneNumberConfirmed") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("PhoneNumberConfirmed"); + + b.Property("SecurityStamp") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("SecurityStamp"); + + b.Property("Surname") + .HasMaxLength(64) + .HasColumnType("varchar(64)") + .HasColumnName("Surname"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("TwoFactorEnabled") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("TwoFactorEnabled"); + + b.Property("UserName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)") + .HasColumnName("UserName"); + + b.HasKey("Id"); + + b.HasIndex("Email"); + + b.HasIndex("NormalizedEmail"); + + b.HasIndex("NormalizedUserName"); + + b.HasIndex("UserName"); + + b.ToTable("AbpUsers", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => + { + b.Property("Id") + .HasColumnType("char(36)"); + + b.Property("ClaimType") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256)"); + + b.Property("ClaimValue") + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("AbpUserClaims", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("LoginProvider") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderDisplayName") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .IsRequired() + .HasMaxLength(196) + .HasColumnType("varchar(196)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("UserId", "LoginProvider"); + + b.HasIndex("LoginProvider", "ProviderKey"); + + b.ToTable("AbpUserLogins", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => + { + b.Property("OrganizationUnitId") + .HasColumnType("char(36)"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("OrganizationUnitId", "UserId"); + + b.HasIndex("UserId", "OrganizationUnitId"); + + b.ToTable("AbpUserOrganizationUnits", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("UserId", "RoleId"); + + b.HasIndex("RoleId", "UserId"); + + b.ToTable("AbpUserRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => + { + b.Property("UserId") + .HasColumnType("char(36)"); + + b.Property("LoginProvider") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Name") + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Value") + .HasColumnType("longtext"); + + b.HasKey("UserId", "LoginProvider", "Name"); + + b.ToTable("AbpUserTokens", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(95) + .HasColumnType("varchar(95)") + .HasColumnName("Code"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("Code"); + + b.HasIndex("ParentId"); + + b.ToTable("AbpOrganizationUnits", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => + { + b.Property("OrganizationUnitId") + .HasColumnType("char(36)"); + + b.Property("RoleId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("OrganizationUnitId", "RoleId"); + + b.HasIndex("RoleId", "OrganizationUnitId"); + + b.ToTable("AbpOrganizationUnitRoles", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpPermissionGrants", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ProviderKey") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("ProviderName") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(2048) + .HasColumnType("varchar(2048)"); + + b.HasKey("Id"); + + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique(); + + b.ToTable("AbpSettings", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("ExtraProperties") + .HasColumnType("longtext") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.HasKey("Id"); + + b.HasIndex("Name"); + + b.ToTable("AbpTenants", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => + { + b.Property("TenantId") + .HasColumnType("char(36)"); + + b.Property("Name") + .HasMaxLength(64) + .HasColumnType("varchar(64)"); + + b.Property("Value") + .IsRequired() + .HasMaxLength(1024) + .HasColumnType("varchar(1024)"); + + b.HasKey("TenantId", "Name"); + + b.ToTable("AbpTenantConnectionStrings", (string)null); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => + { + b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) + .WithMany("Actions") + .HasForeignKey("AuditLogId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) + .WithMany("EntityChanges") + .HasForeignKey("AuditLogId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => + { + b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) + .WithMany("PropertyChanges") + .HasForeignKey("EntityChangeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => + { + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany("Claims") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Claims") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Logins") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany() + .HasForeignKey("OrganizationUnitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("OrganizationUnits") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => + { + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany() + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Roles") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => + { + b.HasOne("Volo.Abp.Identity.IdentityUser", null) + .WithMany("Tokens") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany() + .HasForeignKey("ParentId"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => + { + b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) + .WithMany("Roles") + .HasForeignKey("OrganizationUnitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Volo.Abp.Identity.IdentityRole", null) + .WithMany() + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => + { + b.HasOne("Volo.Abp.TenantManagement.Tenant", null) + .WithMany("ConnectionStrings") + .HasForeignKey("TenantId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => + { + b.Navigation("Actions"); + + b.Navigation("EntityChanges"); + }); + + modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => + { + b.Navigation("PropertyChanges"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => + { + b.Navigation("Claims"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => + { + b.Navigation("Claims"); + + b.Navigation("Logins"); + + b.Navigation("OrganizationUnits"); + + b.Navigation("Roles"); + + b.Navigation("Tokens"); + }); + + modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => + { + b.Navigation("Roles"); + }); + + modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => + { + b.Navigation("ConnectionStrings"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Program.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Program.cs new file mode 100644 index 00000000..4bafdea7 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Program.cs @@ -0,0 +1,32 @@ +using System; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Serilog; +using Serilog.Events; + +namespace Lion.AbpPro.BasicManagement; + +public class Program +{ + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + + } + + private static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.ConfigureKestrel((context, options) => { options.Limits.MaxRequestBodySize = 1024 * 50; }); + webBuilder.UseStartup(); + }) + .UseSerilog((context, loggerConfiguration) => + { + SerilogToEsExtensions.SetSerilogConfiguration( + loggerConfiguration, + context.Configuration); + }).UseAutofac(); +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Properties/launchSettings.json b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Properties/launchSettings.json new file mode 100644 index 00000000..26e73be5 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "Lion.AbpPro.BasicManagement.HttpApi.Host": { + "commandName": "Project", + "launchBrowser": true, + "applicationUrl": "http://localhost:44324", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/SerilogToEsExtensions.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/SerilogToEsExtensions.cs new file mode 100644 index 00000000..155541dc --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/SerilogToEsExtensions.cs @@ -0,0 +1,15 @@ +using Serilog; + +namespace Lion.AbpPro.BasicManagement +{ + public static class SerilogToEsExtensions + { + public static void SetSerilogConfiguration(LoggerConfiguration loggerConfiguration, IConfiguration configuration) + { + // 默认读取 configuration 中 "Serilog" 节点下的配置 + loggerConfiguration + .ReadFrom.Configuration(configuration) + .Enrich.FromLogContext(); + } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Startup.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Startup.cs new file mode 100644 index 00000000..2efeeafa --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/Startup.cs @@ -0,0 +1,15 @@ +namespace Lion.AbpPro.BasicManagement +{ + public class Startup + { + public void ConfigureServices(IServiceCollection services) + { + services.AddApplication(); + } + + public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) + { + app.InitializeApplication(); + } + } +} diff --git a/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/appsettings.json b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/appsettings.json new file mode 100644 index 00000000..668a7993 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/appsettings.json @@ -0,0 +1,48 @@ +{ + "Serilog": { + "Using": [ + "Serilog.Sinks.Console", + "Serilog.Sinks.File" + ], + "MinimumLevel": { + "Default": "Debug", + "Override": { + "Microsoft": "Information", + "Volo.Abp": "Information", + "Hangfire": "Information", + "DotNetCore.CAP": "Information", + "Serilog.AspNetCore": "Information", + "Microsoft.EntityFrameworkCore": "Warning", + "Microsoft.AspNetCore": "Information" + } + }, + "WriteTo": [ + { + "Name": "Console" + }, + { + "Name": "File", + "Args": { + "path": "logs/logs-.txt", + "rollingInterval": "Day" + } + } + ] + }, + "App": { + "SelfUrl": "http://localhost:44315", + "CorsOrigins": "https://*.AbpPro.com,http://localhost:4200,http://localhost:3100" + }, + "ConnectionStrings": { + "Default": "Data Source=localhost;Port=3306;Database=LionAbpProBasicManagementDB;uid=root;pwd=1q2w3E*;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true" + }, + "Redis": { + "Configuration": "localhost,password=mypassword,defaultdatabase=1" + }, + "Jwt": { + "Audience": "Lion.AbpPro.BasicManagement", + "SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=", + "Issuer": "Lion.AbpPro", + "ExpirationTime": 30 + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs similarity index 95% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs index 0bce5e07..05766ca7 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.AuditLogs +namespace Lion.AbpPro.BasicManagement.AuditLogs { public class GetAuditLogPageListOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/IAuditLogAppService.cs similarity index 87% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/IAuditLogAppService.cs index 53ac214d..769f1531 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/IAuditLogAppService.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.AuditLogs +namespace Lion.AbpPro.BasicManagement.AuditLogs { public interface IAuditLogAppService : IApplicationService { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs new file mode 100644 index 00000000..3b6933b2 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs @@ -0,0 +1,67 @@ +using System.Net; + +namespace Lion.AbpPro.BasicManagement.AuditLogs +{ + public class PagingAuditLogListInput : PagingBase + { + /// + /// 排序 + /// + public string Sorting { get; set; } + + /// + /// 开始时间 + /// + public DateTime? StartTime { get; set; } + + /// + /// 结束时间 + /// + public DateTime? EndTime { get; set; } + + /// + /// 请求方法 + /// + public string HttpMethod { get; set; } + + /// + /// 请求地址 + /// + public string Url { get; set; } + + /// + /// 用户名 + /// + public string UserName { get; set; } + + /// + /// 应用程序名称 + /// + public string ApplicationName { get; set; } + + /// + /// RequestId + /// + public string CorrelationId { get; set; } + + /// + /// 最大执行时间 + /// + public int? MaxExecutionDuration { get; set; } + + /// + /// 最小执行时间 + /// + public int? MinExecutionDuration { get; set; } + + /// + /// 是否有异常 + /// + public bool? HasException { get; set; } + + /// + /// http 状态码 + /// + public HttpStatusCode? HttpStatusCode { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementApplicationContractsModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementApplicationContractsModule.cs new file mode 100644 index 00000000..d7610ed8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementApplicationContractsModule.cs @@ -0,0 +1,25 @@ +using Volo.Abp.Account; +using Volo.Abp.Application; +using Volo.Abp.Modularity; +using Volo.Abp.Authorization; +using Volo.Abp.FeatureManagement; +using Volo.Abp.Identity; +using Volo.Abp.SettingManagement; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementDomainSharedModule), + typeof(AbpDddApplicationContractsModule), + typeof(AbpAuthorizationModule), + typeof(AbpAccountApplicationContractsModule), + typeof(AbpFeatureManagementApplicationContractsModule), + typeof(AbpIdentityApplicationContractsModule), + typeof(AbpPermissionManagementApplicationContractsModule), + typeof(AbpSettingManagementApplicationContractsModule), + typeof(AbpTenantManagementApplicationContractsModule) + )] +public class BasicManagementApplicationContractsModule : AbpModule +{ + +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementRemoteServiceConsts.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementRemoteServiceConsts.cs new file mode 100644 index 00000000..27044d03 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/BasicManagementRemoteServiceConsts.cs @@ -0,0 +1,8 @@ +namespace Lion.AbpPro.BasicManagement; + +public class BasicManagementRemoteServiceConsts +{ + public const string RemoteServiceName = "BasicManagement"; + + public const string ModuleName = "basicManagement"; +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/ConfigurationOptions/JwtOptions.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/ConfigurationOptions/JwtOptions.cs new file mode 100644 index 00000000..c0c7cb2b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/ConfigurationOptions/JwtOptions.cs @@ -0,0 +1,25 @@ +namespace Lion.AbpPro.BasicManagement.ConfigurationOptions +{ + public class JwtOptions + { + /// + /// 过期时间 单位小时 + /// + public int ExpirationTime { get; set; } + + /// + /// Audience + /// + public string Audience { get; set; } + + /// + /// 密钥 + /// + public string SecurityKey { get; set; } + + /// + /// Issuer + /// + public string Issuer { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/GlobalUsings.cs new file mode 100644 index 00000000..df8da7ef --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/GlobalUsings.cs @@ -0,0 +1,11 @@ +// Global using directives + +global using System.ComponentModel.DataAnnotations; +global using Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; +global using Lion.AbpPro.BasicManagement.Tenants.Dtos; +global using Lion.AbpPro.Extension.Customs.Dtos; +global using Volo.Abp.Application.Dtos; +global using Volo.Abp.Application.Services; +global using Volo.Abp.AspNetCore.Mvc.MultiTenancy; +global using Volo.Abp.PermissionManagement; +global using Volo.Abp.TenantManagement; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Lion.AbpPro.BasicManagement.Application.Contracts.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Lion.AbpPro.BasicManagement.Application.Contracts.csproj new file mode 100644 index 00000000..c15d3abb --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Lion.AbpPro.BasicManagement.Application.Contracts.csproj @@ -0,0 +1,22 @@ + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs similarity index 68% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs index 7144d81a..baeb5c3c 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class AddRoleToOrganizationUnitInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs similarity index 68% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs index a9c867b0..0ae05acd 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class AddUserToOrganizationUnitInput { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs new file mode 100644 index 00000000..61a50586 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; + +public class CreateOrganizationUnitInput +{ + [Required] + public string DisplayName { get; set; } + + public Guid? ParentId { get; set; } +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs similarity index 62% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs index 1c0d79b0..9fea6594 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetOrganizationUnitRoleInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs similarity index 64% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs index 06be2528..5e9c4baa 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetOrganizationUnitRoleOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs similarity index 69% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs index b5a26a7c..a2397f83 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetOrganizationUnitUserInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs similarity index 71% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs index cc17e16f..3c399415 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetOrganizationUnitUserOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs similarity index 67% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs index 31fb4828..2018d71e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetUnAddRoleInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs similarity index 61% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs index 383d5600..2d12b2dd 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetUnAddRoleOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs similarity index 67% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs index 1f428ba2..b8cfb273 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetUnAddUserInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs similarity index 70% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs index cc9db069..6de56e27 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class GetUnAddUserOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs similarity index 78% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs index fd9e4e8f..a41a8a67 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class OrganizationUnitDto { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs similarity index 68% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs index d48e518a..46e2eb19 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class RemoveRoleToOrganizationUnitInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs similarity index 68% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs index 4ff62487..8a13e9d3 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class RemoveUserToOrganizationUnitInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs similarity index 71% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs index 575f095a..f721dbd2 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; public class TreeOutput { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs new file mode 100644 index 00000000..5246fb03 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; + +public class UpdateOrganizationUnitInput +{ + [Required] + public string DisplayName { get; set; } + + public Guid Id { get; set; } +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs similarity index 96% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs index 7d2b9e59..819c3ee8 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.OrganizationUnits; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits; public interface IOrganizationUnitAppService : IApplicationService { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissionDefinitionProvider.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissionDefinitionProvider.cs new file mode 100644 index 00000000..f53b241c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissionDefinitionProvider.cs @@ -0,0 +1,43 @@ +using Lion.AbpPro.BasicManagement.Localization; +using Volo.Abp.Authorization.Permissions; +using Volo.Abp.Identity; +using Volo.Abp.Localization; + +namespace Lion.AbpPro.BasicManagement.Permissions; + +public class BasicManagementPermissionDefinitionProvider : PermissionDefinitionProvider +{ + public override void Define(IPermissionDefinitionContext context) + { + var abpIdentityGroup = context.GetGroup(IdentityPermissions.GroupName); + var userManagement = abpIdentityGroup.GetPermissionOrNull(IdentityPermissions.Users.Default); + userManagement.AddChild(BasicManagementPermissions.SystemManagement.UserEnable, L("Permission:Enable")); + userManagement.AddChild(BasicManagementPermissions.SystemManagement.UserExport, L("Permission:Export")); + + var auditManagement = + abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.AuditLog, L("Permission:AuditLogManagement")); + var settingManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.Setting, L("Permission:SettingManagement")); + var organizationUnitManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.OrganizationUnit, L("Permission:OrganizationUnitManagement")); + organizationUnitManagement.AddChild + ( + BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Create, + L("Permission:Create") + ); + organizationUnitManagement.AddChild + ( + BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Update, + L("Permission:Update") + ); + organizationUnitManagement.AddChild + ( + BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Delete, + L("Permission:Delete") + ); + + } + + private static LocalizableString L(string name) + { + return LocalizableString.Create(name); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissions.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissions.cs new file mode 100644 index 00000000..1aa5b8e3 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissions.cs @@ -0,0 +1,31 @@ +using Volo.Abp.Reflection; + +namespace Lion.AbpPro.BasicManagement.Permissions; + +public class BasicManagementPermissions +{ + /// + /// 系统管理扩展权限 + /// + public static class SystemManagement + { + public const string Default = "AbpIdentity"; + public const string UserEnable = Default + ".Users.Enable"; + public const string UserExport = Default + ".Users.Export"; + public const string AuditLog = Default + ".AuditLog"; + public const string Setting = Default + ".Setting"; + public const string OrganizationUnit = Default + ".OrganizationUnitManagement"; + public static class OrganizationUnitManagement + { + public const string Default = SystemManagement.Default + ".OrganizationUnitManagement"; + public const string Create = Default + ".Create"; + public const string Update = Default + ".Update"; + public const string Delete = Default + ".Delete"; + } + } + + public static string[] GetAll() + { + return ReflectionHelper.GetPublicConstantsRecursively(typeof(BasicManagementPermissions)); + } +} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/GetPermissionInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/GetPermissionInput.cs similarity index 78% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/GetPermissionInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/GetPermissionInput.cs index 84772568..c5766f96 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/GetPermissionInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/GetPermissionInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Roles.Dtos +namespace Lion.AbpPro.BasicManagement.Roles.Dtos { public class GetPermissionInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs similarity index 68% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs index 1b037f08..c168ff47 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Roles.Dtos +namespace Lion.AbpPro.BasicManagement.Roles.Dtos { public class PagingRoleListInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PermissionOutput.cs similarity index 91% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PermissionOutput.cs index 9d0e11e6..0f48d9de 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/PermissionOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Roles.Dtos +namespace Lion.AbpPro.BasicManagement.Roles.Dtos { public class PermissionOutput { public List Grants { get; set; } = new List(); diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs similarity index 66% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs index fc5f47b1..b9ce2c14 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Roles.Dtos +using Volo.Abp.Identity; + +namespace Lion.AbpPro.BasicManagement.Roles.Dtos { public class UpdateRoleInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs similarity index 84% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs index 407864aa..6844a7e4 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Roles.Dtos +namespace Lion.AbpPro.BasicManagement.Roles.Dtos { public class UpdateRolePermissionsInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRoleAppService.cs similarity index 77% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRoleAppService.cs index de28d6e3..c521ca63 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRoleAppService.cs @@ -1,4 +1,7 @@ -namespace Lion.AbpPro.Roles +using Lion.AbpPro.BasicManagement.Roles.Dtos; +using Volo.Abp.Identity; + +namespace Lion.AbpPro.BasicManagement.Roles { public interface IRoleAppService : IApplicationService { @@ -11,6 +14,5 @@ namespace Lion.AbpPro.Roles Task UpdateAsync(UpdateRoleInput input); Task DeleteAsync(IdInput input); - } } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRolePermissionAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRolePermissionAppService.cs similarity index 72% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRolePermissionAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRolePermissionAppService.cs index cf500eef..dc10fd9e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRolePermissionAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/IRolePermissionAppService.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Roles +using Lion.AbpPro.BasicManagement.Roles.Dtos; + +namespace Lion.AbpPro.BasicManagement.Roles { public interface IRolePermissionAppService : IApplicationService { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/PermissionOptions.cs similarity index 92% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/PermissionOptions.cs index 286fe4b3..75662a6e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Roles/PermissionOptions.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Roles; +namespace Lion.AbpPro.BasicManagement.Roles; public class PermissionOptions { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/SettingOutput.cs similarity index 96% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/SettingOutput.cs index c779d0a7..453ca495 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/SettingOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Settings.Dtos +namespace Lion.AbpPro.BasicManagement.Settings.Dtos { public class SettingOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs similarity index 80% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs index 2646e328..90dc0b84 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Settings.Dtos +namespace Lion.AbpPro.BasicManagement.Settings.Dtos { public class UpdateSettingInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/ISettingAppService.cs similarity index 80% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/ISettingAppService.cs index 52333dbf..3c860186 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Settings/ISettingAppService.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Settings +using Lion.AbpPro.BasicManagement.Settings.Dtos; + +namespace Lion.AbpPro.BasicManagement.Settings { public interface ISettingAppService : IApplicationService { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs similarity index 64% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs index de50f133..df04e765 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Tenants.Dtos +namespace Lion.AbpPro.BasicManagement.Tenants.Dtos { public class FindTenantByNameInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs similarity index 66% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs index e9458c17..4c8c6758 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Tenants.Dtos +namespace Lion.AbpPro.BasicManagement.Tenants.Dtos { public class PagingTenantInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs similarity index 79% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs index 67b43faf..e60de924 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Tenants.Dtos +namespace Lion.AbpPro.BasicManagement.Tenants.Dtos { public class UpdateConnectionStringInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs similarity index 77% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs index 2ba704b4..4aa78c29 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Tenants.Dtos +namespace Lion.AbpPro.BasicManagement.Tenants.Dtos { public class UpdateTenantInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/IVoloTenantAppService.cs similarity index 93% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/IVoloTenantAppService.cs index 704f7637..ef71680e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Tenants/IVoloTenantAppService.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Tenants +namespace Lion.AbpPro.BasicManagement.Tenants { public interface IVoloTenantAppService : IApplicationService { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs new file mode 100644 index 00000000..fa2d8838 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs @@ -0,0 +1,32 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace Lion.AbpPro.BasicManagement.Users.Dtos +{ + public class ExportIdentityUserOutput + { + [ExporterHeader(DisplayName = "用户名")] + public string UserName { get; set; } + + [ExporterHeader(DisplayName = "真实名称")] + public string Name { get; set; } + + [ExporterHeader(DisplayName = "邮箱")] + public string Email { get; set; } + + [ExporterHeader(DisplayName = "手机号码")] + public string PhoneNumber { get; set; } + + [ExporterHeader(IsIgnore = true)] + public bool IsActive { get; set; } + + + [ExporterHeader(DisplayName = "状态")] + public string Status => IsActive ? "启用" : "禁用"; + + [ExporterHeader(IsIgnore = true)] + public DateTime CreationTime { get; set; } + + [ExporterHeader(DisplayName = "创建时间")] + public string CreationTimeFormat => CreationTime.ToString("yyyy-MM-dd hh:mm:ss"); + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs similarity index 84% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs index 915d24b0..62b2299b 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Users.Dtos; +using Newtonsoft.Json; + +namespace Lion.AbpPro.BasicManagement.Users.Dtos; public class GithubAccessTokenResponse { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LockUserInput.cs similarity index 77% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LockUserInput.cs index 5ea7e430..aa450ce5 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LockUserInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Users.Dtos +namespace Lion.AbpPro.BasicManagement.Users.Dtos { public class LockUserInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginGithubResponse.cs similarity index 96% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginGithubResponse.cs index 0248b1d3..d4d02dee 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginGithubResponse.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Users.Dtos; +namespace Lion.AbpPro.BasicManagement.Users.Dtos; public class LoginGithubResponse { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginInput.cs similarity index 91% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginInput.cs index e790b8bf..9b6ec59d 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginInput.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Users.Dtos +using Volo.Abp.Auditing; + +namespace Lion.AbpPro.BasicManagement.Users.Dtos { /// /// 登录 diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginOutput.cs similarity index 85% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginOutput.cs index 2a52703f..5e1ac2f9 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginOutput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Users.Dtos +namespace Lion.AbpPro.BasicManagement.Users.Dtos { public class LoginOutput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginStsResponse.cs similarity index 89% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginStsResponse.cs index 83ddf605..80af74ed 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/LoginStsResponse.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Users.Dtos +namespace Lion.AbpPro.BasicManagement.Users.Dtos { public class LoginStsResponse { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/PagingUserListInput.cs similarity index 77% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/PagingUserListInput.cs index 7357ce92..b32de3a4 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/PagingUserListInput.cs @@ -1,4 +1,4 @@ -namespace Lion.AbpPro.Users.Dtos +namespace Lion.AbpPro.BasicManagement.Users.Dtos { public class PagingUserListInput : PagingBase { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/UpdateUserInput.cs similarity index 66% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/UpdateUserInput.cs index 1e3ca5bb..3a8ef0c8 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/Dtos/UpdateUserInput.cs @@ -1,4 +1,6 @@ -namespace Lion.AbpPro.Users.Dtos +using Volo.Abp.Identity; + +namespace Lion.AbpPro.BasicManagement.Users.Dtos { public class UpdateUserInput { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IAccountAppService.cs similarity index 67% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IAccountAppService.cs index adffafd7..9009b7c1 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IAccountAppService.cs @@ -1,12 +1,12 @@ -namespace Lion.AbpPro.Users +using Lion.AbpPro.BasicManagement.Users.Dtos; + +namespace Lion.AbpPro.BasicManagement.Users { public interface IAccountAppService: IApplicationService { /// /// 用户名密码登录 /// - /// - /// Task LoginAsync(LoginInput input); } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IUserAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IUserAppService.cs similarity index 72% rename from aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IUserAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IUserAppService.cs index 2a9820f2..171869ab 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IUserAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Users/IUserAppService.cs @@ -1,32 +1,30 @@ -namespace Lion.AbpPro.Users +using Lion.AbpPro.BasicManagement.Users.Dtos; +using Microsoft.AspNetCore.Mvc; +using Volo.Abp.Account; +using Volo.Abp.Identity; + +namespace Lion.AbpPro.BasicManagement.Users { public interface IUserAppService : IApplicationService { /// /// 分页查询用户 /// - /// - /// Task> ListAsync(PagingUserListInput input); /// /// 用户导出列表 /// - /// Task ExportAsync(PagingUserListInput input); /// /// 新增用户 /// - /// - /// Task CreateAsync(IdentityUserCreateDto input); /// /// 更新用户 /// - /// - /// Task UpdateAsync(UpdateUserInput input); /// @@ -38,21 +36,16 @@ namespace Lion.AbpPro.Users /// /// 获取用户角色信息 /// - /// Task> GetRoleByUserId(IdInput input); /// /// 修改密码 /// - /// - /// Task ChangePasswordAsync(ChangePasswordInput input); /// /// 锁定用户 /// - /// - /// Task LockAsync(LockUserInput input); } } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs similarity index 96% rename from aspnet-core/services/src/Lion.AbpPro.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs index b3cdda82..ad9b9338 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs @@ -1,15 +1,4 @@ -using System.Globalization; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations; -using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ObjectExtending; -using Volo.Abp.Authorization.Permissions; -using Volo.Abp.Features; -using Volo.Abp.MultiTenancy; -using Volo.Abp.Timing; - -namespace Lion.AbpPro.ApplicationConfigurations; - +namespace Lion.AbpPro.BasicManagement.ApplicationConfigurations; [Dependency(ReplaceServices = true)] public class LionAbpApplicationConfigurationAppService : ApplicationService, IAbpApplicationConfigurationAppService @@ -176,6 +165,7 @@ public class LionAbpApplicationConfigurationAppService : ApplicationService, IAb if (authConfig.GrantedPolicies.Any(e => e.Key == item)) continue; authConfig.GrantedPolicies.Add(item, true); } + return authConfig; } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/AuditLogs/AuditLogAppService.cs similarity index 89% rename from aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/AuditLogs/AuditLogAppService.cs index 6b7dfe7e..7645b377 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/AuditLogs/AuditLogAppService.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.AuditLogs +namespace Lion.AbpPro.BasicManagement.AuditLogs { [Authorize] - public class AuditLogAppService : AbpProAppService, IAuditLogAppService + public class AuditLogAppService : BasicManagementAppService, IAuditLogAppService { private readonly IAuditLogRepository _auditLogRepository; @@ -13,7 +13,7 @@ namespace Lion.AbpPro.AuditLogs /// /// 分页查询审计日志 /// - [Authorize(Policy = AbpProPermissions.SystemManagement.AuditLog)] + [Authorize(Policy = BasicManagementPermissions.SystemManagement.AuditLog)] public async Task> GetListAsync(PagingAuditLogListInput input) { var list = await _auditLogRepository.GetListAsync( diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementAppService.cs new file mode 100644 index 00000000..f8af60b5 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementAppService.cs @@ -0,0 +1,12 @@ +using Lion.AbpPro.BasicManagement.Localization; + +namespace Lion.AbpPro.BasicManagement; + +public abstract class BasicManagementAppService : ApplicationService +{ + protected BasicManagementAppService() + { + LocalizationResource = typeof(BasicManagementResource); + ObjectMapperContext = typeof(BasicManagementApplicationModule); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationAutoMapperProfile.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationAutoMapperProfile.cs new file mode 100644 index 00000000..dd42966c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationAutoMapperProfile.cs @@ -0,0 +1,23 @@ +using AutoMapper; +using Lion.AbpPro.BasicManagement.AuditLogs; +using Lion.AbpPro.BasicManagement.Users.Dtos; + +namespace Lion.AbpPro.BasicManagement; + +public class BasicManagementApplicationAutoMapperProfile : Profile +{ + public BasicManagementApplicationAutoMapperProfile() + { + CreateMap(); + CreateMap() + .ForMember(dest => dest.Token, opt => opt.Ignore()); + CreateMap() + .ForMember(e => e.CreationTimeFormat, opt => opt.Ignore()) + .ForMember(e => e.Status, opt => opt.Ignore()); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationModule.cs new file mode 100644 index 00000000..80d527e9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationModule.cs @@ -0,0 +1,67 @@ +using Lion.AbpPro.BasicManagement.ConfigurationOptions; +using Lion.AbpPro.BasicManagement.Roles; +using Magicodes.ExporterAndImporter.Core; +using Magicodes.ExporterAndImporter.Excel; +using Volo.Abp.Account; +using Volo.Abp.AutoMapper; +using Volo.Abp.Modularity; +using Volo.Abp.Application; +using Volo.Abp.FeatureManagement; +using Volo.Abp.Identity.AspNetCore; +using Volo.Abp.PermissionManagement; +using Volo.Abp.SettingManagement; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementDomainModule), + typeof(BasicManagementApplicationContractsModule), + typeof(AbpDddApplicationModule), + typeof(AbpIdentityAspNetCoreModule), + typeof(AbpAutoMapperModule), + typeof(AbpAccountApplicationModule), + typeof(AbpIdentityApplicationModule), + typeof(AbpPermissionManagementApplicationModule), + typeof(AbpTenantManagementApplicationModule), + typeof(AbpFeatureManagementApplicationModule), + typeof(AbpSettingManagementApplicationModule), + typeof(AbpAuditLoggingDomainModule) + )] +public class BasicManagementApplicationModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + context.Services.AddAutoMapperObjectMapper(); + Configure(options => + { + options.AddMaps(validate: true); + }); + + Configure(options => + { + options.Excludes.Add("AbpIdentity.Users.ManagePermissions"); + options.Excludes.Add("AbpIdentity.UserLookup"); + options.Excludes.Add("FeatureManagement"); + options.Excludes.Add("FeatureManagement.ManageHostFeatures"); + options.Excludes.Add("SettingManagement"); + options.Excludes.Add("SettingManagement.Emailing"); + options.Excludes.Add("AbpTenantManagement"); + options.Excludes.Add("AbpTenantManagement.Tenants.ManageFeatures"); + options.Excludes.Add("AbpTenantManagement.Tenants.ManageConnectionStrings"); + }); + + context.Services.Configure(context.Services.GetConfiguration().GetSection("Jwt")); + + ConfigureMagicodes(context); + } + + /// + /// 配置Magicodes.IE + /// Excel导入导出 + /// + private void ConfigureMagicodes(ServiceConfigurationContext context) + { + context.Services.AddTransient(); + context.Services.AddTransient(); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/GlobalUsings.cs new file mode 100644 index 00000000..dfa459e8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/GlobalUsings.cs @@ -0,0 +1,31 @@ +// Global using directives + +global using System.Globalization; +global using AutoMapper.Internal.Mappers; +global using Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; +global using Lion.AbpPro.BasicManagement.Permissions; +global using Lion.AbpPro.BasicManagement.Tenants.Dtos; +global using Lion.AbpPro.Extension.Customs.Dtos; +global using Microsoft.AspNetCore.Authorization; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Localization; +global using Microsoft.Extensions.Logging; +global using Microsoft.Extensions.Options; +global using Volo.Abp; +global using Volo.Abp.Application.Dtos; +global using Volo.Abp.Application.Services; +global using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations; +global using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ObjectExtending; +global using Volo.Abp.AspNetCore.Mvc.MultiTenancy; +global using Volo.Abp.AuditLogging; +global using Volo.Abp.Authorization; +global using Volo.Abp.Authorization.Permissions; +global using Volo.Abp.DependencyInjection; +global using Volo.Abp.Features; +global using Volo.Abp.Identity; +global using Volo.Abp.Localization; +global using Volo.Abp.MultiTenancy; +global using Volo.Abp.Settings; +global using Volo.Abp.TenantManagement; +global using Volo.Abp.Timing; +global using Volo.Abp.Users; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Lion.AbpPro.BasicManagement.Application.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Lion.AbpPro.BasicManagement.Application.csproj new file mode 100644 index 00000000..be652333 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Lion.AbpPro.BasicManagement.Application.csproj @@ -0,0 +1,26 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/OrganizationUnits/OrganizationUnitAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/OrganizationUnits/OrganizationUnitAppService.cs similarity index 87% rename from aspnet-core/services/src/Lion.AbpPro.Application/OrganizationUnits/OrganizationUnitAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/OrganizationUnits/OrganizationUnitAppService.cs index 831a7e56..55e9f3f1 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/OrganizationUnits/OrganizationUnitAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/OrganizationUnits/OrganizationUnitAppService.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.OrganizationUnits; +namespace Lion.AbpPro.BasicManagement.OrganizationUnits; [Authorize] -public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitAppService +public class OrganizationUnitAppService : BasicManagementAppService, IOrganizationUnitAppService { private readonly OrganizationUnitManager _organizationUnitManager; private readonly IdentityUserManager _identityUserManager; @@ -24,7 +24,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp return ConvertToTree(organizationUnitDtos); } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Create)] public async Task CreateAsync(CreateOrganizationUnitInput input) { var entity = new OrganizationUnit @@ -37,13 +37,13 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp await _organizationUnitManager.CreateAsync(entity); } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Delete)] public Task DeleteAsync(IdInput input) { return _organizationUnitManager.DeleteAsync(input.Id); } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Update)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Update)] public async Task UpdateAsync(UpdateOrganizationUnitInput input) { var entity = await _organizationUnitRepository.FindAsync(input.Id); @@ -54,7 +54,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp } } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Create)] public async Task AddRoleToOrganizationUnitAsync(AddRoleToOrganizationUnitInput input) { foreach (var roleId in input.RoleId) @@ -63,13 +63,13 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp } } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Delete)] public async Task RemoveRoleFromOrganizationUnitAsync(RemoveRoleToOrganizationUnitInput input) { await _organizationUnitManager.RemoveRoleFromOrganizationUnitAsync(input.RoleId, input.OrganizationUnitId); } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Create)] public async Task AddUserToOrganizationUnitAsync(AddUserToOrganizationUnitInput input) { foreach (var userId in input.UserId) @@ -78,7 +78,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp } } - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] + [Authorize(BasicManagementPermissions.SystemManagement.OrganizationUnitManagement.Delete)] public async Task RemoveUserFromOrganizationUnitAsync(RemoveUserToOrganizationUnitInput input) { await _identityUserManager.RemoveFromOrganizationUnitAsync(input.UserId, input.OrganizationUnitId); @@ -88,7 +88,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp { var listResult = new List(); var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); + if (organizationUnit == null) throw new BusinessException(BasicManagementErrorCodes.OrganizationUnitNotExist); var count = await _organizationUnitRepository.GetMembersCountAsync(organizationUnit, filter: input.Filter); if (count > 0) @@ -110,7 +110,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp { var listResult = new List(); var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); + if (organizationUnit == null) throw new BusinessException(BasicManagementErrorCodes.OrganizationUnitNotExist); var count = await _organizationUnitRepository.GetUnaddedUsersCountAsync(organizationUnit, input.Filter); if (count > 0) { @@ -131,7 +131,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp { var listResult = new List(); var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); + if (organizationUnit == null) throw new BusinessException(BasicManagementErrorCodes.OrganizationUnitNotExist); var count = await _organizationUnitRepository.GetRolesCountAsync(organizationUnit); if (count > 0) @@ -147,7 +147,7 @@ public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitApp { var listResult = new List(); var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); + if (organizationUnit == null) throw new BusinessException(BasicManagementErrorCodes.OrganizationUnitNotExist); var count = await _organizationUnitRepository.GetUnaddedRolesCountAsync(organizationUnit, input.Filter); if (count > 0) { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RoleAppService.cs similarity index 88% rename from aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RoleAppService.cs index 32d04a40..e167f138 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RoleAppService.cs @@ -1,7 +1,9 @@ -namespace Lion.AbpPro.Roles +using Lion.AbpPro.BasicManagement.Roles.Dtos; + +namespace Lion.AbpPro.BasicManagement.Roles { [Authorize] - public class RoleAppService : AbpProAppService, IRoleAppService + public class RoleAppService : BasicManagementAppService, IRoleAppService { private readonly IIdentityRoleAppService _identityRoleAppService; @@ -26,7 +28,7 @@ namespace Lion.AbpPro.Roles await _roleRepository.GetListAsync() .ConfigureAwait(continueOnCapturedContext: false); return new ListResultDto( - base.ObjectMapper.Map, List>(source)); + ObjectMapper.Map, List>(source)); } /// @@ -48,7 +50,7 @@ namespace Lion.AbpPro.Roles return new PagedResultDto( await _roleRepository.GetCountAsync(request.Filter) .ConfigureAwait(continueOnCapturedContext: false), - base.ObjectMapper.Map, List>(list)); + ObjectMapper.Map, List>(list)); } @@ -66,8 +68,6 @@ namespace Lion.AbpPro.Roles /// /// 更新角色 /// - /// - /// [Authorize(IdentityPermissions.Roles.Update)] public async Task UpdateAsync(UpdateRoleInput input) { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RolePermissionAppService.cs similarity index 94% rename from aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RolePermissionAppService.cs index 4ccbf385..88e60b00 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Roles/RolePermissionAppService.cs @@ -1,7 +1,10 @@ -namespace Lion.AbpPro.Roles +using Lion.AbpPro.BasicManagement.Roles.Dtos; +using Volo.Abp.PermissionManagement; + +namespace Lion.AbpPro.BasicManagement.Roles { [Authorize] - public class RolePermissionAppService : AbpProAppService, IRolePermissionAppService + public class RolePermissionAppService : BasicManagementAppService, IRolePermissionAppService { private readonly IPermissionAppService _rolePermissionAppService; private readonly PermissionOptions _permissionOptions; diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Settings/SettingAppService.cs similarity index 80% rename from aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Settings/SettingAppService.cs index b7e7e2af..cb780748 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Settings/SettingAppService.cs @@ -1,7 +1,10 @@ -namespace Lion.AbpPro.Settings +using Lion.AbpPro.BasicManagement.Settings.Dtos; +using Volo.Abp.SettingManagement; + +namespace Lion.AbpPro.BasicManagement.Settings { - [Authorize(policy: AbpProPermissions.SystemManagement.Setting)] - public class SettingAppService : AbpProAppService, ISettingAppService + [Authorize(policy: BasicManagementPermissions.SystemManagement.Setting)] + public class SettingAppService : BasicManagementAppService, ISettingAppService { private readonly ISettingDefinitionManager _settingDefinitionManager; private readonly ISettingManager _settingManager; @@ -21,10 +24,10 @@ namespace Lion.AbpPro.Settings { var allSettings = _settingDefinitionManager.GetAll().ToList(); var settings = allSettings - .Where(e => e.Properties.ContainsKey(AbpProSettings.Group.Default)).ToList(); + .Where(e => e.Properties.ContainsKey(BasicManagementSettings.Group.Default)).ToList(); var settingOutput = settings - .GroupBy(e => e.Properties[AbpProSettings.Group.Default].ToString()).Select(s => + .GroupBy(e => e.Properties[BasicManagementSettings.Group.Default].ToString()).Select(s => new SettingOutput { Group = s.Key, @@ -38,7 +41,7 @@ namespace Lion.AbpPro.Settings { var value = await SettingProvider.GetOrNullAsync(itemDefinition.Name); var type = itemDefinition.Properties - .FirstOrDefault(f => f.Key == AbpProSettings.ControlType.Default).Value + .FirstOrDefault(f => f.Key == BasicManagementSettings.ControlType.Default).Value .ToString(); item.SettingItemOutput.Add(new SettingItemOutput( @@ -59,12 +62,12 @@ namespace Lion.AbpPro.Settings { // The key of the settingValues is in camel_Case, like "setting_Abp_Localization_DefaultLanguage", // change it to "Abp.Localization.DefaultLanguage" form - if (!kv.Key.StartsWith(AbpProSettings.Prefix)) + if (!kv.Key.StartsWith(BasicManagementSettings.Prefix)) { continue; } - string name = kv.Key.RemovePreFix(AbpProSettings.Prefix); + string name = kv.Key.RemovePreFix(BasicManagementSettings.Prefix); var setting = _settingDefinitionManager.GetOrNull(name); if (setting == null) { diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Tenants/VoloTenantAppService.cs similarity index 94% rename from aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Tenants/VoloTenantAppService.cs index 44b7d1e1..3c59d663 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Tenants/VoloTenantAppService.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.Tenants +namespace Lion.AbpPro.BasicManagement.Tenants { [Authorize] - public class VoloTenantAppService : AbpProAppService, IVoloTenantAppService + public class VoloTenantAppService : BasicManagementAppService, IVoloTenantAppService { private readonly IAbpTenantAppService _abpTenantAppService; private readonly ITenantAppService _tenantAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs similarity index 84% rename from aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs index 5e524e88..fa074b95 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs @@ -1,24 +1,15 @@ -using System; -using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; -using System.Linq; -using System.Net.Http; using System.Security.Claims; using System.Text; -using System.Threading.Tasks; using IdentityModel; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Options; +using Lion.AbpPro.BasicManagement.ConfigurationOptions; +using Lion.AbpPro.BasicManagement.Users.Dtos; using Microsoft.IdentityModel.Tokens; -using Volo.Abp; -using Volo.Abp.Identity; -using Volo.Abp.MultiTenancy; using Volo.Abp.Security.Claims; - -namespace Lion.AbpPro.Users +namespace Lion.AbpPro.BasicManagement.Users { - public class AccountAppService : AbpProAppService, IAccountAppService + public class AccountAppService : BasicManagementAppService, IAccountAppService { private readonly IdentityUserManager _userManager; private readonly JwtOptions _jwtOptions; @@ -38,14 +29,15 @@ namespace Lion.AbpPro.Users public async Task LoginAsync(LoginInput input) { var result = await _signInManager.PasswordSignInAsync(input.Name, input.Password, false, true); + if (result.IsNotAllowed) { - throw new BusinessException(AbpProDomainErrorCodes.UserLockedOut); + throw new BusinessException(BasicManagementErrorCodes.UserLockedOut); } if (!result.Succeeded) { - throw new BusinessException(AbpProDomainErrorCodes.UserOrPasswordMismatch); + throw new BusinessException(BasicManagementErrorCodes.UserOrPasswordMismatch); } var user = await _userManager.FindByNameAsync(input.Name); @@ -57,7 +49,7 @@ namespace Lion.AbpPro.Users private async Task BuildResult(IdentityUser user) { - if (!user.IsActive) throw new BusinessException(AbpProDomainErrorCodes.UserLockedOut); + if (!user.IsActive) throw new BusinessException(BasicManagementErrorCodes.UserLockedOut); var roles = await _userManager.GetRolesAsync(user); if (roles == null || roles.Count == 0) throw new AbpAuthorizationException(); var token = GenerateJwt(user.Id, user.UserName, user.Name, user.Email, diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Users/UserAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/UserAppService.cs similarity index 91% rename from aspnet-core/services/src/Lion.AbpPro.Application/Users/UserAppService.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/UserAppService.cs index dc007f52..e1bc4e76 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Users/UserAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/UserAppService.cs @@ -1,7 +1,14 @@ -namespace Lion.AbpPro.Users +using Lion.AbpPro.BasicManagement.Users.Dtos; +using Magicodes.ExporterAndImporter.Excel; +using Magicodes.ExporterAndImporter.Excel.AspNetCore; +using Microsoft.AspNetCore.Identity; +using Microsoft.AspNetCore.Mvc; +using Volo.Abp.Account; + +namespace Lion.AbpPro.BasicManagement.Users { [Authorize] - public class UserAppService : AbpProAppService, IUserAppService + public class UserAppService : BasicManagementAppService, IUserAppService { private readonly IIdentityUserAppService _identityUserAppService; private readonly IdentityUserManager _userManager; @@ -47,7 +54,7 @@ namespace Lion.AbpPro.Users /// 用户导出列表 /// /// - [Authorize(AbpProPermissions.SystemManagement.UserExport)] + [Authorize(BasicManagementPermissions.SystemManagement.UserExport)] public async Task ExportAsync(PagingUserListInput input) { var request = new GetIdentityUsersInput @@ -136,7 +143,7 @@ namespace Lion.AbpPro.Users /// /// /// - [Authorize(AbpProPermissions.SystemManagement.UserEnable)] + [Authorize(BasicManagementPermissions.SystemManagement.UserEnable)] public async Task LockAsync(LockUserInput input) { var identityUser = await _userManager.GetByIdAsync(input.UserId); diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementConsts.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementConsts.cs new file mode 100644 index 00000000..828a8822 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementConsts.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement; + +public static class BasicManagementConsts +{ + /// 名称空间 + public const string NameSpace = "Lion.AbpPro.BasicManagement"; + /// 默认语言 + public const string DefaultCultureName = "zh-Hans"; +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementDomainSharedModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementDomainSharedModule.cs new file mode 100644 index 00000000..23fbd563 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementDomainSharedModule.cs @@ -0,0 +1,39 @@ +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(AbpAuditLoggingDomainSharedModule), + typeof(AbpBackgroundJobsDomainSharedModule), + typeof(AbpFeatureManagementDomainSharedModule), + typeof(AbpIdentityDomainSharedModule), + typeof(AbpPermissionManagementDomainSharedModule), + typeof(AbpSettingManagementDomainSharedModule), + typeof(AbpTenantManagementDomainSharedModule) +)] +public class BasicManagementDomainSharedModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => + { + options.FileSets.AddEmbedded(BasicManagementConsts.NameSpace); + }); + + Configure(options => + { + options.Resources + .Add(BasicManagementConsts.DefaultCultureName) + .AddVirtualJson("/Localization/BasicManagement") + .AddBaseTypes(typeof(IdentityResource)) + .AddBaseTypes(typeof(AbpValidationResource)) + .AddBaseTypes(typeof(AbpLocalizationResource)) + .AddBaseTypes(typeof(AbpSettingManagementResource)); + + options.DefaultResourceType = typeof(BasicManagementResource); + }); + + Configure(options => + { + options.MapCodeNamespace(BasicManagementConsts.NameSpace, typeof(BasicManagementResource)); + }); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementErrorCodes.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementErrorCodes.cs new file mode 100644 index 00000000..0ad14787 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/BasicManagementErrorCodes.cs @@ -0,0 +1,8 @@ +namespace Lion.AbpPro.BasicManagement; + +public static class BasicManagementErrorCodes +{ + public const string OrganizationUnitNotExist =BasicManagementConsts.NameSpace+ ":100001"; + public const string UserLockedOut =BasicManagementConsts.NameSpace+ ":100002"; + public const string UserOrPasswordMismatch =BasicManagementConsts.NameSpace+ ":100003"; +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/GlobalUsings.cs new file mode 100644 index 00000000..06880bc8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/GlobalUsings.cs @@ -0,0 +1,19 @@ +// Global using directives + +global using Lion.AbpPro.BasicManagement.Localization; +global using Volo.Abp.AuditLogging; +global using Volo.Abp.BackgroundJobs; +global using Volo.Abp.FeatureManagement; +global using Volo.Abp.Identity; +global using Volo.Abp.Identity.Localization; +global using Volo.Abp.Localization; +global using Volo.Abp.Localization.ExceptionHandling; +global using Volo.Abp.Localization.Resources.AbpLocalization; +global using Volo.Abp.Modularity; +global using Volo.Abp.PermissionManagement; +global using Volo.Abp.SettingManagement; +global using Volo.Abp.SettingManagement.Localization; +global using Volo.Abp.TenantManagement; +global using Volo.Abp.Validation; +global using Volo.Abp.Validation.Localization; +global using Volo.Abp.VirtualFileSystem; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Lion.AbpPro.BasicManagement.Domain.Shared.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Lion.AbpPro.BasicManagement.Domain.Shared.csproj new file mode 100644 index 00000000..5ab9be30 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Lion.AbpPro.BasicManagement.Domain.Shared.csproj @@ -0,0 +1,27 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + true + + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ar.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ar.json new file mode 100644 index 00000000..667c7e3a --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ar.json @@ -0,0 +1,7 @@ +{ + "culture": "ar", + "texts": { + "MyAccount": "إدارة ملفى", + "SamplePageMessage": "صفحة نموذجية للوحدة النمطية BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/cs.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/cs.json new file mode 100644 index 00000000..ccc81a53 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/cs.json @@ -0,0 +1,7 @@ +{ + "culture": "cs", + "texts": { + "MyAccount": "Spravovat profil", + "SamplePageMessage": "Ukázková stránka pro modul BasicManagement" + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/de-DE.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/de-DE.json new file mode 100644 index 00000000..0b478c2e --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/de-DE.json @@ -0,0 +1,7 @@ +{ + "culture": "de-DE", + "texts": { + "MyAccount": "Mein Konto", + "SamplePageMessage": "Eine Beispielseite für das Modul BasicManagementModul" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en-GB.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en-GB.json new file mode 100644 index 00000000..399fd5a9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en-GB.json @@ -0,0 +1,7 @@ +{ + "culture": "en-GB", + "texts": { + "MyAccount": "My account", + "SamplePageMessage": "A sample page for the BasicManagement module" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en.json new file mode 100644 index 00000000..738374ec --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/en.json @@ -0,0 +1,23 @@ +{ + "culture": "en", + "texts": { + "MyAccount": "My account", + "SamplePageMessage": "A sample page for the BasicManagement module", + "Permission:Query": "Query", + "Permission:Create": "Create", + "Permission:Update": "Update", + "Permission:Delete": "Delete", + "Permission:Export": "Export", + "Permission:Enable": "Enable|Disable", + "Permission:SystemManagement": "SystemManagement", + "Permission:AuditLogManagement": "AuditLog", + "Permission:HangfireManagement": "BackgroundTask", + "Permission:CapManagement": "IntegratedEvent", + "Permission:SettingManagement": "SettingManagement", + "Permission:OrganizationUnitManagement": "OrganizationUnitManagement", + "Setting.Group.System": "System", + "Lion.AbpPro.BasicManagement:100001": "OrganizationUnit Not Exist", + "Lion.AbpPro.BasicManagement:100002": "UserLockedOut", + "Lion.AbpPro.BasicManagement:100003": "UserOrPasswordMismatch" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/es.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/es.json new file mode 100644 index 00000000..cd625dfa --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/es.json @@ -0,0 +1,7 @@ +{ + "culture": "es", + "texts": { + "MyAccount": "Mi cuenta", + "SamplePageMessage": "Una página de ejemplo para el módulo BasicManagement " + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fi.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fi.json new file mode 100644 index 00000000..312609b8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fi.json @@ -0,0 +1,7 @@ +{ + "culture": "fi", + "texts": { + "MyAccount": "Tilini", + "SamplePageMessage": "Esimerkkisivu BasicManagement-moduulille" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fr.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fr.json new file mode 100644 index 00000000..6efb62a9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/fr.json @@ -0,0 +1,7 @@ +{ + "culture": "fr", + "texts": { + "MyAccount": "Mon compte", + "SamplePageMessage": "Exemple de page pour le module BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hi.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hi.json new file mode 100644 index 00000000..6ab98460 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hi.json @@ -0,0 +1,7 @@ +{ + "culture": "hi", + "texts": { + "MyAccount": "मेरा खाता", + "SamplePageMessage": "BasicManagement मॉड्यूल के लिए एक नमूना पृष्ठ" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hu.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hu.json new file mode 100644 index 00000000..7ce80476 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/hu.json @@ -0,0 +1,7 @@ +{ + "culture": "hu", + "texts": { + "MyAccount": "A fiókom", + "SamplePageMessage": "Mintaoldal a BasicManagement modulhoz" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/is.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/is.json new file mode 100644 index 00000000..69cf06b6 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/is.json @@ -0,0 +1,7 @@ +{ + "culture": "is", + "texts": { + "MyAccount": "Minn aðgangur", + "SamplePageMessage": "Dæmi um síðu fyrir BasicManagement eininguna" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/it.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/it.json new file mode 100644 index 00000000..70712339 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/it.json @@ -0,0 +1,7 @@ +{ + "culture": "it", + "texts": { + "MyAccount": "Il mio conto", + "SamplePageMessage": "Una pagina di esempio per il modulo BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/nl.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/nl.json new file mode 100644 index 00000000..ad9e2fc9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/nl.json @@ -0,0 +1,7 @@ +{ + "culture": "nl", + "texts": { + "MyAccount": "Mijn rekening", + "SamplePageMessage": "Een voorbeeldpagina voor de BasicManagement module" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pl-PL.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pl-PL.json new file mode 100644 index 00000000..89ef6dfe --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pl-PL.json @@ -0,0 +1,7 @@ +{ + "culture": "pl-PL", + "texts": { + "MyAccount": "Moje konto", + "SamplePageMessage": "Przykładowa strona modułu BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pt-BR.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pt-BR.json new file mode 100644 index 00000000..20d7d54a --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/pt-BR.json @@ -0,0 +1,7 @@ +{ + "culture": "pt-BR", + "texts": { + "MyAccount": "Minha conta", + "SamplePageMessage": "Uma página de amostra para o módulo BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ro-RO.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ro-RO.json new file mode 100644 index 00000000..544bad91 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ro-RO.json @@ -0,0 +1,7 @@ +{ + "culture": "ro-RO", + "texts": { + "MyAccount": "Contul meu", + "SamplePageMessage": "Un exemplu de pagină pentru modululul BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ru.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ru.json new file mode 100644 index 00000000..0656c980 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/ru.json @@ -0,0 +1,7 @@ +{ + "culture": "ru", + "texts": { + "MyAccount": "Мой аккаунт", + "SamplePageMessage": "Пример страницы для модуля BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sk.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sk.json new file mode 100644 index 00000000..76569eef --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sk.json @@ -0,0 +1,7 @@ +{ + "culture": "sk", + "texts": { + "MyAccount": "Môj účet", + "SamplePageMessage": "Ukážka stránky pre modul BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sl.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sl.json new file mode 100644 index 00000000..3f393154 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/sl.json @@ -0,0 +1,7 @@ +{ + "culture": "sl", + "texts": { + "MyAccount": "Moj račun", + "SamplePageMessage": "Vzorčna stran za modul BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/tr.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/tr.json new file mode 100644 index 00000000..aff6b5a7 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/tr.json @@ -0,0 +1,7 @@ +{ + "culture": "tr", + "texts": { + "MyAccount": "Hesabım", + "SamplePageMessage": "BasicManagement modulünden örnek bir sayfa" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/vi.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/vi.json new file mode 100644 index 00000000..c134e293 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/vi.json @@ -0,0 +1,7 @@ +{ + "culture": "vi", + "texts": { + "MyAccount": "Tài khoản của tôi", + "SamplePageMessage": "Trang mẫu cho mô-đun BasicManagement" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hans.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hans.json new file mode 100644 index 00000000..f17838de --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hans.json @@ -0,0 +1,24 @@ +{ + "culture": "zh-Hans", + "texts": { + "MyAccount": "我的账户", + "SamplePageMessage": "BasicManagement模块的示例页面", + "Permission:Query": "查询", + "Permission:Create": "创建", + "Permission:Update": "编辑", + "Permission:Delete": "删除", + "Permission:Export": "导出", + "Permission:Enable": "启用|禁用", + "Permission:AuditLogManagement": "审计日志", + "Permission:SystemManagement": "系统管理", + "Permission:HangfireManagement": "后台任务", + "Permission:CapManagement": "集成事件", + "Permission:SettingManagement": "设置管理", + "Permission:OrganizationUnitManagement": "组织结构管理", + + "Setting.Group.System": "系统", + "Lion.AbpPro.BasicManagement:100001": "组织机构不存在", + "Lion.AbpPro.BasicManagement:100002": "用户被锁定", + "Lion.AbpPro.BasicManagement:100003": "用户名或者密码错误" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hant.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hant.json new file mode 100644 index 00000000..5eff348d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hant.json @@ -0,0 +1,7 @@ +{ + "culture": "zh-Hant", + "texts": { + "MyAccount": "我的賬戶", + "SamplePageMessage": "BasicManagement 模塊的示例頁面" + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagementResource.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagementResource.cs new file mode 100644 index 00000000..01125445 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagementResource.cs @@ -0,0 +1,7 @@ +namespace Lion.AbpPro.BasicManagement.Localization; + +[LocalizationResourceName("BasicManagement")] +public class BasicManagementResource +{ + +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDbProperties.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDbProperties.cs new file mode 100644 index 00000000..d6ce77d8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDbProperties.cs @@ -0,0 +1,10 @@ +namespace Lion.AbpPro.BasicManagement; + +public static class BasicManagementDbProperties +{ + public static string DbTablePrefix { get; set; } = "BasicManagement"; + + public static string DbSchema { get; set; } = null; + + public const string ConnectionStringName = "BasicManagement"; +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDomainModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDomainModule.cs new file mode 100644 index 00000000..43639958 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/BasicManagementDomainModule.cs @@ -0,0 +1,23 @@ +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(AbpDddDomainModule), + typeof(BasicManagementDomainSharedModule), + typeof(AbpAuditLoggingDomainModule), + typeof(AbpBackgroundJobsDomainModule), + typeof(AbpFeatureManagementDomainModule), + typeof(AbpIdentityDomainModule), + typeof(AbpPermissionManagementDomainIdentityModule), + typeof(AbpSettingManagementDomainModule), + typeof(AbpTenantManagementDomainModule) +)] +public class BasicManagementDomainModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => + { + options.AddMaps(); + }); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/AbpProDbMigrationService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/AbpProDbMigrationService.cs new file mode 100644 index 00000000..d7c9a81d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/AbpProDbMigrationService.cs @@ -0,0 +1,213 @@ +using System.Diagnostics; +using System.Runtime.InteropServices; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.MultiTenancy; + +namespace Lion.AbpPro.BasicManagement.Data +{ + public class AbpProDbMigrationService : ITransientDependency + { + private ILogger Logger { get; set; } + + private readonly IDataSeeder _dataSeeder; + private readonly IEnumerable _dbSchemaMigrators; + private readonly ITenantRepository _tenantRepository; + private readonly ICurrentTenant _currentTenant; + + public AbpProDbMigrationService( + IDataSeeder dataSeeder, + IEnumerable dbSchemaMigrators, + ITenantRepository tenantRepository, + ICurrentTenant currentTenant) + { + _dataSeeder = dataSeeder; + _dbSchemaMigrators = dbSchemaMigrators; + _tenantRepository = tenantRepository; + _currentTenant = currentTenant; + + Logger = NullLogger.Instance; + } + + public async Task MigrateAsync() + { + var initialMigrationAdded = AddInitialMigrationIfNotExist(); + + if (initialMigrationAdded) + { + return; + } + + Logger.LogInformation("Started database migrations..."); + + await MigrateDatabaseSchemaAsync(); + await SeedDataAsync(); + + Logger.LogInformation($"Successfully completed host database migrations."); + + var tenants = await _tenantRepository.GetListAsync(includeDetails: true); + + var migratedDatabaseSchemas = new HashSet(); + foreach (var tenant in tenants) + { + using (_currentTenant.Change(tenant.Id)) + { + if (tenant.ConnectionStrings.Any()) + { + var tenantConnectionStrings = tenant.ConnectionStrings + .Select(x => x.Value) + .ToList(); + + if (!migratedDatabaseSchemas.IsSupersetOf(tenantConnectionStrings)) + { + await MigrateDatabaseSchemaAsync(tenant); + + migratedDatabaseSchemas.AddIfNotContains(tenantConnectionStrings); + } + } + + await SeedDataAsync(tenant); + } + + Logger.LogInformation($"Successfully completed {tenant.Name} tenant database migrations."); + } + + Logger.LogInformation("Successfully completed all database migrations."); + Logger.LogInformation("You can safely end this process..."); + } + + private async Task MigrateDatabaseSchemaAsync(Tenant tenant = null) + { + Logger.LogInformation( + $"Migrating schema for {(tenant == null ? "host" : tenant.Name + " tenant")} database..."); + + foreach (var migrator in _dbSchemaMigrators) + { + await migrator.MigrateAsync(); + } + } + + private async Task SeedDataAsync(Tenant tenant = null) + { + Logger.LogInformation($"Executing {(tenant == null ? "host" : tenant.Name + " tenant")} database seed..."); + + await _dataSeeder.SeedAsync(new DataSeedContext(tenant?.Id) + .WithProperty(IdentityDataSeedContributor.AdminEmailPropertyName, IdentityDataSeedContributor.AdminEmailDefaultValue) + .WithProperty(IdentityDataSeedContributor.AdminPasswordPropertyName, IdentityDataSeedContributor.AdminPasswordDefaultValue) + ); + } + + private bool AddInitialMigrationIfNotExist() + { + try + { + if (!DbMigrationsProjectExists()) + { + return false; + } + } + catch (Exception) + { + return false; + } + + try + { + if (!MigrationsFolderExists()) + { + AddInitialMigration(); + return true; + } + else + { + return false; + } + } + catch (Exception e) + { + Logger.LogWarning("Couldn't determinate if any migrations exist : " + e.Message); + return false; + } + } + + private bool DbMigrationsProjectExists() + { + var dbMigrationsProjectFolder = GetDbMigrationsProjectFolderPath(); + + return dbMigrationsProjectFolder != null; + } + + private bool MigrationsFolderExists() + { + var dbMigrationsProjectFolder = GetDbMigrationsProjectFolderPath(); + + return Directory.Exists(Path.Combine(dbMigrationsProjectFolder, "EntityFrameworkCore")); + } + + private void AddInitialMigration() + { + Logger.LogInformation("Creating initial migration..."); + + string argumentPrefix; + string fileName; + + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + { + argumentPrefix = "-c"; + fileName = "/bin/bash"; + } + else + { + argumentPrefix = "/C"; + fileName = "cmd.exe"; + } + + var procStartInfo = new ProcessStartInfo(fileName, + $"{argumentPrefix} \"abp create-migration-and-run-migrator \"{GetDbMigrationsProjectFolderPath()}\"\"" + ); + + try + { + Process.Start(procStartInfo); + } + catch (Exception) + { + throw new Exception("Couldn't run ABP CLI..."); + } + } + + private string GetDbMigrationsProjectFolderPath() + { + var slnDirectoryPath = GetSolutionDirectoryPath(); + + if (slnDirectoryPath == null) + { + throw new Exception("Solution folder not found!"); + } + + var srcDirectoryPath = Path.Combine(slnDirectoryPath, "src"); + + return Directory.GetDirectories(srcDirectoryPath) + .FirstOrDefault(d => d.EndsWith(".DbMigrations")); + } + + private string GetSolutionDirectoryPath() + { + var currentDirectory = new DirectoryInfo(Directory.GetCurrentDirectory()); + + while (Directory.GetParent(currentDirectory.FullName) != null) + { + currentDirectory = Directory.GetParent(currentDirectory.FullName); + + if (Directory.GetFiles(currentDirectory.FullName).FirstOrDefault(f => f.EndsWith(".sln")) != null) + { + return currentDirectory.FullName; + } + } + + return null; + } + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/IAbpProDbSchemaMigrator.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/IAbpProDbSchemaMigrator.cs new file mode 100644 index 00000000..f8a038ea --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/IAbpProDbSchemaMigrator.cs @@ -0,0 +1,7 @@ +namespace Lion.AbpPro.BasicManagement.Data +{ + public interface IAbpProDbSchemaMigrator + { + Task MigrateAsync(); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/NullAbpProDbSchemaMigrator.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/NullAbpProDbSchemaMigrator.cs new file mode 100644 index 00000000..45984b83 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/NullAbpProDbSchemaMigrator.cs @@ -0,0 +1,15 @@ +using Volo.Abp.DependencyInjection; + +namespace Lion.AbpPro.BasicManagement.Data +{ + /* This is used if database provider does't define + * IAbpProDbSchemaMigrator implementation. + */ + public class NullAbpProDbSchemaMigrator : IAbpProDbSchemaMigrator, ITransientDependency + { + public Task MigrateAsync() + { + return Task.CompletedTask; + } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs similarity index 85% rename from aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs index 833805ae..ce4fc26e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs @@ -1,4 +1,7 @@ -namespace Lion.AbpPro.Data.Seeds +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; + +namespace Lion.AbpPro.BasicManagement.Data.Seeds { public class AbpSettingDataSeedContributor : IDataSeedContributor, ITransientDependency { diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/UserDataSeedContributor.cs similarity index 91% rename from aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/UserDataSeedContributor.cs index 35558a7c..853048dc 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Data/Seeds/UserDataSeedContributor.cs @@ -1,4 +1,7 @@ -namespace Lion.AbpPro.Data.Seeds +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; + +namespace Lion.AbpPro.BasicManagement.Data.Seeds { public class UserDataSeedContributor : IDataSeedContributor, ITransientDependency { diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/GlobalUsings.cs new file mode 100644 index 00000000..09653865 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/GlobalUsings.cs @@ -0,0 +1,12 @@ +// Global using directives + +global using Volo.Abp.AuditLogging; +global using Volo.Abp.AutoMapper; +global using Volo.Abp.BackgroundJobs; +global using Volo.Abp.Domain; +global using Volo.Abp.FeatureManagement; +global using Volo.Abp.Identity; +global using Volo.Abp.Modularity; +global using Volo.Abp.PermissionManagement.Identity; +global using Volo.Abp.SettingManagement; +global using Volo.Abp.TenantManagement; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Lion.AbpPro.BasicManagement.Domain.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Lion.AbpPro.BasicManagement.Domain.csproj new file mode 100644 index 00000000..0cc0075d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Lion.AbpPro.BasicManagement.Domain.csproj @@ -0,0 +1,22 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettingDefinitionProvider.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettingDefinitionProvider.cs new file mode 100644 index 00000000..01b87a48 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettingDefinitionProvider.cs @@ -0,0 +1,62 @@ +using Lion.AbpPro.BasicManagement.Localization; +using Volo.Abp.Localization; +using Volo.Abp.Settings; + +namespace Lion.AbpPro.BasicManagement.Settings; + +public class BasicManagementSettingDefinitionProvider : SettingDefinitionProvider +{ + public override void Define(ISettingDefinitionContext context) + { + //Define your own settings here. Example: + //context.Add(new SettingDefinition(BasicManagementSettings.MySetting1)); + OverrideDefalutSettings(context); + } + + /// + /// 重写默认setting添加自定义属性 + /// + private static void OverrideDefalutSettings(ISettingDefinitionContext context) + { + context.GetOrNull("Abp.Identity.Password.RequiredLength") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.Number); + + context.GetOrNull("Abp.Identity.Password.RequiredUniqueChars") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.Number); + + context.GetOrNull("Abp.Identity.Password.RequireNonAlphanumeric") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.TypeCheckBox); + + context.GetOrNull("Abp.Identity.Password.RequireLowercase") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.TypeCheckBox); + + context.GetOrNull("Abp.Identity.Password.RequireUppercase") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.TypeCheckBox); + + context.GetOrNull("Abp.Identity.Password.RequireDigit") + .WithProperty(BasicManagementSettings.Group.Default, + BasicManagementSettings.Group.SystemManagement) + .WithProperty(BasicManagementSettings.ControlType.Default, + BasicManagementSettings.ControlType.TypeCheckBox); + } + + private static LocalizableString L(string name) + { + return LocalizableString.Create(name); + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettings.cs new file mode 100644 index 00000000..9b8bc947 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain/Settings/BasicManagementSettings.cs @@ -0,0 +1,26 @@ +namespace Lion.AbpPro.BasicManagement.Settings; + +public static class BasicManagementSettings +{ + public const string Prefix = "setting_"; + + /// + /// 前端控件类型 + /// + public static class ControlType + { + public const string Default = "Type"; + public const string TypeText = "Text"; + public const string TypeCheckBox = "CheckBox"; + public const string Number = "Number"; + } + + /// + /// 系统控制分组 + /// + public static class Group + { + public const string Default = "Setting.Group"; + public const string SystemManagement = Default + ".System"; + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContext.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContext.cs new file mode 100644 index 00000000..37b6c8d4 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContext.cs @@ -0,0 +1,33 @@ +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +[ConnectionStringName(BasicManagementDbProperties.ConnectionStringName)] +public class BasicManagementDbContext : AbpDbContext, IBasicManagementDbContext +{ + + public DbSet FeatureValues { get; set; } + public DbSet Users { get; set; } + public DbSet Roles { get; set; } + public DbSet ClaimTypes { get; set; } + public DbSet OrganizationUnits { get; set; } + public DbSet SecurityLogs { get; set; } + public DbSet LinkUsers { get; set; } + public DbSet PermissionGrants { get; set; } + public DbSet Settings { get; set; } + public DbSet Tenants { get; set; } + public DbSet TenantConnectionStrings { get; set; } + public DbSet BackgroundJobs { get; set; } + public DbSet AuditLogs { get; set; } + public BasicManagementDbContext(DbContextOptions options) + : base(options) + { + + } + + protected override void OnModelCreating(ModelBuilder builder) + { + base.OnModelCreating(builder); + + builder.ConfigureBasicManagement(); + } + +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContextModelCreatingExtensions.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContextModelCreatingExtensions.cs new file mode 100644 index 00000000..b81f18e6 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementDbContextModelCreatingExtensions.cs @@ -0,0 +1,18 @@ +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +public static class BasicManagementDbContextModelCreatingExtensions +{ + public static void ConfigureBasicManagement( + this ModelBuilder builder) + { + Check.NotNull(builder, nameof(builder)); + + builder.ConfigurePermissionManagement(); + builder.ConfigureSettingManagement(); + builder.ConfigureBackgroundJobs(); + builder.ConfigureAuditLogging(); + builder.ConfigureIdentity(); + builder.ConfigureFeatureManagement(); + builder.ConfigureTenantManagement(); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementEntityFrameworkCoreModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementEntityFrameworkCoreModule.cs new file mode 100644 index 00000000..e51b804e --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/BasicManagementEntityFrameworkCoreModule.cs @@ -0,0 +1,25 @@ +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +[DependsOn( + typeof(BasicManagementDomainModule), + typeof(AbpEntityFrameworkCoreModule), + typeof(AbpIdentityEntityFrameworkCoreModule), + typeof(AbpPermissionManagementEntityFrameworkCoreModule), + typeof(AbpSettingManagementEntityFrameworkCoreModule), + typeof(AbpBackgroundJobsEntityFrameworkCoreModule), + typeof(AbpAuditLoggingEntityFrameworkCoreModule), + typeof(AbpTenantManagementEntityFrameworkCoreModule), + typeof(AbpFeatureManagementEntityFrameworkCoreModule) +)] +public class BasicManagementEntityFrameworkCoreModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + context.Services.AddAbpDbContext(options => + { + /* Add custom repositories here. Example: + * options.AddRepository(); + */ + }); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/IBasicManagementDbContext.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/IBasicManagementDbContext.cs new file mode 100644 index 00000000..b2527f78 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/EntityFrameworkCore/IBasicManagementDbContext.cs @@ -0,0 +1,15 @@ +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +[ConnectionStringName(BasicManagementDbProperties.ConnectionStringName)] +public interface IBasicManagementDbContext : + IEfCoreDbContext, + IFeatureManagementDbContext, + IIdentityDbContext, + IPermissionManagementDbContext, + ISettingManagementDbContext, + ITenantManagementDbContext, + IBackgroundJobsDbContext, + IAuditLoggingDbContext +{ + +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/GlobalUsings.cs new file mode 100644 index 00000000..82a4adde --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/GlobalUsings.cs @@ -0,0 +1,22 @@ +// Global using directives + +global using Microsoft.EntityFrameworkCore; +global using Microsoft.Extensions.DependencyInjection; +global using Volo.Abp; +global using Volo.Abp.AuditLogging; +global using Volo.Abp.AuditLogging.EntityFrameworkCore; +global using Volo.Abp.BackgroundJobs; +global using Volo.Abp.BackgroundJobs.EntityFrameworkCore; +global using Volo.Abp.Data; +global using Volo.Abp.EntityFrameworkCore; +global using Volo.Abp.FeatureManagement; +global using Volo.Abp.FeatureManagement.EntityFrameworkCore; +global using Volo.Abp.Identity; +global using Volo.Abp.Identity.EntityFrameworkCore; +global using Volo.Abp.Modularity; +global using Volo.Abp.PermissionManagement; +global using Volo.Abp.PermissionManagement.EntityFrameworkCore; +global using Volo.Abp.SettingManagement; +global using Volo.Abp.SettingManagement.EntityFrameworkCore; +global using Volo.Abp.TenantManagement; +global using Volo.Abp.TenantManagement.EntityFrameworkCore; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj new file mode 100644 index 00000000..1e9a6187 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.EntityFrameworkCore/Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj @@ -0,0 +1,20 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/BasicManagementHttpApiClientModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/BasicManagementHttpApiClientModule.cs new file mode 100644 index 00000000..4a05fe5b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/BasicManagementHttpApiClientModule.cs @@ -0,0 +1,26 @@ +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp.Http.Client; +using Volo.Abp.Modularity; +using Volo.Abp.VirtualFileSystem; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementApplicationContractsModule), + typeof(AbpHttpClientModule))] +public class BasicManagementHttpApiClientModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + context.Services.AddHttpClientProxies( + typeof(BasicManagementApplicationContractsModule).Assembly, + BasicManagementRemoteServiceConsts.RemoteServiceName + ); + + Configure(options => + { + options.FileSets.AddEmbedded(); + }); + + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.abppkg.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.abppkg.json new file mode 100644 index 00000000..7deef5e3 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.abppkg.json @@ -0,0 +1,3 @@ +{ + "role": "lib.http-api-client" +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.csproj new file mode 100644 index 00000000..d6f31dad --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi.Client/Lion.AbpPro.BasicManagement.HttpApi.Client.csproj @@ -0,0 +1,18 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementController.cs new file mode 100644 index 00000000..196af5b9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementController.cs @@ -0,0 +1,12 @@ +using Lion.AbpPro.BasicManagement.Localization; +using Volo.Abp.AspNetCore.Mvc; + +namespace Lion.AbpPro.BasicManagement; + +public abstract class BasicManagementController : AbpControllerBase +{ + protected BasicManagementController() + { + LocalizationResource = typeof(BasicManagementResource); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementHttpApiModule.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementHttpApiModule.cs new file mode 100644 index 00000000..70bd9da9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/BasicManagementHttpApiModule.cs @@ -0,0 +1,32 @@ +using Localization.Resources.AbpUi; +using Lion.AbpPro.BasicManagement.Localization; +using Volo.Abp.AspNetCore.Mvc; +using Volo.Abp.Localization; +using Volo.Abp.Modularity; +using Microsoft.Extensions.DependencyInjection; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementApplicationContractsModule), + typeof(AbpAspNetCoreMvcModule))] +public class BasicManagementHttpApiModule : AbpModule +{ + public override void PreConfigureServices(ServiceConfigurationContext context) + { + PreConfigure(mvcBuilder => + { + mvcBuilder.AddApplicationPartIfNotExists(typeof(BasicManagementHttpApiModule).Assembly); + }); + } + + public override void ConfigureServices(ServiceConfigurationContext context) + { + Configure(options => + { + options.Resources + .Get() + .AddBaseTypes(typeof(AbpUiResource)); + }); + } +} diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/GlobalUsings.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/GlobalUsings.cs new file mode 100644 index 00000000..f6079937 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/GlobalUsings.cs @@ -0,0 +1,19 @@ +// Global using directives + +global using Lion.AbpPro.BasicManagement.AuditLogs; +global using Lion.AbpPro.BasicManagement.OrganizationUnits; +global using Lion.AbpPro.BasicManagement.OrganizationUnits.Dto; +global using Lion.AbpPro.BasicManagement.Roles; +global using Lion.AbpPro.BasicManagement.Roles.Dtos; +global using Lion.AbpPro.BasicManagement.Settings; +global using Lion.AbpPro.BasicManagement.Settings.Dtos; +global using Lion.AbpPro.BasicManagement.Tenants.Dtos; +global using Lion.AbpPro.BasicManagement.Users; +global using Lion.AbpPro.BasicManagement.Users.Dtos; +global using Lion.AbpPro.Extension.Customs.Dtos; +global using Microsoft.AspNetCore.Mvc; +global using Swashbuckle.AspNetCore.Annotations; +global using Volo.Abp.Application.Dtos; +global using Volo.Abp.AspNetCore.Mvc.MultiTenancy; +global using Volo.Abp.Identity; +global using Volo.Abp.TenantManagement; \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Lion.AbpPro.BasicManagement.HttpApi.csproj b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Lion.AbpPro.BasicManagement.HttpApi.csproj new file mode 100644 index 00000000..578798d1 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Lion.AbpPro.BasicManagement.HttpApi.csproj @@ -0,0 +1,14 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AccountController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AccountController.cs similarity index 57% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AccountController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AccountController.cs index f7ed6f4d..ad7f6358 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AccountController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AccountController.cs @@ -1,8 +1,6 @@ -using IAccountAppService = Lion.AbpPro.Users.IAccountAppService; - -namespace Lion.AbpPro.Controllers.Systems +namespace Lion.AbpPro.BasicManagement.Systems { - public class AccountController : AbpProController,IAccountAppService + public class AccountController : BasicManagementController, IAccountAppService { private readonly IAccountAppService _accountAppService; @@ -12,11 +10,10 @@ namespace Lion.AbpPro.Controllers.Systems } - [SwaggerOperation(summary: "登录", Tags = new[] {"Account"})] + [SwaggerOperation(summary: "登录", Tags = new[] { "Account" })] public Task LoginAsync(LoginInput input) { return _accountAppService.LoginAsync(input); } - } } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AuditLogController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AuditLogController.cs similarity index 81% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AuditLogController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AuditLogController.cs index d286abee..68e96a69 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AuditLogController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/AuditLogController.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.Controllers.Systems +namespace Lion.AbpPro.BasicManagement.Systems { [Route("AuditLogs")] - public class AuditLogController : AbpProController,IAuditLogAppService + public class AuditLogController : BasicManagementController,IAuditLogAppService { private readonly IAuditLogAppService _auditLogAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/OrganizationUnitController.cs similarity index 96% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/OrganizationUnitController.cs index 2cc6aee2..4d5f40eb 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/OrganizationUnitController.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.Controllers.Systems; +namespace Lion.AbpPro.BasicManagement.Systems; [Route("OrganizationUnits")] -public class OrganizationUnitController : AbpProController, IOrganizationUnitAppService +public class OrganizationUnitController : BasicManagementController, IOrganizationUnitAppService { private readonly IOrganizationUnitAppService _organizationUnitAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/PermissionController.cs similarity index 86% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/PermissionController.cs index 663cdd58..de1e7df0 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/PermissionController.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.Controllers.Systems +namespace Lion.AbpPro.BasicManagement.Systems { [Route("Permissions")] - public class PermissionController : AbpProController,IRolePermissionAppService + public class PermissionController : BasicManagementController,IRolePermissionAppService { private readonly IRolePermissionAppService _rolePermissionAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/RoleController.cs similarity index 92% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/RoleController.cs index b814c5a8..21e9b997 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/RoleController.cs @@ -1,9 +1,7 @@ -using System; - -namespace Lion.AbpPro.Controllers.Systems +namespace Lion.AbpPro.BasicManagement.Systems { [Route("Roles")] - public class RoleController : AbpProController, IRoleAppService + public class RoleController : BasicManagementController, IRoleAppService { private readonly IRoleAppService _roleAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/SettingController.cs similarity index 85% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/SettingController.cs index a1ac51c0..4aef1b1f 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/SettingController.cs @@ -1,7 +1,7 @@ -namespace Lion.AbpPro.Controllers.Systems +namespace Lion.AbpPro.BasicManagement.Systems { [Route("Settings")] - public class SettingController : AbpProController,ISettingAppService + public class SettingController : BasicManagementController,ISettingAppService { private readonly ISettingAppService _settingAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/UserController.cs similarity index 93% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/UserController.cs index 1f324514..d0a8a817 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Systems/UserController.cs @@ -1,7 +1,10 @@ -namespace Lion.AbpPro.Controllers.Systems +using System.Net; +using Volo.Abp.Account; + +namespace Lion.AbpPro.BasicManagement.Systems { [Route("Users")] - public class UserController : AbpProController, IUserAppService + public class UserController : BasicManagementController, IUserAppService { private readonly IUserAppService _userAppService; diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Tenants/TenantController.cs similarity index 90% rename from aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs rename to aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Tenants/TenantController.cs index a43aa665..0dd84612 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.HttpApi/Tenants/TenantController.cs @@ -1,11 +1,7 @@ -using Lion.AbpPro.Tenants.Dtos; -using Lion.AbpPro.Tenants; -using Volo.Abp.AspNetCore.Mvc.MultiTenancy; - -namespace Lion.AbpPro.Controllers.Tenants +namespace Lion.AbpPro.BasicManagement.Tenants { [Route("Tenants")] - public class TenantController : AbpProController, IVoloTenantAppService + public class TenantController : BasicManagementController, IVoloTenantAppService { private readonly IVoloTenantAppService _voloTenantAppService; @@ -13,9 +9,9 @@ namespace Lion.AbpPro.Controllers.Tenants { _voloTenantAppService = voloTenantAppService; } - + [HttpPost("find")] - [SwaggerOperation(summary: "通过名称获取租户信息", Tags = new[] {"Tenants"})] + [SwaggerOperation(summary: "通过名称获取租户信息", Tags = new[] { "Tenants" })] public Task FindTenantByNameAsync(FindTenantByNameInput input) { return _voloTenantAppService.FindTenantByNameAsync(input); diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestBase.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestBase.cs new file mode 100644 index 00000000..c80c9d7f --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestBase.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement; + +/* Inherit from this class for your application layer tests. + * See SampleAppService_Tests for example. + */ +public abstract class BasicManagementApplicationTestBase : BasicManagementTestBase +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestModule.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestModule.cs new file mode 100644 index 00000000..fb306b98 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/BasicManagementApplicationTestModule.cs @@ -0,0 +1,12 @@ +using Volo.Abp.Modularity; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(BasicManagementApplicationModule), + typeof(BasicManagementDomainTestModule) + )] +public class BasicManagementApplicationTestModule : AbpModule +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.abppkg.json b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.abppkg.json new file mode 100644 index 00000000..a686451f --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.abppkg.json @@ -0,0 +1,3 @@ +{ + "role": "lib.test" +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.csproj b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.csproj new file mode 100644 index 00000000..4ef91a81 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Application.Tests/Lion.AbpPro.BasicManagement.Application.Tests.csproj @@ -0,0 +1,14 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestBase.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestBase.cs new file mode 100644 index 00000000..71a6499d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestBase.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement; + +/* Inherit from this class for your domain layer tests. + * See SampleManager_Tests for example. + */ +public abstract class BasicManagementDomainTestBase : BasicManagementTestBase +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestModule.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestModule.cs new file mode 100644 index 00000000..04bab811 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/BasicManagementDomainTestModule.cs @@ -0,0 +1,16 @@ +using Lion.AbpPro.BasicManagement.EntityFrameworkCore; +using Volo.Abp.Modularity; + +namespace Lion.AbpPro.BasicManagement; + +/* Domain tests are configured to use the EF Core provider. + * You can switch to MongoDB, however your domain tests should be + * database independent anyway. + */ +[DependsOn( + typeof(BasicManagementEntityFrameworkCoreTestModule) + )] +public class BasicManagementDomainTestModule : AbpModule +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Lion.AbpPro.BasicManagement.Domain.Tests.csproj b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Lion.AbpPro.BasicManagement.Domain.Tests.csproj new file mode 100644 index 00000000..c7b54f0d --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Lion.AbpPro.BasicManagement.Domain.Tests.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Samples/SampleManager_Tests.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Samples/SampleManager_Tests.cs new file mode 100644 index 00000000..cb820a94 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.Domain.Tests/Samples/SampleManager_Tests.cs @@ -0,0 +1,20 @@ +using System.Threading.Tasks; +using Xunit; + +namespace Lion.AbpPro.BasicManagement.Samples; + +public class SampleManager_Tests : BasicManagementDomainTestBase +{ + //private readonly SampleManager _sampleManager; + + public SampleManager_Tests() + { + //_sampleManager = GetRequiredService(); + } + + [Fact] + public async Task Method1Async() + { + await Task.CompletedTask; + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestBase.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestBase.cs new file mode 100644 index 00000000..d4564221 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestBase.cs @@ -0,0 +1,9 @@ +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +/* This class can be used as a base class for EF Core integration tests, + * while SampleRepository_Tests uses a different approach. + */ +public abstract class BasicManagementEntityFrameworkCoreTestBase : BasicManagementTestBase +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestModule.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestModule.cs new file mode 100644 index 00000000..21a9465f --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/BasicManagementEntityFrameworkCoreTestModule.cs @@ -0,0 +1,42 @@ +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage; +using Volo.Abp.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore.Sqlite; +using Volo.Abp.Modularity; + +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore; + +[DependsOn( + typeof(BasicManagementTestBaseModule), + typeof(BasicManagementEntityFrameworkCoreModule), + typeof(AbpEntityFrameworkCoreSqliteModule) + )] +public class BasicManagementEntityFrameworkCoreTestModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + var sqliteConnection = CreateDatabaseAndGetConnection(); + + Configure(options => + { + options.Configure(abpDbContextConfigurationContext => + { + abpDbContextConfigurationContext.DbContextOptions.UseSqlite(sqliteConnection); + }); + }); + } + + private static SqliteConnection CreateDatabaseAndGetConnection() + { + var connection = new SqliteConnection("Data Source=:memory:"); + connection.Open(); + + new BasicManagementDbContext( + new DbContextOptionsBuilder().UseSqlite(connection).Options + ).GetService().CreateTables(); + + return connection; + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/Samples/SampleRepositoryTests.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/Samples/SampleRepositoryTests.cs new file mode 100644 index 00000000..9ee2a47b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/Samples/SampleRepositoryTests.cs @@ -0,0 +1,11 @@ +using Lion.AbpPro.BasicManagement.Samples; + +namespace Lion.AbpPro.BasicManagement.EntityFrameworkCore.Samples; + +public class SampleRepositoryTests : SampleRepository_Tests +{ + /* Don't write custom repository tests here, instead write to + * the base class. + * One exception can be some specific tests related to EF core. + */ +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests.csproj b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests.csproj new file mode 100644 index 00000000..9c8dac5a --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests/Lion.AbpPro.BasicManagement.EntityFrameworkCore.Tests.csproj @@ -0,0 +1,16 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/BasicManagementConsoleApiClientModule.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/BasicManagementConsoleApiClientModule.cs new file mode 100644 index 00000000..28e899f4 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/BasicManagementConsoleApiClientModule.cs @@ -0,0 +1,15 @@ +using Volo.Abp.Autofac; +using Volo.Abp.Http.Client.IdentityModel; +using Volo.Abp.Modularity; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(AbpAutofacModule), + typeof(BasicManagementHttpApiClientModule), + typeof(AbpHttpClientIdentityModelModule) + )] +public class BasicManagementConsoleApiClientModule : AbpModule +{ + +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs new file mode 100644 index 00000000..8a82d2d9 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Configuration; +using Volo.Abp.DependencyInjection; +using Volo.Abp.IdentityModel; + +namespace Lion.AbpPro.BasicManagement; + +public class ClientDemoService : ITransientDependency +{ + private readonly IIdentityModelAuthenticationService _authenticationService; + private readonly IConfiguration _configuration; + + public ClientDemoService( + IIdentityModelAuthenticationService authenticationService, + IConfiguration configuration) + { + _authenticationService = authenticationService; + _configuration = configuration; + } + + public async Task RunAsync() + { + await Task.CompletedTask; + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs new file mode 100644 index 00000000..24fe7a73 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs @@ -0,0 +1,40 @@ +using Microsoft.Extensions.Hosting; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp; + +namespace Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp; + +public class ConsoleTestAppHostedService : IHostedService +{ + private readonly IConfiguration _configuration; + + public ConsoleTestAppHostedService(IConfiguration configuration) + { + _configuration = configuration; + } + + public async Task StartAsync(CancellationToken cancellationToken) + { + using (var application = await AbpApplicationFactory.CreateAsync(options => + { + options.Services.ReplaceConfiguration(_configuration); + options.UseAutofac(); + })) + { + await application.InitializeAsync(); + + var demo = application.ServiceProvider.GetRequiredService(); + await demo.RunAsync(); + + await application.ShutdownAsync(); + } + } + + public Task StopAsync(CancellationToken cancellationToken) + { + return Task.CompletedTask; + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.abppkg.json b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.abppkg.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.abppkg.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.csproj b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.csproj new file mode 100644 index 00000000..019f66db --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp.csproj @@ -0,0 +1,32 @@ + + + + Exe + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + PreserveNewest + Always + + + + PreserveNewest + Always + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Program.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Program.cs new file mode 100644 index 00000000..aa51b4f8 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/Program.cs @@ -0,0 +1,22 @@ +using System.Threading.Tasks; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +namespace Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp; + +class Program +{ + static async Task Main(string[] args) + { + await CreateHostBuilder(args).RunConsoleAsync(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .AddAppSettingsSecretsJson() + .ConfigureServices((hostContext, services) => + { + services.AddHostedService(); + }); +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.json b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.json new file mode 100644 index 00000000..d5defdcb --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.json @@ -0,0 +1,21 @@ +{ + "RemoteServices": { + "Default": { + "BaseUrl": "https://localhost:44342/" + }, + "BasicManagement": { + "BaseUrl": "https://localhost:44324/" + } + }, + "IdentityClients": { + "Default": { + "GrantType": "password", + "ClientId": "BasicManagement_App", + "ClientSecret": "1q2w3e*", + "UserName": "admin", + "UserPassword": "1q2w3E*", + "Authority": "https://localhost:44342/", + "Scope": "BasicManagement" + } + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.secrets.json b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.secrets.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.HttpApi.Client.ConsoleTestApp/appsettings.secrets.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementDataSeedContributor.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementDataSeedContributor.cs new file mode 100644 index 00000000..f28222ea --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementDataSeedContributor.cs @@ -0,0 +1,32 @@ +using System.Threading.Tasks; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Guids; +using Volo.Abp.MultiTenancy; + +namespace Lion.AbpPro.BasicManagement; + +public class BasicManagementDataSeedContributor : IDataSeedContributor, ITransientDependency +{ + private readonly IGuidGenerator _guidGenerator; + private readonly ICurrentTenant _currentTenant; + + public BasicManagementDataSeedContributor( + IGuidGenerator guidGenerator, ICurrentTenant currentTenant) + { + _guidGenerator = guidGenerator; + _currentTenant = currentTenant; + } + + public Task SeedAsync(DataSeedContext context) + { + /* Instead of returning the Task.CompletedTask, you can insert your test data + * at this point! + */ + + using (_currentTenant.Change(context?.TenantId)) + { + return Task.CompletedTask; + } + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBase.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBase.cs new file mode 100644 index 00000000..9e48e7fb --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBase.cs @@ -0,0 +1,59 @@ +using System; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp; +using Volo.Abp.Modularity; +using Volo.Abp.Uow; +using Volo.Abp.Testing; + +namespace Lion.AbpPro.BasicManagement; + +/* All test classes are derived from this class, directly or indirectly. */ +public abstract class BasicManagementTestBase : AbpIntegratedTest + where TStartupModule : IAbpModule +{ + protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options) + { + options.UseAutofac(); + } + + protected virtual Task WithUnitOfWorkAsync(Func func) + { + return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func); + } + + protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func action) + { + using (var scope = ServiceProvider.CreateScope()) + { + var uowManager = scope.ServiceProvider.GetRequiredService(); + + using (var uow = uowManager.Begin(options)) + { + await action(); + + await uow.CompleteAsync(); + } + } + } + + protected virtual Task WithUnitOfWorkAsync(Func> func) + { + return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func); + } + + protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func> func) + { + using (var scope = ServiceProvider.CreateScope()) + { + var uowManager = scope.ServiceProvider.GetRequiredService(); + + using (var uow = uowManager.Begin(options)) + { + var result = await func(); + await uow.CompleteAsync(); + return result; + } + } + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBaseModule.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBaseModule.cs new file mode 100644 index 00000000..2a65c1ff --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/BasicManagementTestBaseModule.cs @@ -0,0 +1,41 @@ +using Microsoft.Extensions.DependencyInjection; +using Volo.Abp; +using Volo.Abp.Authorization; +using Volo.Abp.Autofac; +using Volo.Abp.Data; +using Volo.Abp.Modularity; +using Volo.Abp.Threading; + +namespace Lion.AbpPro.BasicManagement; + +[DependsOn( + typeof(AbpAutofacModule), + typeof(AbpTestBaseModule), + typeof(AbpAuthorizationModule), + typeof(BasicManagementDomainModule) + )] +public class BasicManagementTestBaseModule : AbpModule +{ + public override void ConfigureServices(ServiceConfigurationContext context) + { + context.Services.AddAlwaysAllowAuthorization(); + } + + public override void OnApplicationInitialization(ApplicationInitializationContext context) + { + SeedTestData(context); + } + + private static void SeedTestData(ApplicationInitializationContext context) + { + AsyncHelper.RunSync(async () => + { + using (var scope = context.ServiceProvider.CreateScope()) + { + await scope.ServiceProvider + .GetRequiredService() + .SeedAsync(); + } + }); + } +} diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xml b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xml new file mode 100644 index 00000000..1715698c --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xsd b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xsd new file mode 100644 index 00000000..ffa6fc4b --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.abppkg.json b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.abppkg.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.abppkg.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.csproj b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.csproj new file mode 100644 index 00000000..345cd965 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Lion.AbpPro.BasicManagement.TestBase.csproj @@ -0,0 +1,21 @@ + + + + net6.0 + Lion.AbpPro.BasicManagement + + + + + + + + + + + + + + + + diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Samples/SampleRepository_Tests.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Samples/SampleRepository_Tests.cs new file mode 100644 index 00000000..6425b693 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Samples/SampleRepository_Tests.cs @@ -0,0 +1,26 @@ +using System.Threading.Tasks; +using Volo.Abp.Modularity; +using Xunit; + +namespace Lion.AbpPro.BasicManagement.Samples; + +/* Write your custom repository tests like that, in this project, as abstract classes. + * Then inherit these abstract classes from EF Core & MongoDB test projects. + * In this way, both database providers are tests with the same set tests. + */ +public abstract class SampleRepository_Tests : BasicManagementTestBase + where TStartupModule : IAbpModule +{ + //private readonly ISampleRepository _sampleRepository; + + protected SampleRepository_Tests() + { + //_sampleRepository = GetRequiredService(); + } + + [Fact] + public async Task Method1Async() + { + await Task.CompletedTask; + } +} \ No newline at end of file diff --git a/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Security/FakeCurrentPrincipalAccessor.cs b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Security/FakeCurrentPrincipalAccessor.cs new file mode 100644 index 00000000..b1c25751 --- /dev/null +++ b/aspnet-core/modules/BasicManagement/test/Lion.AbpPro.BasicManagement.TestBase/Security/FakeCurrentPrincipalAccessor.cs @@ -0,0 +1,42 @@ +using System.Collections.Generic; +using System.Security.Claims; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Security.Claims; + +namespace Lion.AbpPro.BasicManagement.Security; + +[Dependency(ReplaceServices = true)] +public class FakeCurrentPrincipalAccessor : ThreadCurrentPrincipalAccessor +{ + protected override ClaimsPrincipal GetClaimsPrincipal() + { + return GetPrincipal(); + } + + private ClaimsPrincipal _principal; + + private ClaimsPrincipal GetPrincipal() + { + if (_principal == null) + { + lock (this) + { + if (_principal == null) + { + _principal = new ClaimsPrincipal( + new ClaimsIdentity( + new List + { + new Claim(AbpClaimTypes.UserId,"2e701e62-0953-4dd3-910b-dc6cc93ccb0d"), + new Claim(AbpClaimTypes.UserName,"admin"), + new Claim(AbpClaimTypes.Email,"admin@abp.io") + } + ) + ); + } + } + } + + return _principal; + } +} diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs index 1f4531aa..00c96160 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/AbpProHttpApiHostModule.cs @@ -1,3 +1,5 @@ +using Volo.Abp.BackgroundJobs.Hangfire; + namespace Lion.AbpPro { [DependsOn( @@ -11,7 +13,8 @@ namespace Lion.AbpPro typeof(AbpProApplicationModule), typeof(AbpProAbpCapModule), typeof(AbpAspNetCoreMvcUiBasicThemeModule), - typeof(AbpCachingStackExchangeRedisModule) + typeof(AbpCachingStackExchangeRedisModule), + typeof(AbpBackgroundJobsHangfireModule) )] public class AbpProHttpApiHostModule : AbpModule { @@ -28,13 +31,10 @@ namespace Lion.AbpPro var configuration = context.Services.GetConfiguration(); ConfigureCache(context); ConfigureSwaggerServices(context); - ConfigureOptions(context); ConfigureJwtAuthentication(context, configuration); ConfigureHangfireMysql(context); - ConfigureCap(context); ConfigureHttpClient(context); ConfigureMiniProfiler(context); - ConfigureMagicodes(context); ConfigureAbpExceptions(context); ConfigureIdentity(context); ConfigureCap(context); @@ -94,15 +94,7 @@ namespace Lion.AbpPro context.Services.AddMvc(options => { options.Filters.Add(typeof(ResultExceptionFilter)); }); } - /// - /// 配置Magicodes.IE - /// Excel导入导出 - /// - private void ConfigureMagicodes(ServiceConfigurationContext context) - { - context.Services.AddTransient(); - context.Services.AddTransient(); - } + private void ConfigureHangfireMysql(ServiceConfigurationContext context) { @@ -133,7 +125,6 @@ namespace Lion.AbpPro /// /// 配置MiniProfiler /// - /// private void ConfigureMiniProfiler(ServiceConfigurationContext context) { context.Services.AddMiniProfiler(options => options.RouteBasePath = "/profiler").AddEntityFramework(); @@ -142,8 +133,6 @@ namespace Lion.AbpPro /// /// 配置JWT /// - /// - /// private void ConfigureJwtAuthentication(ServiceConfigurationContext context, IConfiguration configuration) { @@ -210,15 +199,7 @@ namespace Lion.AbpPro }); } - /// - /// 配置options - /// - /// - private void ConfigureOptions(ServiceConfigurationContext context) - { - context.Services.Configure(context.Services.GetConfiguration() - .GetSection("Jwt")); - } + /// /// Redis缓存 diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/GlobalUsings.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/GlobalUsings.cs index b7c338a6..914c3e17 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/GlobalUsings.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/GlobalUsings.cs @@ -14,7 +14,6 @@ global using Hangfire.MySql; global using Hangfire.States; global using Hangfire.Storage; global using Lion.AbpPro.CAP; -global using Lion.AbpPro.ConfigurationOptions; global using Lion.AbpPro.EntityFrameworkCore; global using Lion.AbpPro.Extension.Customs.Dtos; global using Lion.AbpPro.Extensions; @@ -22,7 +21,6 @@ global using Lion.AbpPro.Extensions.Hangfire; global using Lion.AbpPro.Extensions.Middlewares; global using Lion.AbpPro.Extensions.MVC.Filters; global using Lion.AbpPro.Extensions.System; -global using Lion.AbpPro.Localization; global using Lion.AbpPro.MultiTenancy; global using Lion.AbpPro.Shared.Hosting.Microservices; global using Lion.AbpPro.Shared.Hosting.Microservices.Microsoft.AspNetCore.Builder; diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Pages/Login.cshtml.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Pages/Login.cshtml.cs index 6d5744ee..fc9e191d 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Pages/Login.cshtml.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Pages/Login.cshtml.cs @@ -1,5 +1,7 @@ -using Lion.AbpPro.Users; -using Lion.AbpPro.Users.Dtos; + +using Lion.AbpPro.BasicManagement.ConfigurationOptions; +using Lion.AbpPro.BasicManagement.Users; +using Lion.AbpPro.BasicManagement.Users.Dtos; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs index 96eabd17..3cf7d326 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Startup.cs @@ -10,7 +10,7 @@ namespace Lion.AbpPro public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) { app.InitializeApplication(); - app.InitializeLocalization(); + } } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AbpProApplicationContractsModule.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AbpProApplicationContractsModule.cs index 32088d7b..f937f72a 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AbpProApplicationContractsModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AbpProApplicationContractsModule.cs @@ -1,14 +1,11 @@ +using Lion.AbpPro.BasicManagement; + namespace Lion.AbpPro { [DependsOn( typeof(AbpProDomainSharedModule), - typeof(AbpAccountApplicationContractsModule), - typeof(AbpFeatureManagementApplicationContractsModule), - typeof(AbpIdentityApplicationContractsModule), - typeof(AbpPermissionManagementApplicationContractsModule), - typeof(AbpSettingManagementApplicationContractsModule), - typeof(AbpTenantManagementApplicationContractsModule), typeof(AbpObjectExtendingModule), + typeof(BasicManagementApplicationContractsModule), typeof(DataDictionaryManagementApplicationContractsModule), typeof(FileManagementApplicationContractsModule) )] diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs deleted file mode 100644 index 96c08499..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/PagingAuditLogListInput.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Lion.AbpPro.AuditLogs -{ - public class PagingAuditLogListInput : PagingBase - { - public string Sorting { get; set; } - public DateTime? StartTime { get; set; } - public DateTime? EndTime { get; set; } - public string HttpMethod { get; set; } - public string Url { get; set; } - public string UserName { get; set; } - public string ApplicationName { get; set; } - public string CorrelationId { get; set; } - public int? MaxExecutionDuration { get; set; } - public int? MinExecutionDuration { get; set; } - public bool? HasException { get; set; } - - public HttpStatusCode? HttpStatusCode { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/ConfigurationOptions/JwtOptions.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/ConfigurationOptions/JwtOptions.cs deleted file mode 100644 index 855a245b..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/ConfigurationOptions/JwtOptions.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace Lion.AbpPro.ConfigurationOptions -{ - public class JwtOptions - { - public int ExpirationTime { get; set; } - - public string Audience { get; set; } - - public string SecurityKey { get; set; } - - public string Issuer { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/GlobalUsings.cs index 729c2620..ecf29b0a 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/GlobalUsings.cs @@ -1,35 +1,15 @@ // Global using directives global using System; -global using System.Collections.Generic; -global using System.ComponentModel.DataAnnotations; -global using System.Net; global using System.Threading.Tasks; global using Lion.AbpPro.DataDictionaryManagement; global using Lion.AbpPro.Extension.Customs.Dtos; global using Lion.AbpPro.FileManagement; -global using Lion.AbpPro.OrganizationUnits.Dto; -global using Lion.AbpPro.Roles.Dtos; -global using Lion.AbpPro.Settings.Dtos; -global using Lion.AbpPro.Tenants.Dtos; -global using Lion.AbpPro.Users.Dtos; -global using Magicodes.ExporterAndImporter.Core; -global using Microsoft.AspNetCore.Mvc; -global using Newtonsoft.Json; -global using Volo.Abp.Account; -global using Volo.Abp.Application.Dtos; global using Volo.Abp.Application.Services; -global using Volo.Abp.AspNetCore.Mvc.MultiTenancy; -global using Volo.Abp.Auditing; global using Volo.Abp.Authorization.Permissions; global using Volo.Abp.DependencyInjection; -global using Volo.Abp.FeatureManagement; global using Volo.Abp.Identity; global using Volo.Abp.Localization; global using Volo.Abp.Modularity; -global using Volo.Abp.MultiTenancy; global using Volo.Abp.ObjectExtending; -global using Volo.Abp.PermissionManagement; -global using Volo.Abp.SettingManagement; -global using Volo.Abp.TenantManagement; global using Volo.Abp.Threading; \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Lion.AbpPro.Application.Contracts.csproj b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Lion.AbpPro.Application.Contracts.csproj index c44bb41e..f4d62686 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Lion.AbpPro.Application.Contracts.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Lion.AbpPro.Application.Contracts.csproj @@ -1,6 +1,5 @@ - net6.0 @@ -8,33 +7,17 @@ - - - + + + + - - - - - - - - - - - - - + - - - - - diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs deleted file mode 100644 index a83b3939..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/CreateOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class CreateOrganizationUnitInput -{ - [Required] public string DisplayName { get; set; } - - public Guid? ParentId { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs deleted file mode 100644 index 61e5c7cb..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/UpdateOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class UpdateOrganizationUnitInput -{ - [Required] public string DisplayName { get; set; } - - public Guid Id { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs index f6ecd594..eca88a9e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissionDefinitionProvider.cs @@ -5,30 +5,9 @@ namespace Lion.AbpPro.Permissions public override void Define(IPermissionDefinitionContext context) { var abpIdentityGroup = context.GetGroup(IdentityPermissions.GroupName); - var userManagement = abpIdentityGroup.GetPermissionOrNull(IdentityPermissions.Users.Default); - userManagement.AddChild(AbpProPermissions.SystemManagement.UserEnable, L("Permission:Enable")); - userManagement.AddChild(AbpProPermissions.SystemManagement.UserExport, L("Permission:Export")); - - var auditManagement = - abpIdentityGroup.AddPermission(AbpProPermissions.SystemManagement.AuditLog, L("Permission:AuditLogManagement")); + var esManagement = abpIdentityGroup.AddPermission(AbpProPermissions.SystemManagement.ES, L("Permission:ESManagement")); - var settingManagement = abpIdentityGroup.AddPermission(AbpProPermissions.SystemManagement.Setting, L("Permission:SettingManagement")); - var organizationUnitManagement = abpIdentityGroup.AddPermission(AbpProPermissions.SystemManagement.OrganizationUnit, L("Permission:OrganizationUnitManagement")); - organizationUnitManagement.AddChild - ( - AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create, - L("Permission:Create") - ); - organizationUnitManagement.AddChild - ( - AbpProPermissions.SystemManagement.OrganizationUnitManagement.Update, - L("Permission:Update") - ); - organizationUnitManagement.AddChild - ( - AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete, - L("Permission:Delete") - ); + } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissions.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissions.cs index ff6cfb4c..663f0eb2 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissions.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Permissions/AbpProPermissions.cs @@ -8,19 +8,8 @@ namespace Lion.AbpPro.Permissions public static class SystemManagement { public const string Default = "AbpIdentity"; - public const string UserEnable = Default + ".Users.Enable"; - public const string UserExport = Default + ".Users.Export"; - public const string AuditLog = Default + ".AuditLog"; public const string ES = Default + ".ES"; - public const string Setting = Default + ".Setting"; - public const string OrganizationUnit = Default + ".OrganizationUnitManagement"; - public static class OrganizationUnitManagement - { - public const string Default = SystemManagement.Default + ".OrganizationUnitManagement"; - public const string Create = Default + ".Create"; - public const string Update = Default + ".Update"; - public const string Delete = Default + ".Delete"; - } + } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs deleted file mode 100644 index 18a699d3..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/ExportIdentityUserOutput.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class ExportIdentityUserOutput - { - [ExporterHeader(DisplayName = "用户名")] public string UserName { get; set; } - - [ExporterHeader(DisplayName = "真实名称")] public string Name { get; set; } - - [ExporterHeader(DisplayName = "邮箱")] public string Email { get; set; } - - [ExporterHeader(DisplayName = "手机号码")] public string PhoneNumber { get; set; } - - [ExporterHeader(IsIgnore = true)] public bool IsActive { get; set; } - - - [ExporterHeader(DisplayName = "状态")] public string Status => IsActive ? "启用" : "禁用"; - - [ExporterHeader(IsIgnore = true)] public DateTime CreationTime { get; set; } - - [ExporterHeader(DisplayName = "创建时间")] - public string CreationTimeFormat => CreationTime.ToString("yyyy-MM-dd hh:mm:ss"); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs index 85721e4c..0693a39f 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationAutoMapperProfile.cs @@ -4,17 +4,7 @@ namespace Lion.AbpPro { public AbpProApplicationAutoMapperProfile() { - /* You can configure your AutoMapper mapping configuration here. - * Alternatively, you can split your mapping configurations - * into multiple profile classes for a better organization. */ - CreateMap() - .ForMember(e => e.CreationTimeFormat, opt => opt.Ignore()) - .ForMember(e => e.Status, opt => opt.Ignore()); - CreateMap(); - CreateMap(); - CreateMap(); - CreateMap(); - CreateMap(); + } } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationModule.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationModule.cs index 3f48621c..2463a8a9 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application/AbpProApplicationModule.cs @@ -1,17 +1,9 @@ -using Lion.AbpPro.Roles; - namespace Lion.AbpPro { [DependsOn( typeof(AbpProDomainModule), - typeof(AbpAccountApplicationModule), typeof(AbpProApplicationContractsModule), - typeof(AbpIdentityApplicationModule), - typeof(AbpPermissionManagementApplicationModule), - typeof(AbpTenantManagementApplicationModule), - typeof(AbpFeatureManagementApplicationModule), - typeof(AbpSettingManagementApplicationModule), - typeof(AbpAuditLoggingDomainModule), + typeof(BasicManagementApplicationModule), typeof(DataDictionaryManagementApplicationModule), typeof(NotificationManagementApplicationModule), typeof(FileManagementApplicationModule), @@ -27,18 +19,6 @@ namespace Lion.AbpPro options.AddMaps(); }); - Configure(options => - { - options.Excludes.Add("AbpIdentity.Users.ManagePermissions"); - options.Excludes.Add("AbpIdentity.UserLookup"); - options.Excludes.Add("FeatureManagement"); - options.Excludes.Add("FeatureManagement.ManageHostFeatures"); - options.Excludes.Add("SettingManagement"); - options.Excludes.Add("SettingManagement.Emailing"); - options.Excludes.Add("AbpTenantManagement"); - options.Excludes.Add("AbpTenantManagement.Tenants.ManageFeatures"); - options.Excludes.Add("AbpTenantManagement.Tenants.ManageConnectionStrings"); - }); } } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/Mappers/AuditLogApplicationAutoMapperProfile.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/Mappers/AuditLogApplicationAutoMapperProfile.cs deleted file mode 100644 index c6ff6cb5..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/Mappers/AuditLogApplicationAutoMapperProfile.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.AuditLogs.Mappers -{ - public class AuditLogApplicationAutoMapperProfile:Profile - { - public AuditLogApplicationAutoMapperProfile() - { - CreateMap(); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.Application/GlobalUsings.cs index d792998b..240c7428 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Application/GlobalUsings.cs @@ -3,59 +3,24 @@ global using System; global using System.Collections.Generic; global using System.Linq; -global using System.Net.Http; -global using System.Security.Claims; -global using System.Text; global using System.Threading.Tasks; -global using AutoMapper; global using Elasticsearch.Net; -global using Lion.AbpPro.ConfigurationOptions; +global using Lion.AbpPro.BasicManagement; global using Lion.AbpPro.DataDictionaryManagement; global using Lion.AbpPro.ElasticSearches.Dto; global using Lion.AbpPro.ElasticSearches.Providers; global using Lion.AbpPro.Extension.Customs.Dtos; -global using Lion.AbpPro.Extension.Customs.Http; global using Lion.AbpPro.Extension.System; global using Lion.AbpPro.FileManagement; global using Lion.AbpPro.FreeSqlRepository; -global using Lion.AbpPro.Localization; global using Lion.AbpPro.NotificationManagement; -global using Lion.AbpPro.NotificationManagement.Notifications; -global using Lion.AbpPro.OrganizationUnits.Dto; global using Lion.AbpPro.Permissions; -global using Lion.AbpPro.Roles.Dtos; -global using Lion.AbpPro.Settings.Dtos; -global using Lion.AbpPro.Tenants.Dtos; -global using Lion.AbpPro.Users.Dtos; -global using Magicodes.ExporterAndImporter.Excel; -global using Magicodes.ExporterAndImporter.Excel.AspNetCore; global using Microsoft.AspNetCore.Authorization; -global using Microsoft.AspNetCore.Identity; -global using Microsoft.AspNetCore.Mvc; global using Microsoft.Extensions.Configuration; -global using Microsoft.Extensions.Localization; -global using Microsoft.Extensions.Options; global using Nest; -global using Volo.Abp; -global using Volo.Abp.Account; -global using Volo.Abp.Application.Dtos; global using Volo.Abp.Application.Services; -global using Volo.Abp.AspNetCore.Mvc.MultiTenancy; -global using Volo.Abp.AuditLogging; -global using Volo.Abp.Authorization; global using Volo.Abp.AutoMapper; global using Volo.Abp.BackgroundJobs.Hangfire; global using Volo.Abp.DependencyInjection; -global using Volo.Abp.FeatureManagement; -global using Volo.Abp.Identity; -global using Volo.Abp.Localization; global using Volo.Abp.Modularity; -global using Volo.Abp.PermissionManagement; -global using Volo.Abp.Security.Claims; -global using Volo.Abp.SettingManagement; -global using Volo.Abp.Settings; -global using Volo.Abp.TenantManagement; -global using Volo.Abp.Users; -global using IdentityRole = Volo.Abp.Identity.IdentityRole; -global using IdentityUser = Volo.Abp.Identity.IdentityUser; global using Profile = AutoMapper.Profile; \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/HttpClientNameConsts.cs b/aspnet-core/services/src/Lion.AbpPro.Application/HttpClientNameConsts.cs deleted file mode 100644 index e9cd8d78..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/HttpClientNameConsts.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Lion.AbpPro -{ - public static class HttpClientNameConsts - { - /// - /// 身份验证中心 - /// - public static string Sts = "Sts"; - /// - /// Github - /// - public static string Github = "Github"; - - public static string GithubApi = "GithubApi"; - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Lion.AbpPro.Application.csproj b/aspnet-core/services/src/Lion.AbpPro.Application/Lion.AbpPro.Application.csproj index 5ad057b3..e38958e8 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Lion.AbpPro.Application.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.Application/Lion.AbpPro.Application.csproj @@ -7,6 +7,7 @@ + @@ -16,19 +17,8 @@ - - - - - - - - - - - diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Users/Mappers/UserApplicationAutoMapperProfile.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Users/Mappers/UserApplicationAutoMapperProfile.cs deleted file mode 100644 index 54392446..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Users/Mappers/UserApplicationAutoMapperProfile.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.Users.Mappers -{ - public class UserApplicationAutoMapperProfile:Profile - { - public UserApplicationAutoMapperProfile() - { - CreateMap(); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainErrorCodes.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainErrorCodes.cs index 4c1890f9..9093ba2f 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainErrorCodes.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainErrorCodes.cs @@ -2,16 +2,6 @@ namespace Lion.AbpPro { public static class AbpProDomainErrorCodes { - public const string OrganizationUnitNotExist =AbpProDomainSharedConsts.NameSpace+ ":100001"; - public const string UserLockedOut =AbpProDomainSharedConsts.NameSpace+ ":100002"; - public const string UserOrPasswordMismatch =AbpProDomainSharedConsts.NameSpace+ ":100003"; - public const string ApiResourceNotExist =AbpProDomainSharedConsts.NameSpace+ ":100004"; - public const string ApiResourceExist =AbpProDomainSharedConsts.NameSpace+ ":100005"; - public const string ApiScopeNotExist =AbpProDomainSharedConsts.NameSpace+ ":100006"; - public const string ApiScopeExist =AbpProDomainSharedConsts.NameSpace+ ":100007"; - public const string ApiClientNotExist =AbpProDomainSharedConsts.NameSpace+ ":100008"; - public const string ApiClientExist =AbpProDomainSharedConsts.NameSpace+ ":100009"; - public const string IdentityResourceNotExist =AbpProDomainSharedConsts.NameSpace+ ":100010"; - public const string IdentityResourceExist =AbpProDomainSharedConsts.NameSpace+ ":100011"; + } } diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs index 5c6a56d8..465d4b30 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/AbpProDomainSharedModule.cs @@ -1,13 +1,10 @@ +using Lion.AbpPro.BasicManagement; +using Lion.AbpPro.BasicManagement.Localization; + namespace Lion.AbpPro { [DependsOn( - typeof(AbpAuditLoggingDomainSharedModule), - typeof(AbpBackgroundJobsDomainSharedModule), - typeof(AbpFeatureManagementDomainSharedModule), - typeof(AbpIdentityDomainSharedModule), - typeof(AbpPermissionManagementDomainSharedModule), - typeof(AbpSettingManagementDomainSharedModule), - typeof(AbpTenantManagementDomainSharedModule), + typeof(BasicManagementDomainSharedModule), typeof(DataDictionaryManagementDomainSharedModule), typeof(FileManagementDomainSharedModule), typeof(NotificationManagementDomainSharedModule) @@ -32,11 +29,8 @@ namespace Lion.AbpPro options.Resources .Add(AbpProDomainSharedConsts.DefaultCultureName) .AddVirtualJson("/Localization/AbpPro") - .AddBaseTypes(typeof(IdentityResource)) - .AddBaseTypes(typeof(AbpValidationResource)) - .AddBaseTypes(typeof(AbpLocalizationResource)) - .AddBaseTypes(typeof(AbpTimingResource)) - .AddBaseTypes(typeof(AbpSettingManagementResource)); + .AddBaseTypes(typeof(BasicManagementResource)) + .AddBaseTypes(typeof(AbpTimingResource)); options.DefaultResourceType = typeof(AbpProResource); }); diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/GlobalUsings.cs index b485cdf7..35bce39a 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/GlobalUsings.cs @@ -9,9 +9,7 @@ global using System.Text; global using System.Threading.Tasks; global using Lion.AbpPro.DataDictionaryManagement; global using Lion.AbpPro.FileManagement; -global using Lion.AbpPro.Localization; global using Lion.AbpPro.NotificationManagement; -global using Microsoft.AspNetCore.Builder; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Localization; global using Volo.Abp; diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Lion.AbpPro.Domain.Shared.csproj b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Lion.AbpPro.Domain.Shared.csproj index 90b0c603..b7771d0a 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Lion.AbpPro.Domain.Shared.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Lion.AbpPro.Domain.Shared.csproj @@ -7,19 +7,6 @@ true - - - - - - - - - - - - - @@ -29,6 +16,7 @@ + diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/Extensions/EnumLocalicationExtension.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/Extensions/EnumLocalicationExtension.cs index d3b9910f..64a15ff6 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/Extensions/EnumLocalicationExtension.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/Extensions/EnumLocalicationExtension.cs @@ -1,19 +1,19 @@ -namespace Lion.AbpPro.Localization.Extensions -{ - public static class EnumLocalicationExtension - { - public static string ToLocalicationDescription(this Enum value) - { - var member = - ((IEnumerable)value.GetType().GetMember(value.ToString())) - .FirstOrDefault(); - - var localKey =$"Enum:{member.ReflectedType.Name}:{value}:{Convert.ToInt16(value)}"; - if (localKey.IsNullOrWhiteSpace()) - { - throw new ArgumentException(); - } - return !(member != (MemberInfo)null) ? value.ToString() : LocalizationHelper.L[localKey]; - } - } -} \ No newline at end of file +// namespace Lion.AbpPro.Localization.Extensions +// { +// public static class EnumLocalicationExtension +// { +// public static string ToLocalicationDescription(this Enum value) +// { +// var member = +// ((IEnumerable)value.GetType().GetMember(value.ToString())) +// .FirstOrDefault(); +// +// var localKey =$"Enum:{member.ReflectedType.Name}:{value}:{Convert.ToInt16(value)}"; +// if (localKey.IsNullOrWhiteSpace()) +// { +// throw new ArgumentException(); +// } +// return !(member != (MemberInfo)null) ? value.ToString() : LocalizationHelper.L[localKey]; +// } +// } +// } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/LocalizationHelper.cs b/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/LocalizationHelper.cs deleted file mode 100644 index 10269294..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Domain.Shared/Localization/LocalizationHelper.cs +++ /dev/null @@ -1,57 +0,0 @@ -namespace Lion.AbpPro.Localization -{ - public static class LocalizationHelper - { - private static IServiceProvider ServiceProvider { get; set; } - - private static IAbpLazyServiceProvider _lazyServiceProvider; - private static IAbpLazyServiceProvider LazyServiceProvider - { - get - { - return _lazyServiceProvider ??= ServiceProvider.GetRequiredService(); - } - } - - private static IStringLocalizerFactory StringLocalizerFactory => LazyServiceProvider.LazyGetRequiredService(); - - private static IStringLocalizer _localizer; - - private static Type _localizationResource = typeof(AbpProResource); - - public static IStringLocalizer L => _localizer ??= CreateLocalizer(); - - public static Type LocalizationResource - { - get => _localizationResource; - set - { - _localizationResource = value; - _localizer = null; - } - } - - private static IStringLocalizer CreateLocalizer() - { - if (LocalizationResource != null) - { - return StringLocalizerFactory.Create(LocalizationResource); - } - - return StringLocalizerFactory.CreateDefaultOrNull() ?? - throw new AbpException(message: "Localizer is null"); - } - - - public static void InitializeLocalization(this IApplicationBuilder app) - { - ServiceProvider = app.ApplicationServices; - } - - - public static void InitializeLocalization(this IServiceProvider serviceProvider) - { - ServiceProvider = serviceProvider; - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainModule.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainModule.cs index 62478041..4e60ac48 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainModule.cs @@ -1,15 +1,10 @@ +using Lion.AbpPro.BasicManagement; + namespace Lion.AbpPro { [DependsOn( typeof(AbpProDomainSharedModule), - typeof(AbpAuditLoggingDomainModule), - typeof(AbpBackgroundJobsDomainModule), - typeof(AbpFeatureManagementDomainModule), - typeof(AbpIdentityDomainModule), - typeof(AbpPermissionManagementDomainIdentityModule), - typeof(AbpSettingManagementDomainModule), - typeof(AbpTenantManagementDomainModule), - typeof(AbpEmailingModule), + typeof(BasicManagementDomainModule), typeof(DataDictionaryManagementDomainModule), typeof(NotificationManagementDomainModule), typeof(FileManagementDomainModule) @@ -18,17 +13,8 @@ namespace Lion.AbpPro { public override void ConfigureServices(ServiceConfigurationContext context) { - Configure(options => - { - options.IsEnabled = MultiTenancyConsts.IsEnabled; - }); - Configure(options => - { - options.AddMaps(); - }); -#if DEBUG - context.Services.Replace(ServiceDescriptor.Singleton()); -#endif + Configure(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; }); + Configure(options => { options.AddMaps(); }); } } -} +} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainService.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainService.cs index 3e7faf31..7177ef8e 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainService.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/AbpProDomainService.cs @@ -1,3 +1,5 @@ +using Volo.Abp.EventBus.Local; + namespace Lion.AbpPro { public abstract class AbpProDomainService : DomainService @@ -11,6 +13,11 @@ namespace Lion.AbpPro LazyServiceProvider.LazyGetRequiredService(); /// + /// 领域事件总线 + /// + protected ILocalEventBus LocalEventBus => + LazyServiceProvider.LazyGetRequiredService(); + /// /// 分布式事件总线 /// protected IDistributedEventBus DistributedEventBus => diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/GlobalUsings.cs index 6572af82..2bde8b19 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/GlobalUsings.cs @@ -13,24 +13,18 @@ global using Lion.AbpPro.MultiTenancy; global using Lion.AbpPro.NotificationManagement; global using Lion.AbpPro.Users.Dto; global using Microsoft.Extensions.DependencyInjection; -global using Microsoft.Extensions.DependencyInjection.Extensions; global using Microsoft.Extensions.Logging; global using Microsoft.Extensions.Logging.Abstractions; -global using Volo.Abp.AuditLogging; global using Volo.Abp.AutoMapper; -global using Volo.Abp.BackgroundJobs; global using Volo.Abp.Data; global using Volo.Abp.DependencyInjection; global using Volo.Abp.Domain.Services; -global using Volo.Abp.Emailing; global using Volo.Abp.EventBus.Distributed; -global using Volo.Abp.FeatureManagement; global using Volo.Abp.Identity; global using Volo.Abp.Localization; global using Volo.Abp.Modularity; global using Volo.Abp.MultiTenancy; global using Volo.Abp.ObjectMapping; -global using Volo.Abp.PermissionManagement.Identity; global using Volo.Abp.SettingManagement; global using Volo.Abp.Settings; global using Volo.Abp.TenantManagement; diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Lion.AbpPro.Domain.csproj b/aspnet-core/services/src/Lion.AbpPro.Domain/Lion.AbpPro.Domain.csproj index 4418d17c..4bb29551 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Lion.AbpPro.Domain.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/Lion.AbpPro.Domain.csproj @@ -8,21 +8,12 @@ + - - - - - - - - - - diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs index 41e76d7a..cf2e833b 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettingDefinitionProvider.cs @@ -14,57 +14,7 @@ namespace Lion.AbpPro.Settings /// private static void OverrideDefalutSettings(ISettingDefinitionContext context) { - context.GetOrNull("Abp.Localization.DefaultLanguage") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeText); - - context.GetOrNull("Abp.Identity.Password.RequiredLength") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.Number); - - context.GetOrNull("Abp.Identity.Password.RequiredUniqueChars") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.Number); - - context.GetOrNull("Abp.Identity.Password.RequireNonAlphanumeric") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeCheckBox); - - context.GetOrNull("Abp.Identity.Password.RequireLowercase") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeCheckBox); - - context.GetOrNull("Abp.Identity.Password.RequireUppercase") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeCheckBox); - - context.GetOrNull("Abp.Identity.Password.RequireDigit") - .WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.SystemManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeCheckBox); - - context.Add(new SettingDefinition( - AbpProSettings.Other.Github, - "https://github.com/WangJunZzz/abp-vnext-pro", - L("DisplayName:" + AbpProSettings.Other.Github), - L("Description:" + AbpProSettings.Other.Github) - ).WithProperty(AbpProSettings.Group.Default, - AbpProSettings.Group.OtherManagement) - .WithProperty(AbpProSettings.ControlType.Default, - AbpProSettings.ControlType.TypeText)); + } private static LocalizableString L(string name) diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettings.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettings.cs index 25e070c7..0080895f 100644 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.Domain/Settings/AbpProSettings.cs @@ -2,36 +2,6 @@ namespace Lion.AbpPro.Settings { public static class AbpProSettings { - public const string Prefix = "setting_"; - - /// - /// 前端控件类型 - /// - public static class ControlType - { - public const string Default = "Type"; - public const string TypeText = "Text"; - public const string TypeCheckBox = "CheckBox"; - public const string Number = "Number"; - } - - /// - /// 系统控制分组 - /// - public static class Group - { - public const string Default = "Setting.Group"; - public const string SystemManagement = Default + ".System"; - public const string OtherManagement = Default + ".Other"; - } - - /// - /// 其他控制分组 - /// - public static class Other - { - private const string Default = "Setting.Group.Other"; - public const string Github = Default + ".Github"; - } + } } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs index 8da8cc0e..4dec7617 100644 --- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs +++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProDbContext.cs @@ -1,3 +1,6 @@ +using Lion.AbpPro.DataDictionaryManagement.DataDictionaries.Aggregates; +using Lion.AbpPro.NotificationManagement.Notifications.Aggregates; + namespace Lion.AbpPro.EntityFrameworkCore { /* This is your actual DbContext used on runtime. @@ -11,34 +14,28 @@ namespace Lion.AbpPro.EntityFrameworkCore */ [ConnectionStringName("Default")] public class AbpProDbContext : AbpDbContext, IAbpProDbContext, - IFeatureManagementDbContext, - IIdentityDbContext, - IPermissionManagementDbContext, - ISettingManagementDbContext, - ITenantManagementDbContext, - IBackgroundJobsDbContext, - IAuditLoggingDbContext, - IFileManagementDbContext + IBasicManagementDbContext, + IFileManagementDbContext, + INotificationManagementDbContext, + IDataDictionaryManagementDbContext { - public DbSet Users { get; } - public DbSet Roles { get; } - public DbSet ClaimTypes { get; } - public DbSet OrganizationUnits { get; } - public DbSet SecurityLogs { get; } - public DbSet LinkUsers { get; } - public DbSet FeatureValues { get; } - public DbSet PermissionGrants { get; } - public DbSet Settings { get; } - public DbSet Tenants { get; } - public DbSet TenantConnectionStrings { get; } - public DbSet BackgroundJobs { get; } - public DbSet AuditLogs { get; } - public DbSet Files { get; } - - /* Add DbSet properties for your Aggregate Roots / Entities here. - * Also map them inside AbpProDbContextModelCreatingExtensions.ConfigureAbpPro - */ - + public DbSet Users { get; set; } + public DbSet Roles { get; set; } + public DbSet ClaimTypes { get; set; } + public DbSet OrganizationUnits { get; set; } + public DbSet SecurityLogs { get; set; } + public DbSet LinkUsers { get; set; } + public DbSet FeatureValues { get; set; } + public DbSet PermissionGrants { get; set; } + public DbSet Settings { get; set; } + public DbSet Tenants { get; set; } + public DbSet TenantConnectionStrings { get; set; } + public DbSet BackgroundJobs { get; set; } + public DbSet AuditLogs { get; set; } + public DbSet Files { get; set; } + public DbSet Notifications { get; set; } + public DbSet DataDictionary { get; set; } + public AbpProDbContext(DbContextOptions options) : base(options) { @@ -56,15 +53,11 @@ namespace Lion.AbpPro.EntityFrameworkCore //NotificationManagementDbProperties = "xxx" base.OnModelCreating(builder); - builder.ConfigurePermissionManagement(); - builder.ConfigureSettingManagement(); - builder.ConfigureBackgroundJobs(); - builder.ConfigureAuditLogging(); - builder.ConfigureIdentity(); - builder.ConfigureFeatureManagement(); - builder.ConfigureTenantManagement(); + builder.ConfigureAbpPro(); + // 基础模块 + builder.ConfigureBasicManagement(); // 数据字典 builder.ConfigureDataDictionaryManagement(); @@ -76,5 +69,6 @@ namespace Lion.AbpPro.EntityFrameworkCore builder.ConfigureFileManagement(); } + } } \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs index 9d63b21b..db923437 100644 --- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/EntityFrameworkCore/AbpProEntityFrameworkCoreModule.cs @@ -2,14 +2,8 @@ namespace Lion.AbpPro.EntityFrameworkCore { [DependsOn( typeof(AbpProDomainModule), - typeof(AbpIdentityEntityFrameworkCoreModule), - typeof(AbpPermissionManagementEntityFrameworkCoreModule), - typeof(AbpSettingManagementEntityFrameworkCoreModule), + typeof(BasicManagementEntityFrameworkCoreModule), typeof(AbpEntityFrameworkCoreMySQLModule), - typeof(AbpBackgroundJobsEntityFrameworkCoreModule), - typeof(AbpAuditLoggingEntityFrameworkCoreModule), - typeof(AbpTenantManagementEntityFrameworkCoreModule), - typeof(AbpFeatureManagementEntityFrameworkCoreModule), typeof(DataDictionaryManagementEntityFrameworkCoreModule), typeof(NotificationManagementEntityFrameworkCoreModule), typeof(FileManagementEntityFrameworkCoreModule) diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/GlobalUsings.cs index 14f0c16e..bfbd1e21 100644 --- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/GlobalUsings.cs @@ -6,6 +6,7 @@ global using System.IO; global using System.Linq; global using System.Text; global using System.Threading.Tasks; +global using Lion.AbpPro.BasicManagement.EntityFrameworkCore; global using Lion.AbpPro.Data; global using Lion.AbpPro.DataDictionaryManagement; global using Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore; diff --git a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Lion.AbpPro.EntityFrameworkCore.csproj b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Lion.AbpPro.EntityFrameworkCore.csproj index 7d7f7146..fdcdaa53 100644 --- a/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Lion.AbpPro.EntityFrameworkCore.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.EntityFrameworkCore/Lion.AbpPro.EntityFrameworkCore.csproj @@ -7,18 +7,12 @@ + - - - - - - - diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/AbpProHttpApiClientModule.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/AbpProHttpApiClientModule.cs index 049c4b10..c43bd1ef 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/AbpProHttpApiClientModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/AbpProHttpApiClientModule.cs @@ -1,13 +1,10 @@ +using Lion.AbpPro.BasicManagement; + namespace Lion.AbpPro { [DependsOn( typeof(AbpProApplicationContractsModule), - typeof(AbpAccountHttpApiClientModule), - typeof(AbpIdentityHttpApiClientModule), - typeof(AbpPermissionManagementHttpApiClientModule), - typeof(AbpTenantManagementHttpApiClientModule), - typeof(AbpFeatureManagementHttpApiClientModule), - typeof(AbpSettingManagementHttpApiClientModule), + typeof(BasicManagementHttpApiClientModule), typeof(DataDictionaryManagementHttpApiClientModule), typeof(FileManagementHttpApiClientModule) )] diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/Lion.AbpPro.HttpApi.Client.csproj b/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/Lion.AbpPro.HttpApi.Client.csproj index 8c120320..9afcb89f 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/Lion.AbpPro.HttpApi.Client.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.HttpApi.Client/Lion.AbpPro.HttpApi.Client.csproj @@ -8,6 +8,7 @@ + diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/AbpProHttpApiModule.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/AbpProHttpApiModule.cs index 715d7541..e8c8b401 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/AbpProHttpApiModule.cs +++ b/aspnet-core/services/src/Lion.AbpPro.HttpApi/AbpProHttpApiModule.cs @@ -1,13 +1,10 @@ +using Lion.AbpPro.BasicManagement; + namespace Lion.AbpPro { [DependsOn( typeof(AbpProApplicationContractsModule), - typeof(AbpAccountHttpApiModule), - typeof(AbpIdentityHttpApiModule), - typeof(AbpPermissionManagementHttpApiModule), - typeof(AbpTenantManagementHttpApiModule), - typeof(AbpFeatureManagementHttpApiModule), - typeof(AbpSettingManagementHttpApiModule), + typeof(BasicManagementHttpApiModule), typeof(DataDictionaryManagementHttpApiModule), typeof(NotificationManagementHttpApiModule), typeof(FileManagementHttpApiModule) diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/GlobalUsings.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/GlobalUsings.cs index ee7bcbd9..89e16125 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/GlobalUsings.cs +++ b/aspnet-core/services/src/Lion.AbpPro.HttpApi/GlobalUsings.cs @@ -1,37 +1,14 @@ // Global using directives -global using System.Collections.Generic; -global using System.Net; -global using System.Threading.Tasks; -global using Lion.AbpPro.AuditLogs; global using Lion.AbpPro.DataDictionaryManagement; global using Lion.AbpPro.ElasticSearches; global using Lion.AbpPro.ElasticSearches.Dto; global using Lion.AbpPro.Extension.Customs.Dtos; global using Lion.AbpPro.FileManagement; -global using Lion.AbpPro.Localization; global using Lion.AbpPro.NotificationManagement; -global using Lion.AbpPro.OrganizationUnits; -global using Lion.AbpPro.OrganizationUnits.Dto; -global using Lion.AbpPro.Permissions; -global using Lion.AbpPro.Roles; -global using Lion.AbpPro.Roles.Dtos; -global using Lion.AbpPro.Settings; -global using Lion.AbpPro.Settings.Dtos; -global using Lion.AbpPro.Users; -global using Lion.AbpPro.Users.Dtos; global using Localization.Resources.AbpUi; -global using Microsoft.AspNetCore.Authorization; global using Microsoft.AspNetCore.Mvc; global using Swashbuckle.AspNetCore.Annotations; -global using Volo.Abp.Account; -global using Volo.Abp.Application.Dtos; -global using Volo.Abp.Application.Services; global using Volo.Abp.AspNetCore.Mvc; -global using Volo.Abp.FeatureManagement; -global using Volo.Abp.Identity; global using Volo.Abp.Localization; -global using Volo.Abp.Modularity; -global using Volo.Abp.PermissionManagement.HttpApi; -global using Volo.Abp.SettingManagement; -global using Volo.Abp.TenantManagement; \ No newline at end of file +global using Volo.Abp.Modularity; \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Lion.AbpPro.HttpApi.csproj b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Lion.AbpPro.HttpApi.csproj index b4cdb1b4..8aa967af 100644 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Lion.AbpPro.HttpApi.csproj +++ b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Lion.AbpPro.HttpApi.csproj @@ -8,6 +8,7 @@ + @@ -16,12 +17,6 @@ - - - - - - diff --git a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/AbpProDomainTestBase.cs b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/AbpProDomainTestBase.cs index 4a0dd41e..13ed3eda 100644 --- a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/AbpProDomainTestBase.cs +++ b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/AbpProDomainTestBase.cs @@ -4,7 +4,7 @@ namespace Lion.AbpPro { public AbpProDomainTestBase() { - ServiceProvider.InitializeLocalization();; + } } } diff --git a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/GlobalUsings.cs b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/GlobalUsings.cs index 0a1f267d..f02694bb 100644 --- a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/GlobalUsings.cs +++ b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/GlobalUsings.cs @@ -5,8 +5,6 @@ global using System.Collections.Generic; global using System.Linq; global using System.Threading.Tasks; global using Lion.AbpPro.EntityFrameworkCore; -global using Lion.AbpPro.Localization; -global using Lion.AbpPro.Localization.Extensions; global using Shouldly; global using Volo.Abp; global using Volo.Abp.Identity; diff --git a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/Localizations/LocalizationHelper_Tests.cs b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/Localizations/LocalizationHelper_Tests.cs index 13a50543..0e71eafc 100644 --- a/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/Localizations/LocalizationHelper_Tests.cs +++ b/aspnet-core/services/test/Lion.AbpPro.Domain.Tests/Localizations/LocalizationHelper_Tests.cs @@ -1,40 +1,40 @@ -namespace Lion.AbpPro.Localizations -{ - public class LocalizationHelper_Tests:AbpProDomainTestBase - { - [Fact] - public void Test_LocalizationHelper_L_OK() - { - using (CultureHelper.Use("en")) - { - var enValue = LocalizationHelper.L["Welcome"]; - enValue.Value.ShouldBe("Welcome"); - } - - using (CultureHelper.Use("zh-Hans")) - { - - var enValue = LocalizationHelper.L["Welcome"]; - enValue.Value.ShouldBe("欢迎"); - } - } - - [Fact] - public void Test_ToLocalicationDescription_L_OK() - { - var test = new {TestType=TestType.Cancel}; - using (CultureHelper.Use("en")) - { - var enValue = test.TestType.ToLocalicationDescription(); - enValue.ShouldBe("Cancel"); - } - - using (CultureHelper.Use("zh-Hans")) - { - - var enValue = test.TestType.ToLocalicationDescription(); - enValue.ShouldBe("取消"); - } - } - } -} \ No newline at end of file +// namespace Lion.AbpPro.Localizations +// { +// public class LocalizationHelper_Tests:AbpProDomainTestBase +// { +// [Fact] +// public void Test_LocalizationHelper_L_OK() +// { +// using (CultureHelper.Use("en")) +// { +// var enValue = LocalizationHelper.L["Welcome"]; +// enValue.Value.ShouldBe("Welcome"); +// } +// +// using (CultureHelper.Use("zh-Hans")) +// { +// +// var enValue = LocalizationHelper.L["Welcome"]; +// enValue.Value.ShouldBe("欢迎"); +// } +// } +// +// [Fact] +// public void Test_ToLocalicationDescription_L_OK() +// { +// var test = new {TestType=TestType.Cancel}; +// using (CultureHelper.Use("en")) +// { +// var enValue = test.TestType.ToLocalicationDescription(); +// enValue.ShouldBe("Cancel"); +// } +// +// using (CultureHelper.Use("zh-Hans")) +// { +// +// var enValue = test.TestType.ToLocalicationDescription(); +// enValue.ShouldBe("取消"); +// } +// } +// } +// } \ No newline at end of file diff --git a/aspnet-core/services/test/Lion.AbpPro.FreeSqlRepository.Tests/AbpProFreeSqlRepositoryTestBase.cs b/aspnet-core/services/test/Lion.AbpPro.FreeSqlRepository.Tests/AbpProFreeSqlRepositoryTestBase.cs index 7528d859..4e797272 100644 --- a/aspnet-core/services/test/Lion.AbpPro.FreeSqlRepository.Tests/AbpProFreeSqlRepositoryTestBase.cs +++ b/aspnet-core/services/test/Lion.AbpPro.FreeSqlRepository.Tests/AbpProFreeSqlRepositoryTestBase.cs @@ -4,7 +4,7 @@ { protected AbpProFreeSqlRepositoryTestBase() { - ServiceProvider.InitializeLocalization(); + } } }