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/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/BasicManagementHttpApiHostModule.cs b/aspnet-core/modules/BasicManagement/host/Lion.AbpPro.BasicManagement.HttpApi.Host/BasicManagementHttpApiHostModule.cs index 9cc9484e..64235651 100644 --- 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 @@ -10,6 +10,7 @@ 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; @@ -17,8 +18,10 @@ 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; @@ -44,13 +47,17 @@ public class BasicManagementHttpApiHostModule : AbpModule 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.UseHttpsRedirection(); app.UseCorrelationId(); app.UseStaticFiles(); app.UseRouting(); @@ -70,7 +77,17 @@ public class BasicManagementHttpApiHostModule : AbpModule app.UseAbpSerilogEnrichers(); app.UseConfiguredEndpoints(); } - + /// + /// 配置虚拟文件系统 + /// + /// + private void ConfigureVirtualFileSystem(ServiceConfigurationContext context) + { + Configure(options => + { + options.FileSets.AddEmbedded(); + }); + } /// /// Redis缓存 /// 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 index cc20b243..963cd9e9 100644 --- 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 @@ -874,3 +874,1812 @@ ActivatorChain = Lion.AbpPro.BasicManagement.Systems.AccountController -> Lion.A 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/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissionDefinitionProvider.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application.Contracts/Permissions/BasicManagementPermissionDefinitionProvider.cs index a29b3613..f53b241c 100644 --- 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 @@ -16,7 +16,6 @@ public class BasicManagementPermissionDefinitionProvider : PermissionDefinitionP var auditManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.AuditLog, L("Permission:AuditLogManagement")); - var esManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.ES, L("Permission:ESManagement")); var settingManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.Setting, L("Permission:SettingManagement")); var organizationUnitManagement = abpIdentityGroup.AddPermission(BasicManagementPermissions.SystemManagement.OrganizationUnit, L("Permission:OrganizationUnitManagement")); organizationUnitManagement.AddChild 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 index c01065da..1aa5b8e3 100644 --- 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 @@ -13,7 +13,6 @@ public class BasicManagementPermissions 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 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 index 198378c1..80d527e9 100644 --- a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationModule.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/BasicManagementApplicationModule.cs @@ -7,6 +7,7 @@ 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; @@ -16,6 +17,7 @@ namespace Lion.AbpPro.BasicManagement; typeof(BasicManagementDomainModule), typeof(BasicManagementApplicationContractsModule), typeof(AbpDddApplicationModule), + typeof(AbpIdentityAspNetCoreModule), typeof(AbpAutoMapperModule), typeof(AbpAccountApplicationModule), typeof(AbpIdentityApplicationModule), 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 index 574310e1..be652333 100644 --- 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 @@ -11,6 +11,7 @@ + diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs index faf0e494..fa074b95 100644 --- a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs @@ -29,6 +29,7 @@ namespace Lion.AbpPro.BasicManagement.Users public async Task LoginAsync(LoginInput input) { var result = await _signInManager.PasswordSignInAsync(input.Name, input.Password, false, true); + if (result.IsNotAllowed) { throw new BusinessException(BasicManagementErrorCodes.UserLockedOut); 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 index bdab359d..23fbd563 100644 --- 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 @@ -22,7 +22,7 @@ public class BasicManagementDomainSharedModule : AbpModule { options.Resources .Add(BasicManagementConsts.DefaultCultureName) - .AddVirtualJson("/Localization/AbpPro") + .AddVirtualJson("/Localization/BasicManagement") .AddBaseTypes(typeof(IdentityResource)) .AddBaseTypes(typeof(AbpValidationResource)) .AddBaseTypes(typeof(AbpLocalizationResource)) 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 index 0baa0236..738374ec 100644 --- 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 @@ -13,9 +13,11 @@ "Permission:AuditLogManagement": "AuditLog", "Permission:HangfireManagement": "BackgroundTask", "Permission:CapManagement": "IntegratedEvent", - "Permission:ESManagement": "ESManagement", "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/zh-Hans.json b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Domain.Shared/Localization/BasicManagement/zh-Hans.json index f6f6276b..f17838de 100644 --- 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 @@ -13,10 +13,12 @@ "Permission:SystemManagement": "系统管理", "Permission:HangfireManagement": "后台任务", "Permission:CapManagement": "集成事件", - "Permission:ESManagement": "ES日志", "Permission:SettingManagement": "设置管理", "Permission:OrganizationUnitManagement": "组织结构管理", - "Setting.Group.System": "系统" + "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/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/GetAuditLogPageListOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs deleted file mode 100644 index 0bce5e07..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/GetAuditLogPageListOutput.cs +++ /dev/null @@ -1,43 +0,0 @@ -namespace Lion.AbpPro.AuditLogs -{ - public class GetAuditLogPageListOutput - { - public string ApplicationName { get; set; } - - public Guid? UserId { get; set; } - - public string UserName { get; set; } - - public Guid? TenantId { get; set; } - - public string TenantName { get; set; } - - public Guid? ImpersonatorUserId { get; set; } - - public Guid? ImpersonatorTenantId { get; set; } - - public DateTime ExecutionTime { get; set; } - - public int ExecutionDuration { get; set; } - - public string ClientIpAddress { get; set; } - - public string ClientName { get; set; } - - public string ClientId { get; set; } - - public string CorrelationId { get; set; } - - public string BrowserInfo { get; set; } - - public string HttpMethod { get; set; } - - public string Url { get; set; } - - public string Exceptions { get; set; } - - public string Comments { get; set; } - - public int? HttpStatusCode { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs deleted file mode 100644 index 53ac214d..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/AuditLogs/IAuditLogAppService.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Lion.AbpPro.AuditLogs -{ - public interface IAuditLogAppService : IApplicationService - { - /// - /// 分页查询审计日志 - /// - /// - /// - Task> GetListAsync(PagingAuditLogListInput input); - } -} \ No newline at end of file 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/AddRoleToOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs deleted file mode 100644 index 7144d81a..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddRoleToOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class AddRoleToOrganizationUnitInput -{ - public List RoleId { get; set; } - - public Guid OrganizationUnitId { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs deleted file mode 100644 index a9c867b0..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/AddUserToOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class AddUserToOrganizationUnitInput -{ - public List UserId { get; set; } - - public Guid OrganizationUnitId { get; set; } -} \ No newline at end of file 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/GetOrganizationUnitRoleInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs deleted file mode 100644 index 1c0d79b0..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleInput.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetOrganizationUnitRoleInput : PagingBase -{ - public Guid OrganizationUnitId { get; set; } - -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs deleted file mode 100644 index 06be2528..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitRoleOutput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetOrganizationUnitRoleOutput -{ - public Guid Id { get; set; } - - public string Name { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs deleted file mode 100644 index b5a26a7c..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetOrganizationUnitUserInput : PagingBase -{ - public Guid OrganizationUnitId { get; set; } - - public string Filter { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs deleted file mode 100644 index cc17e16f..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetOrganizationUnitUserOutput.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetOrganizationUnitUserOutput -{ - public Guid Id { get; set; } - - public string UserName { get; set; } - - public string Email { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs deleted file mode 100644 index 31fb4828..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetUnAddRoleInput : PagingBase -{ - public Guid OrganizationUnitId { get; set; } - - public string Filter { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs deleted file mode 100644 index 383d5600..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddRoleOutput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetUnAddRoleOutput -{ - public Guid Id { get; set; } - - public string Name { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs deleted file mode 100644 index 1f428ba2..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetUnAddUserInput : PagingBase -{ - public Guid OrganizationUnitId { get; set; } - - public string Filter { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs deleted file mode 100644 index cc9db069..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/GetUnAddUserOutput.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class GetUnAddUserOutput -{ - public Guid Id { get; set; } - - public string UserName { get; set; } - - public string Email { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs deleted file mode 100644 index fd9e4e8f..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/OrganizationUnitDto.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class OrganizationUnitDto -{ - public Guid Id { get; set; } - - public Guid? TenantId { get; set; } - - public string Code { get; set; } - - 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/RemoveRoleToOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs deleted file mode 100644 index d48e518a..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveRoleToOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class RemoveRoleToOrganizationUnitInput -{ - public Guid RoleId { get; set; } - - public Guid OrganizationUnitId { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs deleted file mode 100644 index 4ff62487..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/RemoveUserToOrganizationUnitInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class RemoveUserToOrganizationUnitInput -{ - public Guid UserId { get; set; } - - public Guid OrganizationUnitId { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs deleted file mode 100644 index 575f095a..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/Dto/TreeOutput.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits.Dto; - -public class TreeOutput -{ - public string Title { get; set; } - - public Guid Key { get; set; } - - public List Children { 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/OrganizationUnits/IOrganizationUnitAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs deleted file mode 100644 index 7d2b9e59..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/OrganizationUnits/IOrganizationUnitAppService.cs +++ /dev/null @@ -1,66 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits; - -public interface IOrganizationUnitAppService : IApplicationService -{ - /// - /// 获取组织机构树结构 - /// - /// - Task> GetTreeAsync(); - - /// - /// 创建组织机构 - /// - Task CreateAsync(CreateOrganizationUnitInput input); - - /// - /// 删除组织机构 - /// - Task DeleteAsync(IdInput input); - - /// - /// 编辑组织机构 - /// - Task UpdateAsync(UpdateOrganizationUnitInput input); - - /// - /// 向组织机构添加角色 - /// - Task AddRoleToOrganizationUnitAsync(AddRoleToOrganizationUnitInput input); - - /// - /// 向组织机构删除角色 - /// - Task RemoveRoleFromOrganizationUnitAsync(RemoveRoleToOrganizationUnitInput input); - - /// - /// 向组织机构添加用户 - /// - Task AddUserToOrganizationUnitAsync(AddUserToOrganizationUnitInput input); - - /// - /// 向组织机构删除用户 - /// - Task RemoveUserFromOrganizationUnitAsync(RemoveUserToOrganizationUnitInput input); - - /// - /// 分页获取组织机构下用户 - /// - Task> GetUsersAsync(GetOrganizationUnitUserInput input); - - - /// - /// 分页获取组织机构下角色 - /// - Task> GetRolesAsync(GetOrganizationUnitRoleInput input); - - /// - /// 获取不在组织机构的用户 - /// - Task> GetUnAddUsersAsync(GetUnAddUserInput input); - - /// - /// 获取不在组织机构的角色 - /// - Task> GetUnAddRolessAsync(GetUnAddRoleInput input); -} \ 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/Roles/Dtos/GetPermissionInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/GetPermissionInput.cs deleted file mode 100644 index 84772568..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/GetPermissionInput.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.Roles.Dtos -{ - public class GetPermissionInput - { - [Required] - public string ProviderName { get; set; } - [Required] - public string ProviderKey { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs deleted file mode 100644 index 1b037f08..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PagingRoleListInput.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Lion.AbpPro.Roles.Dtos -{ - public class PagingRoleListInput : PagingBase - { - public string Filter { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs deleted file mode 100644 index 9d0e11e6..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/PermissionOutput.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Lion.AbpPro.Roles.Dtos -{ - public class PermissionOutput { - public List Grants { get; set; } = new List(); - - public List AllGrants { get; set; } = new List(); - - public List Permissions { get; set; } = new List(); - } - - public class PermissionTreeDto - { - public string Title { get; set; } - - public string Key { get; set; } - - public List Children { get; set; }=new List(); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs deleted file mode 100644 index fc5f47b1..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRoleInput.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Lion.AbpPro.Roles.Dtos -{ - public class UpdateRoleInput - { - public Guid RoleId { get; set; } - - public IdentityRoleUpdateDto RoleInfo { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs deleted file mode 100644 index 407864aa..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/Dtos/UpdateRolePermissionsInput.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace Lion.AbpPro.Roles.Dtos -{ - public class UpdateRolePermissionsInput - { - [Required] - public string ProviderName { get; set; } - - [Required] - public string ProviderKey { get; set; } - - public UpdatePermissionsDto UpdatePermissionsDto { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs deleted file mode 100644 index de28d6e3..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRoleAppService.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Lion.AbpPro.Roles -{ - public interface IRoleAppService : IApplicationService - { - Task> AllListAsync(); - - Task> ListAsync(PagingRoleListInput input); - - Task CreateAsync(IdentityRoleCreateDto input); - - 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/services/src/Lion.AbpPro.Application.Contracts/Roles/IRolePermissionAppService.cs deleted file mode 100644 index cf500eef..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/IRolePermissionAppService.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.Roles -{ - public interface IRolePermissionAppService : IApplicationService - { - - Task GetPermissionAsync(GetPermissionInput input); - - Task UpdatePermissionAsync(UpdateRolePermissionsInput input); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs deleted file mode 100644 index 286fe4b3..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Roles/PermissionOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace Lion.AbpPro.Roles; - -public class PermissionOptions -{ - /// - /// 需要排除的权限 - /// - public List Excludes { get; } - - public PermissionOptions() - { - Excludes = new List(); - } - - /// - /// 权限是否排除 - /// - /// 权限名称 - /// bool - public bool IsExclude(string permission) - { - if (permission.IsNullOrWhiteSpace()) return false; - return Excludes.Any(e => e.ToLower() == permission.ToLower()); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs deleted file mode 100644 index c779d0a7..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/SettingOutput.cs +++ /dev/null @@ -1,59 +0,0 @@ -namespace Lion.AbpPro.Settings.Dtos -{ - public class SettingOutput - { - /// - /// 分组 - /// - public string Group { get; set; } - - /// - /// 分组显示名称 - /// - public string GroupDisplayName { get; set; } - - public List SettingItemOutput { get; set; } - - public SettingOutput() - { - SettingItemOutput = new List(); - } - } - - public class SettingItemOutput - { - public SettingItemOutput(string name, string displayName, string value, string type,string description) - { - Name = name; - DisplayName = displayName; - Value = value; - Type = type ?? "Text"; - Description = description; - } - - /// - /// 名称 - /// - public string Name { get; set; } - - /// - /// 显示名称 - /// - public string DisplayName { get; set; } - - /// - /// 描述 - /// - public string Description { get; set; } - - /// - /// 值 - /// - public string Value { get; set; } - - /// - /// 前端控件类型 - /// - public string Type { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs deleted file mode 100644 index 2646e328..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/Dtos/UpdateSettingInput.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Lion.AbpPro.Settings.Dtos -{ - public class UpdateSettingInput - { - public Dictionary Values { get; set; } - - public UpdateSettingInput() - { - Values = new Dictionary(); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs deleted file mode 100644 index 52333dbf..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Settings/ISettingAppService.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Lion.AbpPro.Settings -{ - public interface ISettingAppService : IApplicationService - { - /// - /// 获取setting信息 - /// - /// - Task> GetAsync(); - - /// - /// 更新setting - /// - /// - Task UpdateAsync(UpdateSettingInput input); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs deleted file mode 100644 index de50f133..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/FindTenantByNameInput.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Lion.AbpPro.Tenants.Dtos -{ - public class FindTenantByNameInput - { - public string Name { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs deleted file mode 100644 index e9458c17..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/PagingTenantInput.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Lion.AbpPro.Tenants.Dtos -{ - public class PagingTenantInput : PagingBase - { - public string Filter { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs deleted file mode 100644 index 67b43faf..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateDefaultConnectionStringInput.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lion.AbpPro.Tenants.Dtos -{ - public class UpdateConnectionStringInput - { - public Guid Id { get; set; } - [Required(ErrorMessage = "连接字符串不能为空")] public string ConnectionString { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs deleted file mode 100644 index 2ba704b4..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/Dtos/UpdateTenantInput.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Lion.AbpPro.Tenants.Dtos -{ - public class UpdateTenantInput - { - public Guid Id { get; set; } - - [Required(ErrorMessage = "租户名称不能为空")] public string Name { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs deleted file mode 100644 index 704f7637..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Tenants/IVoloTenantAppService.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace Lion.AbpPro.Tenants -{ - public interface IVoloTenantAppService : IApplicationService - { - Task FindTenantByNameAsync(FindTenantByNameInput input); - - Task> ListAsync(PagingTenantInput input); - - Task CreateAsync(TenantCreateDto input); - - Task UpdateAsync(UpdateTenantInput input); - - Task DeleteAsync(IdInput input); - - Task GetDefaultConnectionStringAsync(IdInput input); - - Task UpdateDefaultConnectionStringAsync(UpdateConnectionStringInput input); - - Task DeleteDefaultConnectionStringAsync(IdInput input); - } -} \ No newline at end of file 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.Contracts/Users/Dtos/GithubAccessTokenResponse.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs deleted file mode 100644 index 915d24b0..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/GithubAccessTokenResponse.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos; - -public class GithubAccessTokenResponse -{ - /// - /// access_token - /// - [JsonProperty("access_token")] - public string Access_token { get; set; } - - /// - /// scope - /// - [JsonProperty("scope")] - public string Scope { get; set; } - - /// - /// token_type - /// - [JsonProperty("token_type")] - public string TokenType { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs deleted file mode 100644 index 5ea7e430..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LockUserInput.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class LockUserInput - { - [Required] - public Guid UserId { get; set; } - - [Required] - public bool Locked { get; set; } - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs deleted file mode 100644 index 0248b1d3..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginGithubResponse.cs +++ /dev/null @@ -1,99 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos; - -public class LoginGithubResponse -{ - public string login { get; set; } - - - public int id { get; set; } - - - public string node_id { get; set; } - - - public string avatar_url { get; set; } - - - public string gravatar_id { get; set; } - - - public string url { get; set; } - - - public string html_url { get; set; } - - - public string followers_url { get; set; } - - - public string following_url { get; set; } - - - public string gists_url { get; set; } - - - public string starred_url { get; set; } - - - public string subscriptions_url { get; set; } - - - public string organizations_url { get; set; } - - - public string repos_url { get; set; } - - - public string events_url { get; set; } - - - public string received_events_url { get; set; } - - - public string type { get; set; } - - - public string site_admin { get; set; } - - - public string name { get; set; } - - - public string company { get; set; } - - - public string blog { get; set; } - - - public string location { get; set; } - - - public string email { get; set; } - - - public string hireable { get; set; } - - - public string bio { get; set; } - - - public string twitter_username { get; set; } - - - public int public_repos { get; set; } - - - public int public_gists { get; set; } - - - public int followers { get; set; } - - - public int following { get; set; } - - - public string created_at { get; set; } - - - public string updated_at { get; set; } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs deleted file mode 100644 index e790b8bf..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginInput.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - /// - /// 登录 - /// - public class LoginInput : IValidatableObject - { - /// - /// 用户名或者邮箱 - /// - public string Name { get; set; } - - - /// - /// 密码 - /// - [DisableAuditing] - public string Password { get; set; } - - public IEnumerable Validate(ValidationContext validationContext) - { - if (Name.IsNullOrWhiteSpace()) - { - yield return new ValidationResult("Email can not be null", new[] { "Email" }); - } - - if (Password.IsNullOrWhiteSpace()) - { - yield return new ValidationResult("Password can not be null", new[] { "Password" }); - } - } - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs deleted file mode 100644 index 2a52703f..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginOutput.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class LoginOutput - { - public Guid Id { get; set; } - - public string Name { get; set; } - - public string UserName { get; set; } - - public string Token { get; set; } - - public List Roles { get; set; } = new List(); - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs deleted file mode 100644 index 83ddf605..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/LoginStsResponse.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class LoginStsResponse - { - public string name { get; set; } - - public string preferred_username { get; set; } - - public string family_name { get; set; } - - public string email { get; set; } - - public string given_name { get; set; } - - public string avatar { get; set; } - - public string sub { get; set; } - - public Guid? tenantId { get; set; } - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs deleted file mode 100644 index 7357ce92..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/PagingUserListInput.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class PagingUserListInput : PagingBase - { - /// - /// 关键字 - /// - public string Filter { get; set; } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs deleted file mode 100644 index 1e3ca5bb..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/Dtos/UpdateUserInput.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Lion.AbpPro.Users.Dtos -{ - public class UpdateUserInput - { - public Guid UserId { get; set; } - - public IdentityUserUpdateDto UserInfo { get; set; } - } -} diff --git a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs deleted file mode 100644 index adffafd7..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IAccountAppService.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Lion.AbpPro.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/services/src/Lion.AbpPro.Application.Contracts/Users/IUserAppService.cs deleted file mode 100644 index 2a9820f2..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application.Contracts/Users/IUserAppService.cs +++ /dev/null @@ -1,58 +0,0 @@ -namespace Lion.AbpPro.Users -{ - public interface IUserAppService : IApplicationService - { - /// - /// 分页查询用户 - /// - /// - /// - Task> ListAsync(PagingUserListInput input); - - /// - /// 用户导出列表 - /// - /// - Task ExportAsync(PagingUserListInput input); - - /// - /// 新增用户 - /// - /// - /// - Task CreateAsync(IdentityUserCreateDto input); - - /// - /// 更新用户 - /// - /// - /// - Task UpdateAsync(UpdateUserInput input); - - /// - /// 删除用户 - /// - Task DeleteAsync(IdInput input); - - - /// - /// 获取用户角色信息 - /// - /// - 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/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/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs deleted file mode 100644 index b3cdda82..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/ApplicationConfigurations/LionAbpApplicationConfigurationAppService.cs +++ /dev/null @@ -1,349 +0,0 @@ -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; - - -[Dependency(ReplaceServices = true)] -public class LionAbpApplicationConfigurationAppService : ApplicationService, IAbpApplicationConfigurationAppService -{ - private readonly AbpLocalizationOptions _localizationOptions; - private readonly AbpMultiTenancyOptions _multiTenancyOptions; - private readonly IServiceProvider _serviceProvider; - private readonly IAbpAuthorizationPolicyProvider _abpAuthorizationPolicyProvider; - private readonly IPermissionDefinitionManager _permissionDefinitionManager; - private readonly DefaultAuthorizationPolicyProvider _defaultAuthorizationPolicyProvider; - private readonly IPermissionChecker _permissionChecker; - private readonly IAuthorizationService _authorizationService; - private readonly ICurrentUser _currentUser; - private readonly ISettingProvider _settingProvider; - private readonly ISettingDefinitionManager _settingDefinitionManager; - private readonly IFeatureDefinitionManager _featureDefinitionManager; - private readonly ILanguageProvider _languageProvider; - private readonly ITimezoneProvider _timezoneProvider; - private readonly AbpClockOptions _abpClockOptions; - private readonly ICachedObjectExtensionsDtoService _cachedObjectExtensionsDtoService; - - public LionAbpApplicationConfigurationAppService( - IOptions localizationOptions, - IOptions multiTenancyOptions, - IServiceProvider serviceProvider, - IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, - IPermissionDefinitionManager permissionDefinitionManager, - DefaultAuthorizationPolicyProvider defaultAuthorizationPolicyProvider, - IPermissionChecker permissionChecker, - IAuthorizationService authorizationService, - ICurrentUser currentUser, - ISettingProvider settingProvider, - ISettingDefinitionManager settingDefinitionManager, - IFeatureDefinitionManager featureDefinitionManager, - ILanguageProvider languageProvider, - ITimezoneProvider timezoneProvider, - IOptions abpClockOptions, - ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService) - { - _serviceProvider = serviceProvider; - _abpAuthorizationPolicyProvider = abpAuthorizationPolicyProvider; - _permissionDefinitionManager = permissionDefinitionManager; - _defaultAuthorizationPolicyProvider = defaultAuthorizationPolicyProvider; - _permissionChecker = permissionChecker; - _authorizationService = authorizationService; - _currentUser = currentUser; - _settingProvider = settingProvider; - _settingDefinitionManager = settingDefinitionManager; - _featureDefinitionManager = featureDefinitionManager; - _languageProvider = languageProvider; - _timezoneProvider = timezoneProvider; - _abpClockOptions = abpClockOptions.Value; - _cachedObjectExtensionsDtoService = cachedObjectExtensionsDtoService; - _localizationOptions = localizationOptions.Value; - _multiTenancyOptions = multiTenancyOptions.Value; - } - - public virtual async Task GetAsync() - { - //TODO: Optimize & cache..? - - Logger.LogDebug("Executing AbpApplicationConfigurationAppService.GetAsync()..."); - - var result = new ApplicationConfigurationDto - { - Auth = await GetAuthConfigAsync(), - Features = await GetFeaturesConfigAsync(), - Localization = await GetLocalizationConfigAsync(), - CurrentUser = GetCurrentUser(), - Setting = await GetSettingConfigAsync(), - MultiTenancy = GetMultiTenancy(), - CurrentTenant = GetCurrentTenant(), - Timing = await GetTimingConfigAsync(), - Clock = GetClockConfig(), - ObjectExtensions = _cachedObjectExtensionsDtoService.Get() - }; - - Logger.LogDebug("Executed AbpApplicationConfigurationAppService.GetAsync()."); - - return result; - } - - protected virtual CurrentTenantDto GetCurrentTenant() - { - return new CurrentTenantDto() - { - Id = CurrentTenant.Id, - Name = CurrentTenant.Name, - IsAvailable = CurrentTenant.IsAvailable - }; - } - - protected virtual MultiTenancyInfoDto GetMultiTenancy() - { - return new MultiTenancyInfoDto - { - IsEnabled = _multiTenancyOptions.IsEnabled - }; - } - - protected virtual CurrentUserDto GetCurrentUser() - { - return new CurrentUserDto - { - IsAuthenticated = _currentUser.IsAuthenticated, - Id = _currentUser.Id, - TenantId = _currentUser.TenantId, - ImpersonatorUserId = _currentUser.FindImpersonatorUserId(), - ImpersonatorTenantId = _currentUser.FindImpersonatorTenantId(), - UserName = _currentUser.UserName, - SurName = _currentUser.SurName, - Name = _currentUser.Name, - Email = _currentUser.Email, - EmailVerified = _currentUser.EmailVerified, - PhoneNumber = _currentUser.PhoneNumber, - PhoneNumberVerified = _currentUser.PhoneNumberVerified, - Roles = _currentUser.Roles - }; - } - - protected virtual async Task GetAuthConfigAsync() - { - var authConfig = new ApplicationAuthConfigurationDto(); - - var policyNames = await _abpAuthorizationPolicyProvider.GetPoliciesNamesAsync(); - var abpPolicyNames = new List(); - var otherPolicyNames = new List(); - - foreach (var policyName in policyNames) - { - if (await _defaultAuthorizationPolicyProvider.GetPolicyAsync(policyName) == null && _permissionDefinitionManager.GetOrNull(policyName) != null) - { - abpPolicyNames.Add(policyName); - } - else - { - otherPolicyNames.Add(policyName); - } - } - - foreach (var policyName in otherPolicyNames) - { - authConfig.Policies[policyName] = true; - - if (await _authorizationService.IsGrantedAsync(policyName)) - { - authConfig.GrantedPolicies[policyName] = true; - } - } - - var result = await _permissionChecker.IsGrantedAsync(abpPolicyNames.ToArray()); - foreach (var (key, value) in result.Result) - { - authConfig.Policies[key] = true; - if (value == PermissionGrantResult.Granted) - { - authConfig.GrantedPolicies[key] = true; - } - } - - var policies = BuildGrantedPolicies(authConfig.GrantedPolicies.Select(e => e.Key).ToList()); - foreach (var item in policies) - { - if (authConfig.GrantedPolicies.Any(e => e.Key == item)) continue; - authConfig.GrantedPolicies.Add(item, true); - } - return authConfig; - } - - private List BuildGrantedPolicies(List grantedPolicies) - { - var result = new List(); - foreach (var policy in grantedPolicies) - { - result.AddRange(GetPolicy(policy)); - } - - return result.Distinct().ToList(); - } - - private List GetPolicy(string policy) - { - var result = new List(); - var split = policy.Split('.', StringSplitOptions.RemoveEmptyEntries); - if (split.Length <= 0) return result; - var currentPolicy = string.Empty; - for (int i = 0; i < split.Length - 1; i++) - { - if (i == 0) - { - currentPolicy += split[i]; - } - else - { - currentPolicy += "." + split[i]; - } - } - - if (!currentPolicy.IsNullOrWhiteSpace()) - { - result.Add(currentPolicy); - result.AddRange(GetPolicy(currentPolicy)); - } - - return result; - } - - - protected virtual async Task GetLocalizationConfigAsync() - { - var localizationConfig = new ApplicationLocalizationConfigurationDto(); - - localizationConfig.Languages.AddRange(await _languageProvider.GetLanguagesAsync()); - - foreach (var resource in _localizationOptions.Resources.Values) - { - var dictionary = new Dictionary(); - - var localizer = _serviceProvider.GetRequiredService( - typeof(IStringLocalizer<>).MakeGenericType(resource.ResourceType) - ) as IStringLocalizer; - - foreach (var localizedString in localizer.GetAllStrings()) - { - dictionary[localizedString.Name] = localizedString.Value; - } - - localizationConfig.Values[resource.ResourceName] = dictionary; - } - - localizationConfig.CurrentCulture = GetCurrentCultureInfo(); - - if (_localizationOptions.DefaultResourceType != null) - { - localizationConfig.DefaultResourceName = LocalizationResourceNameAttribute.GetName( - _localizationOptions.DefaultResourceType - ); - } - - localizationConfig.LanguagesMap = _localizationOptions.LanguagesMap; - localizationConfig.LanguageFilesMap = _localizationOptions.LanguageFilesMap; - - return localizationConfig; - } - - private static CurrentCultureDto GetCurrentCultureInfo() - { - return new CurrentCultureDto - { - Name = CultureInfo.CurrentUICulture.Name, - DisplayName = CultureInfo.CurrentUICulture.DisplayName, - EnglishName = CultureInfo.CurrentUICulture.EnglishName, - NativeName = CultureInfo.CurrentUICulture.NativeName, - IsRightToLeft = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft, - CultureName = CultureInfo.CurrentUICulture.TextInfo.CultureName, - TwoLetterIsoLanguageName = CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, - ThreeLetterIsoLanguageName = CultureInfo.CurrentUICulture.ThreeLetterISOLanguageName, - DateTimeFormat = new DateTimeFormatDto - { - CalendarAlgorithmType = - CultureInfo.CurrentUICulture.DateTimeFormat.Calendar.AlgorithmType.ToString(), - DateTimeFormatLong = CultureInfo.CurrentUICulture.DateTimeFormat.LongDatePattern, - ShortDatePattern = CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern, - FullDateTimePattern = CultureInfo.CurrentUICulture.DateTimeFormat.FullDateTimePattern, - DateSeparator = CultureInfo.CurrentUICulture.DateTimeFormat.DateSeparator, - ShortTimePattern = CultureInfo.CurrentUICulture.DateTimeFormat.ShortTimePattern, - LongTimePattern = CultureInfo.CurrentUICulture.DateTimeFormat.LongTimePattern, - } - }; - } - - private async Task GetSettingConfigAsync() - { - var result = new ApplicationSettingConfigurationDto - { - Values = new Dictionary() - }; - - var settingDefinitions = _settingDefinitionManager.GetAll().Where(x => x.IsVisibleToClients); - - var settingValues = await _settingProvider.GetAllAsync(settingDefinitions.Select(x => x.Name).ToArray()); - - foreach (var settingValue in settingValues) - { - result.Values[settingValue.Name] = settingValue.Value; - } - - return result; - } - - protected virtual async Task GetFeaturesConfigAsync() - { - var result = new ApplicationFeatureConfigurationDto(); - - foreach (var featureDefinition in _featureDefinitionManager.GetAll()) - { - if (!featureDefinition.IsVisibleToClients) - { - continue; - } - - result.Values[featureDefinition.Name] = await FeatureChecker.GetOrNullAsync(featureDefinition.Name); - } - - return result; - } - - protected virtual async Task GetTimingConfigAsync() - { - var windowsTimeZoneId = await _settingProvider.GetOrNullAsync(TimingSettingNames.TimeZone); - - return new TimingDto - { - TimeZone = new Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.TimeZone - { - Windows = new WindowsTimeZone - { - TimeZoneId = windowsTimeZoneId - }, - Iana = new IanaTimeZone - { - TimeZoneName = windowsTimeZoneId.IsNullOrWhiteSpace() - ? null - : _timezoneProvider.WindowsToIana(windowsTimeZoneId) - } - } - }; - } - - protected virtual ClockDto GetClockConfig() - { - return new ClockDto - { - Kind = Enum.GetName(typeof(DateTimeKind), _abpClockOptions.Kind) - }; - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs deleted file mode 100644 index 6b7dfe7e..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/AuditLogs/AuditLogAppService.cs +++ /dev/null @@ -1,54 +0,0 @@ -namespace Lion.AbpPro.AuditLogs -{ - [Authorize] - public class AuditLogAppService : AbpProAppService, IAuditLogAppService - { - private readonly IAuditLogRepository _auditLogRepository; - - public AuditLogAppService(IAuditLogRepository auditLogRepository) - { - _auditLogRepository = auditLogRepository; - } - - /// - /// 分页查询审计日志 - /// - [Authorize(Policy = AbpProPermissions.SystemManagement.AuditLog)] - public async Task> GetListAsync(PagingAuditLogListInput input) - { - var list = await _auditLogRepository.GetListAsync( - input.Sorting, - input.PageSize, - input.SkipCount, - input.StartTime?.Date, - input.EndTime?.Date, - input.HttpMethod, - input.Url, - null, - input.UserName, - input.ApplicationName, - input.CorrelationId, - null, - input.MaxExecutionDuration, - input.MinExecutionDuration, - input.HasException, - input.HttpStatusCode); - var totalCount = await _auditLogRepository.GetCountAsync( - input.StartTime?.Date, - input.EndTime?.Date, - input.HttpMethod, - input.Url, - null, - input.UserName, - input.ApplicationName, - null, - input.CorrelationId, - input.MaxExecutionDuration, - input.MinExecutionDuration, - input.HasException, - input.HttpStatusCode); - return new PagedResultDto(totalCount, - ObjectMapper.Map, List>(list)); - } - } -} \ No newline at end of file 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/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/OrganizationUnits/OrganizationUnitAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/OrganizationUnits/OrganizationUnitAppService.cs deleted file mode 100644 index 831a7e56..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/OrganizationUnits/OrganizationUnitAppService.cs +++ /dev/null @@ -1,198 +0,0 @@ -namespace Lion.AbpPro.OrganizationUnits; - -[Authorize] -public class OrganizationUnitAppService : AbpProAppService, IOrganizationUnitAppService -{ - private readonly OrganizationUnitManager _organizationUnitManager; - private readonly IdentityUserManager _identityUserManager; - private readonly IOrganizationUnitRepository _organizationUnitRepository; - - public OrganizationUnitAppService( - OrganizationUnitManager OrganizationUnitManager, - IdentityUserManager identityUserManager, - IOrganizationUnitRepository organizationUnitRepository) - { - _organizationUnitManager = OrganizationUnitManager; - _identityUserManager = identityUserManager; - _organizationUnitRepository = organizationUnitRepository; - } - - public async Task> GetTreeAsync() - { - var organizationUnits = await _organizationUnitRepository.GetListAsync(); - var organizationUnitDtos = ObjectMapper.Map, List>(organizationUnits); - return ConvertToTree(organizationUnitDtos); - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] - public async Task CreateAsync(CreateOrganizationUnitInput input) - { - var entity = new OrganizationUnit - ( - GuidGenerator.Create(), - input.DisplayName, - input.ParentId, - CurrentTenant.Id - ); - await _organizationUnitManager.CreateAsync(entity); - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] - public Task DeleteAsync(IdInput input) - { - return _organizationUnitManager.DeleteAsync(input.Id); - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Update)] - public async Task UpdateAsync(UpdateOrganizationUnitInput input) - { - var entity = await _organizationUnitRepository.FindAsync(input.Id); - if (entity != null) - { - entity.DisplayName = input.DisplayName; - await _organizationUnitManager.UpdateAsync(entity); - } - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] - public async Task AddRoleToOrganizationUnitAsync(AddRoleToOrganizationUnitInput input) - { - foreach (var roleId in input.RoleId) - { - await _organizationUnitManager.AddRoleToOrganizationUnitAsync(roleId, input.OrganizationUnitId); - } - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] - public async Task RemoveRoleFromOrganizationUnitAsync(RemoveRoleToOrganizationUnitInput input) - { - await _organizationUnitManager.RemoveRoleFromOrganizationUnitAsync(input.RoleId, input.OrganizationUnitId); - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Create)] - public async Task AddUserToOrganizationUnitAsync(AddUserToOrganizationUnitInput input) - { - foreach (var userId in input.UserId) - { - await _identityUserManager.AddToOrganizationUnitAsync(userId, input.OrganizationUnitId); - } - } - - [Authorize(AbpProPermissions.SystemManagement.OrganizationUnitManagement.Delete)] - public async Task RemoveUserFromOrganizationUnitAsync(RemoveUserToOrganizationUnitInput input) - { - await _identityUserManager.RemoveFromOrganizationUnitAsync(input.UserId, input.OrganizationUnitId); - } - - public async Task> GetUsersAsync(GetOrganizationUnitUserInput input) - { - var listResult = new List(); - var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); - - var count = await _organizationUnitRepository.GetMembersCountAsync(organizationUnit, filter: input.Filter); - if (count > 0) - { - var list = await _organizationUnitRepository.GetMembersAsync - ( - organizationUnit, - maxResultCount: input.PageSize, - skipCount: input.SkipCount, - filter: input.Filter - ); - listResult = ObjectMapper.Map, List>(list); - } - - return new PagedResultDto(count, listResult); - } - - public async Task> GetUnAddUsersAsync(GetUnAddUserInput input) - { - var listResult = new List(); - var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); - var count = await _organizationUnitRepository.GetUnaddedUsersCountAsync(organizationUnit, input.Filter); - if (count > 0) - { - var users = await _organizationUnitRepository.GetUnaddedUsersAsync - ( - organizationUnit, - maxResultCount: input.PageSize, - skipCount: input.SkipCount, - filter: input.Filter - ); - listResult = ObjectMapper.Map, List>(users); - } - - return new PagedResultDto(count, listResult); - } - - public async Task> GetRolesAsync(GetOrganizationUnitRoleInput input) - { - var listResult = new List(); - var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); - - var count = await _organizationUnitRepository.GetRolesCountAsync(organizationUnit); - if (count > 0) - { - var list = await _organizationUnitRepository.GetRolesAsync(organizationUnit, maxResultCount: input.PageSize, skipCount: input.SkipCount); - listResult = ObjectMapper.Map, List>(list); - } - - return new PagedResultDto(count, listResult); - } - - public async Task> GetUnAddRolessAsync(GetUnAddRoleInput input) - { - var listResult = new List(); - var organizationUnit = await _organizationUnitRepository.FindAsync(input.OrganizationUnitId); - if (organizationUnit == null) throw new BusinessException(AbpProDomainErrorCodes.OrganizationUnitNotExist); - var count = await _organizationUnitRepository.GetUnaddedRolesCountAsync(organizationUnit, input.Filter); - if (count > 0) - { - var roles = await _organizationUnitRepository.GetUnaddedRolesAsync - ( - organizationUnit, - maxResultCount: input.PageSize, - skipCount: input.SkipCount, - filter: input.Filter - ); - listResult = ObjectMapper.Map, List>(roles); - } - - return new PagedResultDto(count, listResult); - } - - #region 私有方法 - - private List ConvertToTree( - List list, - Guid? Id = null) - { - var result = new List(); - var childList = Children(list, Id); - foreach (var item in childList) - { - var tree = new TreeOutput - { - Key = item.Id, - Title = item.DisplayName, - Children = ConvertToTree(list, item.Id) - }; - result.Add(tree); - } - - return result; - } - - private List Children( - List list, - Guid? Id) - { - var childList = list.Where(x => x.ParentId == Id).ToList(); - return childList; - } - - #endregion -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs deleted file mode 100644 index 32d04a40..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RoleAppService.cs +++ /dev/null @@ -1,87 +0,0 @@ -namespace Lion.AbpPro.Roles -{ - [Authorize] - public class RoleAppService : AbpProAppService, IRoleAppService - { - private readonly IIdentityRoleAppService _identityRoleAppService; - - private readonly IIdentityRoleRepository _roleRepository; - - public RoleAppService( - IIdentityRoleAppService identityRoleAppService, - IIdentityRoleRepository roleRepository) - { - _identityRoleAppService = identityRoleAppService; - - _roleRepository = roleRepository; - } - - /// - /// 获取所有角色 - /// - - public async Task> AllListAsync() - { - List source = - await _roleRepository.GetListAsync() - .ConfigureAwait(continueOnCapturedContext: false); - return new ListResultDto( - base.ObjectMapper.Map, List>(source)); - } - - /// - /// 分页查询角色 - /// - /// - /// - public async Task> ListAsync(PagingRoleListInput input) - { - var request = new GetIdentityRolesInput - { - Filter = input.Filter?.Trim(), MaxResultCount = input.PageSize, - SkipCount = input.SkipCount - }; - List list = await _roleRepository - .GetListAsync(request.Sorting, request.MaxResultCount, request.SkipCount, - request.Filter) - .ConfigureAwait(continueOnCapturedContext: false); - return new PagedResultDto( - await _roleRepository.GetCountAsync(request.Filter) - .ConfigureAwait(continueOnCapturedContext: false), - base.ObjectMapper.Map, List>(list)); - } - - - /// - /// 创建角色 - /// - /// - /// - [Authorize(IdentityPermissions.Roles.Create)] - public async Task CreateAsync(IdentityRoleCreateDto input) - { - return await _identityRoleAppService.CreateAsync(input); - } - - /// - /// 更新角色 - /// - /// - /// - [Authorize(IdentityPermissions.Roles.Update)] - public async Task UpdateAsync(UpdateRoleInput input) - { - return await _identityRoleAppService.UpdateAsync(input.RoleId, input.RoleInfo); - } - - - /// - /// 删除角色 - /// - [Authorize(IdentityPermissions.Roles.Delete)] - public async Task DeleteAsync(IdInput input) - { - await _identityRoleAppService.DeleteAsync(input.Id); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs deleted file mode 100644 index 4ccbf385..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Roles/RolePermissionAppService.cs +++ /dev/null @@ -1,117 +0,0 @@ -namespace Lion.AbpPro.Roles -{ - [Authorize] - public class RolePermissionAppService : AbpProAppService, IRolePermissionAppService - { - private readonly IPermissionAppService _rolePermissionAppService; - private readonly PermissionOptions _permissionOptions; - - public RolePermissionAppService(IPermissionAppService rolePermissionAppService, IOptions permissionOptions) - { - _rolePermissionAppService = rolePermissionAppService; - _permissionOptions = permissionOptions.Value; - } - - /// - /// 获取所有权限 - /// - /// - public async Task GetPermissionAsync(GetPermissionInput input) - { - var permissions = - await _rolePermissionAppService.GetAsync(input.ProviderName, input.ProviderKey); - return BuildTreeData(permissions.Groups); - } - - /// - /// 更新权限 - /// - /// - [Authorize(IdentityPermissions.Roles.ManagePermissions)] - public async Task UpdatePermissionAsync(UpdateRolePermissionsInput input) - { - await _rolePermissionAppService.UpdateAsync(input.ProviderName, input.ProviderKey, - input.UpdatePermissionsDto); - } - - /// - /// 生成权限树 - /// - /// - /// - private PermissionOutput BuildTreeData(List input) - { - var result = new PermissionOutput(); - - - var permissions = new List(); - - foreach (var group in input) - { - if (_permissionOptions.IsExclude(group.Name)) continue; - - // 获取分组信息 - var groupPermission = new PermissionTreeDto - { - Key = group.Name, - Title = group.Name == "AbpIdentity" - ? L[$"Permission:SystemManagement"] - : group.DisplayName - }; - result.Grants.Add(group.Name); - // 获取所有已授权和未授权权限集合 - foreach (var item in group.Permissions) - { - if (_permissionOptions.IsExclude(item.Name)) continue; - - result.AllGrants.Add(item.Name); - if (item.IsGranted) - { - result.Grants.Add(item.Name); - } - else - { - // 只要没有授权的,就移除顶级的分组 - result.Grants.Remove(group.Name); - result.Grants.Remove(item.ParentName); - } - } - - // 递归菜单 - var childTreeMenu = RecursionMenu(group.Permissions, null); - - groupPermission.Children.AddRange(childTreeMenu.Children); - - permissions.Add(groupPermission); - } - - - result.Permissions = permissions; - return result; - } - - - /// - /// 递归菜单 - /// - private PermissionTreeDto RecursionMenu(List permissionGrantInfoDtos, - string parentName) - { - var tree = new PermissionTreeDto(); - var permissions = permissionGrantInfoDtos - .Where(e => e.ParentName == parentName && !_permissionOptions.IsExclude(e.Name)).ToList(); - foreach (var item in permissions) - { - var child = new PermissionTreeDto - { - Key = item.Name, - Title = item.DisplayName - }; - child.Children.AddRange(RecursionMenu(permissionGrantInfoDtos, item.Name).Children); - tree.Children.Add(child); - } - - return tree; - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs deleted file mode 100644 index b7e7e2af..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Settings/SettingAppService.cs +++ /dev/null @@ -1,94 +0,0 @@ -namespace Lion.AbpPro.Settings -{ - [Authorize(policy: AbpProPermissions.SystemManagement.Setting)] - public class SettingAppService : AbpProAppService, ISettingAppService - { - private readonly ISettingDefinitionManager _settingDefinitionManager; - private readonly ISettingManager _settingManager; - private readonly IStringLocalizerFactory _factory; - - public SettingAppService( - ISettingDefinitionManager settingDefinitionManager, - ISettingManager settingManager, - IStringLocalizerFactory factory) - { - _settingDefinitionManager = settingDefinitionManager; - _settingManager = settingManager; - _factory = factory; - } - - public async Task> GetAsync() - { - var allSettings = _settingDefinitionManager.GetAll().ToList(); - var settings = allSettings - .Where(e => e.Properties.ContainsKey(AbpProSettings.Group.Default)).ToList(); - - var settingOutput = settings - .GroupBy(e => e.Properties[AbpProSettings.Group.Default].ToString()).Select(s => - new SettingOutput - { - Group = s.Key, - GroupDisplayName = _factory.CreateDefaultOrNull()[s.Key] - }).ToList(); - - foreach (var item in settingOutput) - { - var currentSettings = settings.Where(e => e.Properties.ContainsValue(item.Group)); - foreach (var itemDefinition in currentSettings) - { - var value = await SettingProvider.GetOrNullAsync(itemDefinition.Name); - var type = itemDefinition.Properties - .FirstOrDefault(f => f.Key == AbpProSettings.ControlType.Default).Value - .ToString(); - - item.SettingItemOutput.Add(new SettingItemOutput( - itemDefinition.Name, - itemDefinition.DisplayName.Localize(_factory), - value, - type, - itemDefinition.Description.Localize(_factory))); - } - } - - return await Task.FromResult(settingOutput); - } - - public async Task UpdateAsync(UpdateSettingInput input) - { - foreach (var kv in input.Values) - { - // 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)) - { - continue; - } - - string name = kv.Key.RemovePreFix(AbpProSettings.Prefix); - var setting = _settingDefinitionManager.GetOrNull(name); - if (setting == null) - { - continue; - } - - await SetSetting(setting, kv.Value); - } - } - - private Task SetSetting(SettingDefinition setting, string value) - { - if (setting.Providers.Any(p => p == UserSettingValueProvider.ProviderName)) - { - return _settingManager.SetForCurrentUserAsync(setting.Name, value); - } - - if (setting.Providers.Any(p => p == TenantSettingValueProvider.ProviderName)) - { - return _settingManager.SetForCurrentTenantAsync(setting.Name, value); - } - - - return _settingManager.SetGlobalAsync(setting.Name, value); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs deleted file mode 100644 index 44b7d1e1..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Tenants/VoloTenantAppService.cs +++ /dev/null @@ -1,73 +0,0 @@ -namespace Lion.AbpPro.Tenants -{ - [Authorize] - public class VoloTenantAppService : AbpProAppService, IVoloTenantAppService - { - private readonly IAbpTenantAppService _abpTenantAppService; - private readonly ITenantAppService _tenantAppService; - - public VoloTenantAppService( - IAbpTenantAppService abpTenantAppService, - ITenantAppService tenantAppService) - { - _abpTenantAppService = abpTenantAppService; - _tenantAppService = tenantAppService; - } - - public async Task FindTenantByNameAsync(FindTenantByNameInput input) - { - return await _abpTenantAppService.FindTenantByNameAsync(input.Name); - } - - - public Task> ListAsync(PagingTenantInput input) - { - var request = new GetTenantsInput - { - Filter = input.Filter, SkipCount = input.SkipCount, MaxResultCount = input.PageSize - }; - return _tenantAppService.GetListAsync(request); - } - - [Authorize(policy:TenantManagementPermissions.Tenants.Create)] - public Task CreateAsync(TenantCreateDto input) - { - return _tenantAppService.CreateAsync(input); - } - - [Authorize(policy:TenantManagementPermissions.Tenants.Update)] - public Task UpdateAsync(UpdateTenantInput input) - { - var request = new TenantUpdateDto() - { - Name = input.Name.Trim() - }; - return _tenantAppService.UpdateAsync(input.Id, request); - } - - [Authorize(policy:TenantManagementPermissions.Tenants.Delete)] - public Task DeleteAsync(IdInput input) - { - return _tenantAppService.DeleteAsync(input.Id); - } - - [Authorize(TenantManagementPermissions.Tenants.ManageConnectionStrings)] - public Task GetDefaultConnectionStringAsync(IdInput input) - { - return _tenantAppService.GetDefaultConnectionStringAsync(input.Id); - } - - [Authorize(TenantManagementPermissions.Tenants.ManageConnectionStrings)] - public Task UpdateDefaultConnectionStringAsync(UpdateConnectionStringInput input) - { - return _tenantAppService.UpdateDefaultConnectionStringAsync(input.Id, - input.ConnectionString); - } - - [Authorize(TenantManagementPermissions.Tenants.ManageConnectionStrings)] - public Task DeleteDefaultConnectionStringAsync(IdInput input) - { - return _tenantAppService.DeleteDefaultConnectionStringAsync(input.Id); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs deleted file mode 100644 index 5e524e88..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Users/AccountAppService.cs +++ /dev/null @@ -1,112 +0,0 @@ -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 Microsoft.IdentityModel.Tokens; -using Volo.Abp; -using Volo.Abp.Identity; -using Volo.Abp.MultiTenancy; -using Volo.Abp.Security.Claims; - - -namespace Lion.AbpPro.Users -{ - public class AccountAppService : AbpProAppService, IAccountAppService - { - private readonly IdentityUserManager _userManager; - private readonly JwtOptions _jwtOptions; - private readonly Microsoft.AspNetCore.Identity.SignInManager _signInManager; - - public AccountAppService( - IdentityUserManager userManager, - IOptionsSnapshot jwtOptions, - Microsoft.AspNetCore.Identity.SignInManager signInManager) - { - _userManager = userManager; - _jwtOptions = jwtOptions.Value; - _signInManager = signInManager; - } - - - 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); - } - - if (!result.Succeeded) - { - throw new BusinessException(AbpProDomainErrorCodes.UserOrPasswordMismatch); - } - - var user = await _userManager.FindByNameAsync(input.Name); - return await BuildResult(user); - } - - #region 私有方法 - - - private async Task BuildResult(IdentityUser user) - { - if (!user.IsActive) throw new BusinessException(AbpProDomainErrorCodes.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, - user.TenantId.ToString(), roles.ToList()); - var loginOutput = ObjectMapper.Map(user); - loginOutput.Token = token; - loginOutput.Roles = roles.ToList(); - return loginOutput; - } - - /// - /// 生成jwt token - /// - /// - private string GenerateJwt(Guid userId, string userName, string name, string email, - string tenantId, List roles) - { - var dateNow = DateTime.Now; - var expirationTime = dateNow + TimeSpan.FromHours(_jwtOptions.ExpirationTime); - var key = Encoding.ASCII.GetBytes(_jwtOptions.SecurityKey); - - var claims = new List - { - new Claim(JwtClaimTypes.Audience, _jwtOptions.Audience), - new Claim(JwtClaimTypes.Issuer, _jwtOptions.Issuer), - new Claim(AbpClaimTypes.UserId, userId.ToString()), - new Claim(AbpClaimTypes.Name, name), - new Claim(AbpClaimTypes.UserName, userName), - new Claim(AbpClaimTypes.Email, email), - new Claim(AbpClaimTypes.TenantId, tenantId) - }; - - foreach (var item in roles) - { - claims.Add(new Claim(JwtClaimTypes.Role, item)); - } - - var tokenDescriptor = new SecurityTokenDescriptor() - { - Subject = new ClaimsIdentity(claims), - Expires = expirationTime, - SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), - SecurityAlgorithms.HmacSha256Signature) - }; - var handler = new JwtSecurityTokenHandler(); - var token = handler.CreateToken(tokenDescriptor); - return handler.WriteToken(token); - } - - #endregion - } -} \ No newline at end of file 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.Application/Users/UserAppService.cs b/aspnet-core/services/src/Lion.AbpPro.Application/Users/UserAppService.cs deleted file mode 100644 index dc007f52..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Application/Users/UserAppService.cs +++ /dev/null @@ -1,147 +0,0 @@ -namespace Lion.AbpPro.Users -{ - [Authorize] - public class UserAppService : AbpProAppService, IUserAppService - { - private readonly IIdentityUserAppService _identityUserAppService; - private readonly IdentityUserManager _userManager; - private readonly IIdentityUserRepository _identityUserRepository; - private readonly IExcelExporter _excelExporter; - private readonly IOptions _options; - public UserAppService( - IIdentityUserAppService identityUserAppService, - IdentityUserManager userManager, - IIdentityUserRepository userRepository, - IExcelExporter excelExporter, - IOptions options) - { - _identityUserAppService = identityUserAppService; - _userManager = userManager; - _identityUserRepository = userRepository; - _excelExporter = excelExporter; - _options = options; - } - - /// - /// 分页查询用户 - /// - public async Task> ListAsync(PagingUserListInput input) - { - var request = new GetIdentityUsersInput - { - Filter = input.Filter?.Trim(), - MaxResultCount = input.PageSize, - SkipCount = input.SkipCount, - Sorting = " LastModificationTime desc" - }; - - var count = await _identityUserRepository.GetCountAsync(request.Filter); - var source = await _identityUserRepository - .GetListAsync(request.Sorting, request.MaxResultCount, request.SkipCount, request.Filter); - - return new PagedResultDto(count, - base.ObjectMapper.Map, List>(source)); - } - - /// - /// 用户导出列表 - /// - /// - [Authorize(AbpProPermissions.SystemManagement.UserExport)] - public async Task ExportAsync(PagingUserListInput input) - { - var request = new GetIdentityUsersInput - { - Filter = input.Filter?.Trim(), - MaxResultCount = input.PageSize, - SkipCount = input.SkipCount, - Sorting = " LastModificationTime desc" - }; - var source = await _identityUserRepository - .GetListAsync(request.Sorting, request.MaxResultCount, request.SkipCount, request.Filter); - var result = ObjectMapper.Map, List>(source); - var bytes = await _excelExporter.ExportAsByteArray(result); - return new XlsxFileResult(bytes: bytes, fileDownloadName: $"用户导出列表{DateTime.Now:yyyyMMdd}"); - } - - /// - /// 新增用户 - /// - /// - /// - [Authorize(IdentityPermissions.Users.Create)] - public async Task CreateAsync(IdentityUserCreateDto input) - { - // abp 5.0 之后新增字段,是否运行用户登录,默认设置为true - input.IsActive = true; - return await _identityUserAppService.CreateAsync(input); - } - - /// - /// 更新用户 - /// - /// - /// - [Authorize(IdentityPermissions.Users.Update)] - public virtual async Task UpdateAsync(UpdateUserInput input) - { - input.UserInfo.IsActive = true; - return await _identityUserAppService.UpdateAsync(input.UserId, input.UserInfo); - } - - /// - /// 删除用户 - /// - [Authorize(IdentityPermissions.Users.Delete)] - public virtual async Task DeleteAsync(IdInput input) - { - await _identityUserAppService.DeleteAsync(input.Id); - } - - /// - /// 获取用户角色信息 - /// - /// - public async Task> GetRoleByUserId(IdInput input) - { - return await _identityUserAppService.GetRolesAsync(input.Id); - } - - /// - /// 修改密码 - /// - /// - /// - public async Task ChangePasswordAsync(ChangePasswordInput input) - { - await _options.SetAsync(); - var identityUser = await _userManager.GetByIdAsync(base.CurrentUser.GetId()); - IdentityResult result; - if (identityUser.PasswordHash == null) - { - result = await _userManager.AddPasswordAsync(identityUser, input.NewPassword); - } - else - { - result = await _userManager.ChangePasswordAsync(identityUser, input.CurrentPassword, input.NewPassword); - } - - return !result.Succeeded - ? throw new UserFriendlyException(result?.Errors?.FirstOrDefault()?.Description) - : result.Succeeded; - } - - /// - /// 锁定用户 - /// - /// - /// - [Authorize(AbpProPermissions.SystemManagement.UserEnable)] - public async Task LockAsync(LockUserInput input) - { - var identityUser = await _userManager.GetByIdAsync(input.UserId); - identityUser.SetIsActive(input.Locked); - await _userManager.UpdateAsync(identityUser); - } - } -} 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/Data/Seeds/AbpSettingDataSeedContributor.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs deleted file mode 100644 index 833805ae..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/AbpSettingDataSeedContributor.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Lion.AbpPro.Data.Seeds -{ - public class AbpSettingDataSeedContributor : IDataSeedContributor, ITransientDependency - { - private readonly ISettingManager _settingManager; - private const string DefaultLanguageKey = "Abp.Localization.DefaultLanguage"; - private const string DefaultLanguage = "zh-Hans"; - public AbpSettingDataSeedContributor(ISettingManager settingManager) - { - _settingManager = settingManager; - } - - public async Task SeedAsync(DataSeedContext context) - { - // 设置默认语言 - await _settingManager.SetGlobalAsync(DefaultLanguageKey, DefaultLanguage); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs b/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs deleted file mode 100644 index 35558a7c..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.Domain/Data/Seeds/UserDataSeedContributor.cs +++ /dev/null @@ -1,34 +0,0 @@ -namespace Lion.AbpPro.Data.Seeds -{ - public class UserDataSeedContributor : IDataSeedContributor, ITransientDependency - { - private readonly IdentityUserManager _userManager; - private readonly IdentityRoleManager _identityRoleManager; - - public UserDataSeedContributor( - IdentityUserManager userManager, - IdentityRoleManager identityRoleManager) - { - _userManager = userManager; - _identityRoleManager = identityRoleManager; - } - - public async Task SeedAsync(DataSeedContext context) - { - // abp 默认会锁定当前用户 - const string adminUserName = "admin"; - var adminUser = await _userManager.FindByNameAsync(adminUserName); - if (adminUser != null) - { - await _userManager.SetLockoutEnabledAsync(adminUser, false); - } - - var role = await _identityRoleManager.FindByNameAsync(adminUserName); - if (role != null) - { - role.IsDefault = true; - await _identityRoleManager.UpdateAsync(role); - } - } - } -} \ No newline at end of file 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/Controllers/Systems/AccountController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AccountController.cs deleted file mode 100644 index f7ed6f4d..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AccountController.cs +++ /dev/null @@ -1,22 +0,0 @@ -using IAccountAppService = Lion.AbpPro.Users.IAccountAppService; - -namespace Lion.AbpPro.Controllers.Systems -{ - public class AccountController : AbpProController,IAccountAppService - { - private readonly IAccountAppService _accountAppService; - - public AccountController(IAccountAppService accountAppService) - { - _accountAppService = accountAppService; - } - - - [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/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AuditLogController.cs deleted file mode 100644 index d286abee..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/AuditLogController.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace Lion.AbpPro.Controllers.Systems -{ - [Route("AuditLogs")] - public class AuditLogController : AbpProController,IAuditLogAppService - { - private readonly IAuditLogAppService _auditLogAppService; - - public AuditLogController(IAuditLogAppService auditLogAppService) - { - _auditLogAppService = auditLogAppService; - } - - [HttpPost("page")] - [SwaggerOperation(summary: "分页获取审计日志信息", Tags = new[] {"AuditLogs"})] - public Task> GetListAsync(PagingAuditLogListInput input) - { - return _auditLogAppService.GetListAsync(input); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs deleted file mode 100644 index 2cc6aee2..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/OrganizationUnitController.cs +++ /dev/null @@ -1,96 +0,0 @@ -namespace Lion.AbpPro.Controllers.Systems; - -[Route("OrganizationUnits")] -public class OrganizationUnitController : AbpProController, IOrganizationUnitAppService -{ - private readonly IOrganizationUnitAppService _organizationUnitAppService; - - public OrganizationUnitController(IOrganizationUnitAppService organizationUnitAppService) - { - _organizationUnitAppService = organizationUnitAppService; - } - - [HttpPost("tree")] - [SwaggerOperation(summary: "获取组织机构树", Tags = new[] { "OrganizationUnits" })] - public Task> GetTreeAsync() - { - return _organizationUnitAppService.GetTreeAsync(); - } - - [HttpPost("create")] - [SwaggerOperation(summary: "创建组织机构", Tags = new[] { "OrganizationUnits" })] - public Task CreateAsync(CreateOrganizationUnitInput input) - { - return _organizationUnitAppService.CreateAsync(input); - } - - [HttpPost("delete")] - [SwaggerOperation(summary: "删除组织机构", Tags = new[] { "OrganizationUnits" })] - public Task DeleteAsync(IdInput input) - { - return _organizationUnitAppService.DeleteAsync(input); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "编辑组织机构", Tags = new[] { "OrganizationUnits" })] - public Task UpdateAsync(UpdateOrganizationUnitInput input) - { - return _organizationUnitAppService.UpdateAsync(input); - } - - [HttpPost("addRoleToOrganizationUnitAsync")] - [SwaggerOperation(summary: "向组织机构添加角色", Tags = new[] { "OrganizationUnits" })] - public Task AddRoleToOrganizationUnitAsync(AddRoleToOrganizationUnitInput input) - { - return _organizationUnitAppService.AddRoleToOrganizationUnitAsync(input); - } - - [HttpPost("removeRoleFromOrganizationUnitAsync")] - [SwaggerOperation(summary: "向组织机构删除角色", Tags = new[] { "OrganizationUnits" })] - public Task RemoveRoleFromOrganizationUnitAsync(RemoveRoleToOrganizationUnitInput input) - { - return _organizationUnitAppService.RemoveRoleFromOrganizationUnitAsync(input); - } - - [HttpPost("addUserToOrganizationUnit")] - [SwaggerOperation(summary: "向组织机构添加用户", Tags = new[] { "OrganizationUnits" })] - public Task AddUserToOrganizationUnitAsync(AddUserToOrganizationUnitInput input) - { - return _organizationUnitAppService.AddUserToOrganizationUnitAsync(input); - } - - [HttpPost("removeUserFromOrganizationUnit")] - [SwaggerOperation(summary: "向组织机构删除用户", Tags = new[] { "OrganizationUnits" })] - public Task RemoveUserFromOrganizationUnitAsync(RemoveUserToOrganizationUnitInput input) - { - return _organizationUnitAppService.RemoveUserFromOrganizationUnitAsync(input); - } - - [HttpPost("getUsers")] - [SwaggerOperation(summary: "分页获取组织机构下用户", Tags = new[] { "OrganizationUnits" })] - public Task> GetUsersAsync(GetOrganizationUnitUserInput input) - { - return _organizationUnitAppService.GetUsersAsync(input); - } - - [HttpPost("getRoles")] - [SwaggerOperation(summary: "分页获取组织机构下角色", Tags = new[] { "OrganizationUnits" })] - public Task> GetRolesAsync(GetOrganizationUnitRoleInput input) - { - return _organizationUnitAppService.GetRolesAsync(input); - } - - [HttpPost("getUnAddUsers")] - [SwaggerOperation(summary: "获取不在组织机构的用户", Tags = new[] { "OrganizationUnits" })] - public Task> GetUnAddUsersAsync(GetUnAddUserInput input) - { - return _organizationUnitAppService.GetUnAddUsersAsync(input); - } - - [HttpPost("getUnAddRoles")] - [SwaggerOperation(summary: "获取不在组织机构的角色", Tags = new[] { "OrganizationUnits" })] - public Task> GetUnAddRolessAsync(GetUnAddRoleInput input) - { - return _organizationUnitAppService.GetUnAddRolessAsync(input); - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs deleted file mode 100644 index 663cdd58..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/PermissionController.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Lion.AbpPro.Controllers.Systems -{ - [Route("Permissions")] - public class PermissionController : AbpProController,IRolePermissionAppService - { - private readonly IRolePermissionAppService _rolePermissionAppService; - - public PermissionController(IRolePermissionAppService rolePermissionAppService) - { - _rolePermissionAppService = rolePermissionAppService; - } - - - [HttpPost("tree")] - [SwaggerOperation(summary: "获取角色权限", Tags = new[] { "Permissions" })] - public Task GetPermissionAsync(GetPermissionInput input) - { - return _rolePermissionAppService.GetPermissionAsync(input); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "更新角色", Tags = new[] { "Permissions" })] - public Task UpdatePermissionAsync(UpdateRolePermissionsInput input) - { - return _rolePermissionAppService.UpdatePermissionAsync(input); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs deleted file mode 100644 index b814c5a8..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/RoleController.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; - -namespace Lion.AbpPro.Controllers.Systems -{ - [Route("Roles")] - public class RoleController : AbpProController, IRoleAppService - { - private readonly IRoleAppService _roleAppService; - - public RoleController(IRoleAppService roleAppService) - { - _roleAppService = roleAppService; - } - - [HttpPost("all")] - [SwaggerOperation(summary: "获取所有角色", Tags = new[] { "Roles" })] - public Task> AllListAsync() - { - return _roleAppService.AllListAsync(); - } - - [HttpPost("page")] - [SwaggerOperation(summary: "分页获取角色", Tags = new[] { "Roles" })] - public Task> ListAsync(PagingRoleListInput input) - { - return _roleAppService.ListAsync(input); - } - - [HttpPost("create")] - [SwaggerOperation(summary: "创建角色", Tags = new[] { "Roles" })] - public Task CreateAsync(IdentityRoleCreateDto input) - { - return _roleAppService.CreateAsync(input); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "更新角色", Tags = new[] { "Roles" })] - public Task UpdateAsync(UpdateRoleInput input) - { - return _roleAppService.UpdateAsync(input); - } - - - [HttpPost("delete")] - [SwaggerOperation(summary: "删除角色", Tags = new[] { "Roles" })] - public Task DeleteAsync(IdInput input) - { - return _roleAppService.DeleteAsync(input); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs deleted file mode 100644 index a1ac51c0..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/SettingController.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Lion.AbpPro.Controllers.Systems -{ - [Route("Settings")] - public class SettingController : AbpProController,ISettingAppService - { - private readonly ISettingAppService _settingAppService; - - public SettingController(ISettingAppService settingAppService) - { - _settingAppService = settingAppService; - } - - [HttpPost("all")] - [SwaggerOperation(summary: "获取所有Setting", Tags = new[] { "Settings" })] - public async Task> GetAsync() - { - return await _settingAppService.GetAsync(); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "更新Setting", Tags = new[] { "Settings" })] - public async Task UpdateAsync(UpdateSettingInput input) - { - await _settingAppService.UpdateAsync(input); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs deleted file mode 100644 index 1f324514..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Systems/UserController.cs +++ /dev/null @@ -1,70 +0,0 @@ -namespace Lion.AbpPro.Controllers.Systems -{ - [Route("Users")] - public class UserController : AbpProController, IUserAppService - { - private readonly IUserAppService _userAppService; - - public UserController(IUserAppService userAppService) - { - _userAppService = userAppService; - } - - [HttpPost("page")] - [SwaggerOperation(summary: "分页获取用户信息", Tags = new[] { "Users" })] - public Task> ListAsync(PagingUserListInput input) - { - return _userAppService.ListAsync(input); - } - [HttpPost("export")] - [SwaggerOperation(summary: "导出用户列表", Tags = new[] { "Users" })] - [ProducesResponseType(typeof(FileContentResult), (int)HttpStatusCode.OK)] - public Task ExportAsync(PagingUserListInput input) - { - return _userAppService.ExportAsync(input); - } - - [HttpPost("create")] - [SwaggerOperation(summary: "创建用户", Tags = new[] { "Users" })] - public Task CreateAsync(IdentityUserCreateDto input) - { - return _userAppService.CreateAsync(input); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "编辑用户", Tags = new[] { "Users" })] - public Task UpdateAsync(UpdateUserInput input) - { - return _userAppService.UpdateAsync(input); - } - - [HttpPost("delete")] - [SwaggerOperation(summary: "删除用户", Tags = new[] { "Users" })] - public Task DeleteAsync(IdInput input) - { - return _userAppService.DeleteAsync(input); - } - - - [HttpPost("role")] - [SwaggerOperation(summary: "获取用户角色信息", Tags = new[] { "Users" })] - public Task> GetRoleByUserId(IdInput input) - { - return _userAppService.GetRoleByUserId(input); - } - - [HttpPost("changePassword")] - [SwaggerOperation(summary: "修改当前用户密码", Tags = new[] { "Users" })] - public Task ChangePasswordAsync(ChangePasswordInput input) - { - return _userAppService.ChangePasswordAsync(input); - } - - [HttpPost("lock")] - [SwaggerOperation(summary: "锁定用户", Tags = new[] { "Users" })] - public Task LockAsync(LockUserInput input) - { - return _userAppService.LockAsync(input); - } - } -} \ No newline at end of file diff --git a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs b/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs deleted file mode 100644 index a43aa665..00000000 --- a/aspnet-core/services/src/Lion.AbpPro.HttpApi/Controllers/Tenants/TenantController.cs +++ /dev/null @@ -1,77 +0,0 @@ -using Lion.AbpPro.Tenants.Dtos; -using Lion.AbpPro.Tenants; -using Volo.Abp.AspNetCore.Mvc.MultiTenancy; - -namespace Lion.AbpPro.Controllers.Tenants -{ - [Route("Tenants")] - public class TenantController : AbpProController, IVoloTenantAppService - { - private readonly IVoloTenantAppService _voloTenantAppService; - - public TenantController(IVoloTenantAppService voloTenantAppService) - { - _voloTenantAppService = voloTenantAppService; - } - - [HttpPost("find")] - [SwaggerOperation(summary: "通过名称获取租户信息", Tags = new[] {"Tenants"})] - public Task FindTenantByNameAsync(FindTenantByNameInput input) - { - return _voloTenantAppService.FindTenantByNameAsync(input); - } - - [HttpPost("page")] - [SwaggerOperation(summary: "分页获取租户信息", Tags = new[] { "Tenants" })] - public Task> ListAsync(PagingTenantInput input) - { - return _voloTenantAppService.ListAsync(input); - } - - [HttpPost("create")] - [SwaggerOperation(summary: "创建租户", Tags = new[] { "Tenants" })] - public Task CreateAsync(TenantCreateDto input) - { - return _voloTenantAppService.CreateAsync(input); - } - - [HttpPost("update")] - [SwaggerOperation(summary: "更新租户", Tags = new[] { "Tenants" })] - public Task UpdateAsync(UpdateTenantInput input) - { - var request = new TenantUpdateDto() - { - Name = input.Name.Trim() - }; - return _voloTenantAppService.UpdateAsync(input); - } - - [HttpPost("delete")] - [SwaggerOperation(summary: "删除租户", Tags = new[] { "Tenants" })] - public Task DeleteAsync(IdInput input) - { - return _voloTenantAppService.DeleteAsync(input); - } - - [HttpPost("getConnectionString")] - [SwaggerOperation(summary: "获取租户连接字符串", Tags = new[] { "Tenants" })] - public Task GetDefaultConnectionStringAsync(IdInput input) - { - return _voloTenantAppService.GetDefaultConnectionStringAsync(input); - } - - [HttpPost("updateConnectionString")] - [SwaggerOperation(summary: "更新租户连接字符串", Tags = new[] { "Tenants" })] - public Task UpdateDefaultConnectionStringAsync(UpdateConnectionStringInput input) - { - return _voloTenantAppService.UpdateDefaultConnectionStringAsync(input); - } - - [HttpPost("deleteConnectionString")] - [SwaggerOperation(summary: "删除租户连接字符串", Tags = new[] { "Tenants" })] - public Task DeleteDefaultConnectionStringAsync(IdInput input) - { - return _voloTenantAppService.DeleteDefaultConnectionStringAsync(input); - } - } -} \ No newline at end of file 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(); + } } }