From 68e7f3cb5d45bd2b9bd11c3295c931b4a0a15e87 Mon Sep 17 00:00:00 2001
From: wangzewei <1585955375@qq.com>
Date: Thu, 27 May 2021 19:16:42 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90Delete=EF=BC=9A=E5=88=A0=E9=99=A4?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=B1=BB=E5=BA=93=EF=BC=8C=E5=B0=86=E5=85=AC?=
=?UTF-8?q?=E5=85=B1=E7=B1=BB=E5=BA=93=E6=89=93=E5=8C=85=E6=88=90=E5=AF=B9?=
=?UTF-8?q?=E5=BA=94=E7=9A=84nuget,=E3=80=91=20=E3=80=90Add=EF=BC=9A?=
=?UTF-8?q?=E5=87=86=E5=A4=87=E4=BB=8B=E5=85=A5QQ=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E3=80=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Destiny.Core.Flow.sln | 107 +--
.../destiny-core-flowadmin-autoscaler.yaml | 13 +
.../Controllers/DocumentTypeController.cs | 13 +-
.../Controllers/Menu/MenuController.cs | 423 +++++------
.../Destiny.Core.Flow.API.csproj | 13 +-
.../Destiny.Core.Flow.API.xml | 6 +
.../PublishProfiles/FolderProfile.pubxml.user | 2 +-
src/Destiny.Core.Flow.API/Startup.cs | 15 +
.../Startups/AppWebModule.cs | 3 +-
src/Destiny.Core.Flow.Aop/AopModule .cs | 44 --
.../Destiny.Core.Flow.Aop.csproj | 12 -
.../NonGlobalAopTranAttribute.cs | 34 -
.../Api/AdminControllerBase.cs | 15 -
.../Api/ApiControllerBase.cs | 13 -
.../BaseController.cs | 24 -
.../Destiny.Core.Flow.AspNetCore.csproj | 17 -
.../Extensions/HttpRequestExtensions.cs | 32 -
.../Extensions/ModelStateExtensions.cs | 80 --
.../Middleware/ExceptionHandlingMiddleware.cs | 94 ---
.../Module/AspNetCoreModule.cs | 10 -
.../Module/AspNetCoreModuleBase.cs | 62 --
.../Module/DestinyCoreModule.cs | 36 -
.../Module/MvcModuleBase.cs | 60 --
.../Mvc/Filters/AuditLogFilterAttribute.cs | 83 --
.../Mvc/Filters/HandleException.cs | 38 -
.../Filters/PermissionAuthorizationFilter.cs | 72 --
.../Mvc/Filters/UnitOfWorkAtrrribute.cs | 67 --
.../Mvc/Filters/ValidationFilterAttribute.cs | 53 --
.../Ui/AjaxResult.cs | 89 ---
.../Ui/AjaxResultExtensions.cs | 65 --
.../Ui/JsonResultExtensions.cs | 23 -
.../Ui/PageList.cs | 30 -
.../Ui/PageListExtensions.cs | 22 -
.../Ui/TreeModel.cs | 47 --
.../Ui/TreeModelExtensions.cs | 24 -
...tiny.Core.Flow.AuthenticationCenter.csproj | 7 +-
.../Startups/IdentityModule.cs | 5 +-
.../Views/Account/Login.cshtml | 2 +-
.../AutoMapperModule.cs | 62 --
.../Destiny.Core.Flow.AutoMapper.csproj | 16 -
.../CSRedisCache.cs | 57 --
.../CSRedisModule.cs | 31 -
.../CacheHelper.cs | 157 ----
.../Destiny.Core.Flow.Caching.CSRedis.csproj | 17 -
src/Destiny.Core.Flow.Caching/CacheDefault.cs | 135 ----
.../CacheHandlerBase.cs | 16 -
src/Destiny.Core.Flow.Caching/CacheOptions.cs | 6 -
.../CachingDefaultModule.cs | 21 -
.../Destiny.Core.Flow.Caching.csproj | 16 -
src/Destiny.Core.Flow.Caching/ICache.cs | 94 ---
.../CodeData.cs | 29 -
.../CodeGeneratorModeule.cs | 22 -
.../CodeGeneratorService.cs | 29 -
.../Destiny.Core.Flow.CodeGenerator.csproj | 41 -
.../EntityMetadata.cs | 84 --
.../ICodeGenerator.cs | 60 --
.../ICodeGeneratorService.cs | 21 -
.../ProjectMetadata.cs | 47 --
.../PropertyMetadata.cs | 66 --
.../RazorCodeGenerator.cs | 302 --------
.../Templates/Controller.cshtml | 97 ---
.../Templates/Entity.cshtml | 130 ----
.../Templates/EntityConfiguration.cshtml | 38 -
.../Templates/IService.cshtml | 60 --
.../Templates/InputDto.cshtml | 39 -
.../Templates/OutputDto.cshtml | 39 -
.../Templates/PageListDto.cshtml | 40 -
.../Templates/ServiceImpl.cshtml | 94 ---
.../TypeHelper.cs | 97 ---
.../Destiny.Core.Flow.Consul.csproj | 16 -
.../DestinyConsulModule.cs | 94 ---
.../Destiny.Core.Flow.Dtos.csproj | 7 +-
.../DatabaseTypeAttribute.cs | 22 -
.../DbContextExtensions.cs | 23 -
.../DbContextOptionsBuilderExtensions..cs | 22 -
.../DbContexts/DbContextBase.cs | 215 ------
.../DbContexts/DefaultDbContext.cs | 32 -
.../DbDrivens/MySqlDbContextDrivenProvider.cs | 26 -
.../SqlServerDbContextDrivenProvider.cs | 24 -
...stiny.Core.Flow.EntityFrameworkCore.csproj | 20 -
.../EntityFrameworkCoreModule.cs | 51 --
.../IDbContextDrivenProvider.cs | 29 -
.../Interceptor/AuditInterceptor.cs | 22 -
.../EntityMappingConfigurationOfModel.cs | 27 -
.../Mapping/IEntityMappingConfiguration.cs | 17 -
.../IEntityMappingConfigurationOfModel.cs | 12 -
.../Mapping/ModelBuilderExtenions.cs | 25 -
.../Repository.cs | 716 ------------------
.../Repositorys/DapperRepository.cs | 27 -
.../Repositorys/IDapperRepository.cs | 13 -
.../Repositorys/UnitOfWork.cs | 300 --------
.../Repositorys/UnitOfWorkExtensions.cs | 160 ----
.../ServiceExtensions.cs | 92 ---
.../Destiny.Core.Flow.FluentValidation.csproj | 16 -
.../FluentModelValidator.cs | 9 -
.../FluentValidationExtensions.cs | 109 ---
.../FluentValidationModelValidator.cs | 32 -
.../FluentValidationModuleBase.cs | 24 -
.../ServiceProviderValidatorFactory.cs | 23 -
.../Destiny.Core.Flow.GateWay.csproj | 19 -
src/Destiny.Core.Flow.GateWay/Program.cs | 20 -
.../Properties/launchSettings.json | 27 -
src/Destiny.Core.Flow.GateWay/Startup.cs | 36 -
.../appsettings.Development.json | 9 -
.../appsettings.json | 10 -
.../ocelotconfigure.json | 1 -
.../Destiny.Core.Flow.IServices.csproj | 2 +-
.../Destiny.Core.Flow.Identitys.csproj | 6 +-
...y.Core.Flow.IdentityServer.Entities.csproj | 4 +-
.../Destiny.Core.Flow.IdentityServer.csproj | 2 +-
.../Destiny.Core.Flow.Log4Net.csproj | 16 -
.../Log4NetLogger.cs | 128 ----
.../Log4NetModuleBase.cs | 18 -
.../Log4NetProvider.cs | 64 --
.../MNZ.CMS.Core.Log4Net.csproj | 16 -
src/Destiny.Core.Flow.Log4Net/log4net.config | 84 --
.../Destiny.Core.Flow.MiniProfiler.csproj | 18 -
.../MiniProfilerModule.cs | 36 -
.../Destiny.Core.Flow.Model.csproj | 3 +-
.../DbContexts/DefaultMongoDbContext.cs | 13 -
.../DbContexts/MongoDbContextBase.cs | 64 --
.../Destiny.Core.Flow.MongoDB.csproj | 16 -
.../FindFluentExtensions.cs | 27 -
.../FindFluentSortBy.cs | 66 --
.../Infrastructure/IMongoDbContextOptions.cs | 8 -
.../Metadata/Builders/MongoDBFilterBuilder.cs | 163 ----
.../MongoCollectionExtensions.cs | 40 -
.../MongoDBModuleBase.cs | 32 -
.../MongoDBServiceCollectionExtensions.cs | 20 -
.../MongoDbContextOptions.cs | 9 -
src/Destiny.Core.Flow.MongoDB/MongoEntity.cs | 11 -
.../Repositorys/IMongoDBRepository.cs | 54 --
.../Repositorys/MongoDBRepository.cs | 121 ---
.../Destiny.Core.Flow.Repository.csproj | 6 +-
.../Destiny.Core.Flow.SeriLog.csproj | 5 +-
.../Audit/AuditStore.cs | 1 -
.../Destiny.Core.Flow.Services.csproj | 11 +-
.../Destiny.Core.Flow.Swagger.csproj | 21 -
.../Filter/AutoRestSchemaFilter.cs | 27 -
.../Filter/TagDescriptionsDocumentFilter.cs | 13 -
.../SwaggerModule.cs | 144 ----
.../Destiny.Core.Flow.TestBase.csproj | 5 +-
.../Application/CrudServiceAsync.cs | 38 -
.../Application/ICrudServiceAsync.cs | 35 -
.../Attributes/Base/AttributeBase.cs | 9 -
.../Attributes/MongoDBTableAttribute.cs | 21 -
src/Destiny.Core.Flow/Audit/AuditChange.cs | 77 --
src/Destiny.Core.Flow/Audit/AuditEntry.cs | 68 --
src/Destiny.Core.Flow/Audit/AuditLog.cs | 74 --
.../Audit/AuditPropertysEntry.cs | 55 --
.../Audit/DataOperationType.cs | 10 -
.../Audit/DisableAuditingAttribute.cs | 15 -
.../Audit/Dto/AuditEntryDto.cs | 59 --
.../Audit/Dto/AuditEntryOutputPageDto.cs | 63 --
.../Audit/Dto/AuditLogOutputPageDto.cs | 54 --
.../Audit/Dto/AuditPropertyDto.cs | 45 --
.../Dto/AuditPropertyEntryOutputPageDto.cs | 44 --
.../Audit/EntityHistory/AuditHelper.cs | 157 ----
.../Audit/EntityHistory/IAuditHelper.cs | 22 -
src/Destiny.Core.Flow/Audit/IAuditStore.cs | 48 --
.../ConsulEntity/ServiceEntity.cs | 30 -
src/Destiny.Core.Flow/Data/ComnGuid.cs | 38 -
.../Data/Core/Collections/ITypeList.cs | 6 -
.../Data/Core/Collections/ITypeListOfModel.cs | 14 -
.../Data/Core/Collections/TypeList.cs | 110 ---
.../Data/Core/Function/FunctionAttribute.cs | 9 -
.../Data/Core/Function/FunctionInfo.cs | 13 -
src/Destiny.Core.Flow/Data/Dto/SelectItem.cs | 21 -
.../Data/LazyConcurrentDictionary.cs | 51 --
.../Dependency/DependencyAppModule.cs | 96 ---
.../Dependency/DependencyAttribute.cs | 28 -
.../Dependency/DictionaryScoped.cs | 49 --
.../Dependency/IScopedDependency.cs | 8 -
.../Dependency/IServiceProviderAccessor.cs | 12 -
.../Dependency/ISingletonDependency.cs | 10 -
.../Dependency/ITransientDependency.cs | 10 -
.../Dependency/IgnoreDependencyAttribute.cs | 12 -
src/Destiny.Core.Flow/Dependency/IocManage.cs | 67 --
.../Dependency/LazyFactory.cs | 13 -
.../Dependency/ObjectAccessor.cs | 23 -
.../Destiny.Core.Flow.csproj | 41 -
.../Disposables/IDisposable2.cs | 57 --
src/Destiny.Core.Flow/Entity/DatabaseType.cs | 23 -
.../Entity/DestinyContextOptionsBuilder.cs | 17 -
src/Destiny.Core.Flow/Entity/EntityBase.cs | 72 --
src/Destiny.Core.Flow/Entity/ICreatedTime.cs | 14 -
.../Entity/ICreationAudited.cs | 19 -
src/Destiny.Core.Flow/Entity/IDto.cs | 15 -
src/Destiny.Core.Flow/Entity/IEntity.cs | 10 -
.../Entity/IEntityExtensions.cs | 96 ---
.../Entity/IEntityOfModel.cs | 17 -
.../Entity/IFullAuditedEntityOfModel.cs | 16 -
src/Destiny.Core.Flow/Entity/IInputDto.cs | 14 -
.../Entity/IModificationAudited.cs | 19 -
.../Entity/IModificationTime.cs | 14 -
src/Destiny.Core.Flow/Entity/IOutputDto.cs | 31 -
src/Destiny.Core.Flow/Entity/IRepository.cs | 196 -----
src/Destiny.Core.Flow/Entity/ISeedData.cs | 18 -
src/Destiny.Core.Flow/Entity/ISoftDelete.cs | 12 -
src/Destiny.Core.Flow/Entity/IStateDto.cs | 25 -
src/Destiny.Core.Flow/Entity/IUnitOfWork.cs | 72 --
.../Entity/IUnitOfWorkAccessor.cs | 6 -
.../Entity/IUnitOfWorkManager.cs | 9 -
src/Destiny.Core.Flow/Entity/InputDto.cs | 7 -
.../Entity/InputWaitStateDto.cs | 6 -
.../Entity/Modules/MigrationModuleBase.cs | 60 --
src/Destiny.Core.Flow/Entity/OutputDto.cs | 9 -
src/Destiny.Core.Flow/Entity/SeedDataBase.cs | 54 --
src/Destiny.Core.Flow/Enums/Enums.cs | 183 -----
.../Events/Abstractions/IEventBase.cs | 21 -
.../Events/Abstractions/IEventHandlerBase.cs | 12 -
.../Events/CacheEventDataBase.cs | 21 -
src/Destiny.Core.Flow/Events/EventBase.cs | 37 -
.../Events/EventBus/IEventBus.cs | 24 -
.../Events/EventBus/IMediatorHandler.cs | 21 -
.../Events/EventBus/InMemoryBus.cs | 33 -
.../Events/EventBusExtensions.cs | 17 -
.../Events/EventHandlerBase.cs | 11 -
src/Destiny.Core.Flow/Events/EventQueue.cs | 31 -
.../Events/MediatorAppModule.cs | 25 -
src/Destiny.Core.Flow/Events/Notification.cs | 10 -
.../Events/NotificationHandlerBase.cs | 9 -
.../Exceptions/AppException.cs | 32 -
.../Exceptions/MessageBox.cs | 30 -
.../MissingTypeRegistrationException.cs | 20 -
.../ExpressionUtil/Expressionable.cs | 328 --------
.../ExpressionUtil/ExtensionMethods.cs | 72 --
.../ExpressionUtil/FilterBuilder.cs | 172 -----
.../Extensions/AutoMapperExtensions.cs | 92 ---
.../Extensions/BooleanWitnBoolExtensions.cs | 30 -
.../Extensions/CheckExtensions.cs | 164 ----
.../Extensions/ClaimsIdentityExtensions.cs | 230 ------
.../Extensions/CollectionExtensions.cs | 259 -------
.../Extensions/ComparableExtensions.cs | 13 -
.../Extensions/ControllerExtensions.cs | 25 -
.../Extensions/DateExtensions.cs | 34 -
.../Extensions/DbContextExtensions.cs | 35 -
.../Extensions/EntityEntryExtensions.cs | 54 --
.../Extensions/EntityExtensions.cs | 23 -
.../Extensions/EnumExtensions.cs | 38 -
.../Extensions/ExpressionExtensions.cs | 434 -----------
.../Extensions/ExpressionVisitorExtensions.cs | 48 --
.../Extensions/FileExtensions.cs | 26 -
.../Extensions/GetIPExtension.cs | 45 --
.../Extensions/GuidExtensions.cs | 62 --
.../Extensions/HashExtensions.cs | 79 --
.../Extensions/IdentityResultExtensions.cs | 39 -
.../Extensions/ObjectExtensions.cs | 140 ----
.../Extensions/QueryableExtensions.cs | 272 -------
.../Extensions/SecurityExtension.cs | 279 -------
.../Extensions/ServiceCollectionExtension.cs | 278 -------
.../ServiceCollectionObjectsExtensions.cs | 57 --
.../Extensions/ServiceProviderExtensions.cs | 234 ------
.../Extensions/StringExtensions.cs | 232 ------
.../Extensions/TypeExtensions.cs | 689 -----------------
.../Filter/Abstract/IFilterReauest.cs | 16 -
.../Filter/Abstract/IFilteredPagedRequest.cs | 27 -
.../Filter/Abstract/IOrderRequest.cs | 17 -
.../Filter/Abstract/IPagedRequest.cs | 21 -
.../Filter/Abstract/IPagedResult.cs | 12 -
.../Filter/CollectionPropertySorter.cs | 77 --
.../Filter/FilterCodeAttribute.cs | 23 -
.../Filter/FilterCondition.cs | 38 -
src/Destiny.Core.Flow/Filter/IResultData.cs | 7 -
.../Filter/OrderCondition.cs | 72 --
.../Filter/PageParameters.cs | 35 -
src/Destiny.Core.Flow/Filter/PageRequest.cs | 14 -
src/Destiny.Core.Flow/Filter/PageResult.cs | 38 -
.../Filter/PagedRequestModel.cs | 19 -
src/Destiny.Core.Flow/Filter/QueryFilter.cs | 48 --
.../Filter/QueryParameters.cs | 15 -
.../Filter/ResultBaseOfModel.cs | 9 -
src/Destiny.Core.Flow/Helpers/ArrayHelper.cs | 23 -
.../Helpers/DelegateHelper.cs | 44 --
src/Destiny.Core.Flow/Helpers/JsonHelper.cs | 324 --------
.../Helpers/ReflectHelper.cs | 27 -
.../Helpers/TypeNameHelper.cs | 174 -----
.../AllowedSigningAlgorithmsConverter.cs | 38 -
.../IdentityServer4/GrantType.cs | 21 -
.../IdentityServer4/GrantTypes.cs | 43 --
.../IdentityServer4/JwtClaimTypes.cs | 382 ----------
.../Mapping/AutoMapDirection.cs | 8 -
.../Mapping/AutoMapFromAttribute.cs | 18 -
.../Mapping/AutoMapToAttribute.cs | 18 -
.../Mapping/AutoMappingAttribute.cs | 27 -
src/Destiny.Core.Flow/Modules/AppModule.cs | 65 --
.../Modules/AppModuleExtensions.cs | 48 --
.../Modules/ApplicationContext.cs | 26 -
.../ApplicationInitializationExtensions.cs | 23 -
.../Modules/ConfigureServicesContext.cs | 60 --
.../ConfigureServicesContextExtenstions.cs | 14 -
.../Modules/DependsOnAttribute.cs | 30 -
src/Destiny.Core.Flow/Modules/IAppModule.cs | 28 -
.../Modules/IApplicationInitialization.cs | 10 -
.../Modules/IDependedTypesProvider.cs | 16 -
.../Modules/IModuleApplication.cs | 18 -
.../Modules/IStartupModuleRunner.cs | 15 -
.../Modules/ModuleApplicationBase.cs | 105 ---
.../Modules/StartupModuleRunner.cs | 58 --
.../Network/NetworkHelper.cs | 40 -
.../Options/AppOptionSettings.cs | 46 --
src/Destiny.Core.Flow/Options/AuthOptions.cs | 14 -
src/Destiny.Core.Flow/Options/CorsOptions.cs | 19 -
.../Options/DestinyContextOptions.cs | 39 -
src/Destiny.Core.Flow/Options/JwtOptions.cs | 25 -
.../Permission/IAuthorityVerification.cs | 19 -
.../NoAuthorityVerificationAttribute.cs | 13 -
.../Reflection/AssemblyFinder.cs | 12 -
.../Reflection/AssemblyHelper.cs | 85 ---
.../Reflection/FinderBase.cs | 26 -
.../Reflection/IAssemblyFinder.cs | 9 -
src/Destiny.Core.Flow/Reflection/IFinder.cs | 14 -
.../Reflection/ITypeFinder.cs | 12 -
.../Reflection/TypeFinder.cs | 22 -
.../Security/Identity/ClaimTypes.cs | 12 -
.../Security/Identity/IdentityProfile.cs | 29 -
.../Security/Jwt/IJwtBearerService.cs | 13 -
.../Security/Jwt/JwtBearerService.cs | 80 --
.../Security/Jwt/JwtResult.cs | 19 -
src/Destiny.Core.Flow/Threading/AsyncEx.cs | 202 -----
.../BackgroundTasks/BackgroundTaskQueue.cs | 36 -
.../BackgroundTasks/IBackgroundTaskQueue.cs | 14 -
.../Threading/ObjectPoolAsync.cs | 107 ---
src/Destiny.Core.Flow/Threading/TaskResult.cs | 207 -----
.../Threading/ThreadSafeRandom.cs | 52 --
.../Ui/Abstracts/IHasResultType.cs | 13 -
.../Ui/Abstracts/IListResult.cs | 9 -
.../Ui/Abstracts/ITreeResult.cs | 25 -
.../Ui/AuthorizationResult.cs | 32 -
.../Ui/MessageDefinitionType.cs | 15 -
src/Destiny.Core.Flow/Ui/OperationResponse.cs | 98 ---
.../Ui/OperationResponseExtensions.cs | 117 ---
.../Ui/OperationResponseOfModel.cs | 109 ---
src/Destiny.Core.Flow/Ui/ResultBase.cs | 32 -
src/Destiny.Core.Flow/Ui/TreeResult.cs | 53 --
.../Validation/Extensions.cs | 16 -
.../Validation/IModelValidator.cs | 29 -
.../Interceptor/IMethodParameterValidator.cs | 9 -
.../Interceptor/MethodInvocationValidator.cs | 140 ----
...ModelValidationMethodParameterValidator.cs | 34 -
.../ValidationInterceptorAttribute.cs | 73 --
.../ModelValidationResultExtensions.cs | 16 -
.../Validation/ModelValidator.cs | 30 -
.../Validation/ValidationException.cs | 21 -
.../Validation/ValidationFailure.cs | 19 -
.../Destiny.Core.Tests}/CodeGeneratorTests.cs | 0
.../Destiny.Core.Tests.csproj | 12 +-
.../Destiny.Core.Tests}/MemoryTests.cs | 0
.../Destiny.Core.Tests}/MongoDBTests.cs | 37 +-
.../Destiny.Core.Tests}/StartupModulesTest.cs | 0
.../Destiny.Core.Tests}/appsettings.json | 0
351 files changed, 300 insertions(+), 18758 deletions(-)
create mode 100644 K8sdeploy/destiny-core-flowadmin-autoscaler.yaml
delete mode 100644 src/Destiny.Core.Flow.Aop/AopModule .cs
delete mode 100644 src/Destiny.Core.Flow.Aop/Destiny.Core.Flow.Aop.csproj
delete mode 100644 src/Destiny.Core.Flow.Aop/NonGlobalAopTranAttribute.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Api/AdminControllerBase.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Api/ApiControllerBase.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/BaseController.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Destiny.Core.Flow.AspNetCore.csproj
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Extensions/HttpRequestExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Extensions/ModelStateExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Middleware/ExceptionHandlingMiddleware.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModule.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Module/DestinyCoreModule.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Module/MvcModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/AuditLogFilterAttribute.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/HandleException.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/PermissionAuthorizationFilter.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/UnitOfWorkAtrrribute.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/ValidationFilterAttribute.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/AjaxResult.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/AjaxResultExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/JsonResultExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/PageList.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/PageListExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/TreeModel.cs
delete mode 100644 src/Destiny.Core.Flow.AspNetCore/Ui/TreeModelExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.AutoMapper/AutoMapperModule.cs
delete mode 100644 src/Destiny.Core.Flow.AutoMapper/Destiny.Core.Flow.AutoMapper.csproj
delete mode 100644 src/Destiny.Core.Flow.Caching.CSRedis/CSRedisCache.cs
delete mode 100644 src/Destiny.Core.Flow.Caching.CSRedis/CSRedisModule.cs
delete mode 100644 src/Destiny.Core.Flow.Caching.CSRedis/CacheHelper.cs
delete mode 100644 src/Destiny.Core.Flow.Caching.CSRedis/Destiny.Core.Flow.Caching.CSRedis.csproj
delete mode 100644 src/Destiny.Core.Flow.Caching/CacheDefault.cs
delete mode 100644 src/Destiny.Core.Flow.Caching/CacheHandlerBase.cs
delete mode 100644 src/Destiny.Core.Flow.Caching/CacheOptions.cs
delete mode 100644 src/Destiny.Core.Flow.Caching/CachingDefaultModule.cs
delete mode 100644 src/Destiny.Core.Flow.Caching/Destiny.Core.Flow.Caching.csproj
delete mode 100644 src/Destiny.Core.Flow.Caching/ICache.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/CodeData.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/CodeGeneratorModeule.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/CodeGeneratorService.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Destiny.Core.Flow.CodeGenerator.csproj
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/EntityMetadata.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/ICodeGenerator.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/ICodeGeneratorService.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/ProjectMetadata.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/PropertyMetadata.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/RazorCodeGenerator.cs
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/Controller.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/Entity.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/EntityConfiguration.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/IService.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/InputDto.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/OutputDto.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/PageListDto.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/Templates/ServiceImpl.cshtml
delete mode 100644 src/Destiny.Core.Flow.CodeGenerator/TypeHelper.cs
delete mode 100644 src/Destiny.Core.Flow.Consul/Destiny.Core.Flow.Consul.csproj
delete mode 100644 src/Destiny.Core.Flow.Consul/DestinyConsulModule.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DatabaseTypeAttribute.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbContextExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbContextOptionsBuilderExtensions..cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbContexts/DbContextBase.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbContexts/DefaultDbContext.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbDrivens/MySqlDbContextDrivenProvider.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/DbDrivens/SqlServerDbContextDrivenProvider.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Destiny.Core.Flow.EntityFrameworkCore.csproj
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/EntityFrameworkCoreModule.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/IDbContextDrivenProvider.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Interceptor/AuditInterceptor.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Mapping/EntityMappingConfigurationOfModel.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Mapping/IEntityMappingConfiguration.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Mapping/IEntityMappingConfigurationOfModel.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Mapping/ModelBuilderExtenions.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Repository.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Repositorys/DapperRepository.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Repositorys/IDapperRepository.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Repositorys/UnitOfWork.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/Repositorys/UnitOfWorkExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.EntityFrameworkCore/ServiceExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/Destiny.Core.Flow.FluentValidation.csproj
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/FluentModelValidator.cs
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/FluentValidationExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/FluentValidationModelValidator.cs
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/FluentValidationModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow.FluentValidation/ServiceProviderValidatorFactory.cs
delete mode 100644 src/Destiny.Core.Flow.GateWay/Destiny.Core.Flow.GateWay.csproj
delete mode 100644 src/Destiny.Core.Flow.GateWay/Program.cs
delete mode 100644 src/Destiny.Core.Flow.GateWay/Properties/launchSettings.json
delete mode 100644 src/Destiny.Core.Flow.GateWay/Startup.cs
delete mode 100644 src/Destiny.Core.Flow.GateWay/appsettings.Development.json
delete mode 100644 src/Destiny.Core.Flow.GateWay/appsettings.json
delete mode 100644 src/Destiny.Core.Flow.GateWay/ocelotconfigure.json
delete mode 100644 src/Destiny.Core.Flow.Log4Net/Destiny.Core.Flow.Log4Net.csproj
delete mode 100644 src/Destiny.Core.Flow.Log4Net/Log4NetLogger.cs
delete mode 100644 src/Destiny.Core.Flow.Log4Net/Log4NetModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow.Log4Net/Log4NetProvider.cs
delete mode 100644 src/Destiny.Core.Flow.Log4Net/MNZ.CMS.Core.Log4Net.csproj
delete mode 100644 src/Destiny.Core.Flow.Log4Net/log4net.config
delete mode 100644 src/Destiny.Core.Flow.MiniProfiler/Destiny.Core.Flow.MiniProfiler.csproj
delete mode 100644 src/Destiny.Core.Flow.MiniProfiler/MiniProfilerModule.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/DbContexts/DefaultMongoDbContext.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/DbContexts/MongoDbContextBase.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/Destiny.Core.Flow.MongoDB.csproj
delete mode 100644 src/Destiny.Core.Flow.MongoDB/FindFluentExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/FindFluentSortBy.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/Infrastructure/IMongoDbContextOptions.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/Metadata/Builders/MongoDBFilterBuilder.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/MongoCollectionExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/MongoDBModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/MongoDBServiceCollectionExtensions.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/MongoDbContextOptions.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/MongoEntity.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/Repositorys/IMongoDBRepository.cs
delete mode 100644 src/Destiny.Core.Flow.MongoDB/Repositorys/MongoDBRepository.cs
delete mode 100644 src/Destiny.Core.Flow.Swagger/Destiny.Core.Flow.Swagger.csproj
delete mode 100644 src/Destiny.Core.Flow.Swagger/Filter/AutoRestSchemaFilter.cs
delete mode 100644 src/Destiny.Core.Flow.Swagger/Filter/TagDescriptionsDocumentFilter.cs
delete mode 100644 src/Destiny.Core.Flow.Swagger/SwaggerModule.cs
delete mode 100644 src/Destiny.Core.Flow/Application/CrudServiceAsync.cs
delete mode 100644 src/Destiny.Core.Flow/Application/ICrudServiceAsync.cs
delete mode 100644 src/Destiny.Core.Flow/Attributes/Base/AttributeBase.cs
delete mode 100644 src/Destiny.Core.Flow/Attributes/MongoDBTableAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/AuditChange.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/AuditEntry.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/AuditLog.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/AuditPropertysEntry.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/DataOperationType.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/DisableAuditingAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/Dto/AuditEntryDto.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/Dto/AuditEntryOutputPageDto.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/Dto/AuditLogOutputPageDto.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/Dto/AuditPropertyDto.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/Dto/AuditPropertyEntryOutputPageDto.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/EntityHistory/AuditHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/EntityHistory/IAuditHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Audit/IAuditStore.cs
delete mode 100644 src/Destiny.Core.Flow/ConsulEntity/ServiceEntity.cs
delete mode 100644 src/Destiny.Core.Flow/Data/ComnGuid.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Core/Collections/ITypeList.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Core/Collections/ITypeListOfModel.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Core/Collections/TypeList.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Core/Function/FunctionAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Core/Function/FunctionInfo.cs
delete mode 100644 src/Destiny.Core.Flow/Data/Dto/SelectItem.cs
delete mode 100644 src/Destiny.Core.Flow/Data/LazyConcurrentDictionary.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/DependencyAppModule.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/DependencyAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/DictionaryScoped.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/IScopedDependency.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/IServiceProviderAccessor.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/ISingletonDependency.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/ITransientDependency.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/IgnoreDependencyAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/IocManage.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/LazyFactory.cs
delete mode 100644 src/Destiny.Core.Flow/Dependency/ObjectAccessor.cs
delete mode 100644 src/Destiny.Core.Flow/Destiny.Core.Flow.csproj
delete mode 100644 src/Destiny.Core.Flow/Disposables/IDisposable2.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/DatabaseType.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/DestinyContextOptionsBuilder.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/EntityBase.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/ICreatedTime.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/ICreationAudited.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IEntity.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IEntityExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IEntityOfModel.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IFullAuditedEntityOfModel.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IInputDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IModificationAudited.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IModificationTime.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IOutputDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IRepository.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/ISeedData.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/ISoftDelete.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IStateDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IUnitOfWork.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IUnitOfWorkAccessor.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/IUnitOfWorkManager.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/InputDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/InputWaitStateDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/Modules/MigrationModuleBase.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/OutputDto.cs
delete mode 100644 src/Destiny.Core.Flow/Entity/SeedDataBase.cs
delete mode 100644 src/Destiny.Core.Flow/Enums/Enums.cs
delete mode 100644 src/Destiny.Core.Flow/Events/Abstractions/IEventBase.cs
delete mode 100644 src/Destiny.Core.Flow/Events/Abstractions/IEventHandlerBase.cs
delete mode 100644 src/Destiny.Core.Flow/Events/CacheEventDataBase.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventBase.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventBus/IEventBus.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventBus/IMediatorHandler.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventBus/InMemoryBus.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventBusExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventHandlerBase.cs
delete mode 100644 src/Destiny.Core.Flow/Events/EventQueue.cs
delete mode 100644 src/Destiny.Core.Flow/Events/MediatorAppModule.cs
delete mode 100644 src/Destiny.Core.Flow/Events/Notification.cs
delete mode 100644 src/Destiny.Core.Flow/Events/NotificationHandlerBase.cs
delete mode 100644 src/Destiny.Core.Flow/Exceptions/AppException.cs
delete mode 100644 src/Destiny.Core.Flow/Exceptions/MessageBox.cs
delete mode 100644 src/Destiny.Core.Flow/Exceptions/MissingTypeRegistrationException.cs
delete mode 100644 src/Destiny.Core.Flow/ExpressionUtil/Expressionable.cs
delete mode 100644 src/Destiny.Core.Flow/ExpressionUtil/ExtensionMethods.cs
delete mode 100644 src/Destiny.Core.Flow/ExpressionUtil/FilterBuilder.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/AutoMapperExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/BooleanWitnBoolExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/CheckExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ClaimsIdentityExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/CollectionExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ComparableExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ControllerExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/DateExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/DbContextExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/EntityEntryExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/EntityExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/EnumExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ExpressionExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ExpressionVisitorExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/FileExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/GetIPExtension.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/GuidExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/HashExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/IdentityResultExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ObjectExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/QueryableExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/SecurityExtension.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ServiceCollectionExtension.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ServiceCollectionObjectsExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/ServiceProviderExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/StringExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Extensions/TypeExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/Abstract/IFilterReauest.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/Abstract/IFilteredPagedRequest.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/Abstract/IOrderRequest.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/Abstract/IPagedRequest.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/Abstract/IPagedResult.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/CollectionPropertySorter.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/FilterCodeAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/FilterCondition.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/IResultData.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/OrderCondition.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/PageParameters.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/PageRequest.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/PageResult.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/PagedRequestModel.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/QueryFilter.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/QueryParameters.cs
delete mode 100644 src/Destiny.Core.Flow/Filter/ResultBaseOfModel.cs
delete mode 100644 src/Destiny.Core.Flow/Helpers/ArrayHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Helpers/DelegateHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Helpers/JsonHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Helpers/ReflectHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Helpers/TypeNameHelper.cs
delete mode 100644 src/Destiny.Core.Flow/IdentityServer4/AllowedSigningAlgorithmsConverter.cs
delete mode 100644 src/Destiny.Core.Flow/IdentityServer4/GrantType.cs
delete mode 100644 src/Destiny.Core.Flow/IdentityServer4/GrantTypes.cs
delete mode 100644 src/Destiny.Core.Flow/IdentityServer4/JwtClaimTypes.cs
delete mode 100644 src/Destiny.Core.Flow/Mapping/AutoMapDirection.cs
delete mode 100644 src/Destiny.Core.Flow/Mapping/AutoMapFromAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Mapping/AutoMapToAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Mapping/AutoMappingAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/AppModule.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/AppModuleExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/ApplicationContext.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/ApplicationInitializationExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/ConfigureServicesContext.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/ConfigureServicesContextExtenstions.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/DependsOnAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/IAppModule.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/IApplicationInitialization.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/IDependedTypesProvider.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/IModuleApplication.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/IStartupModuleRunner.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/ModuleApplicationBase.cs
delete mode 100644 src/Destiny.Core.Flow/Modules/StartupModuleRunner.cs
delete mode 100644 src/Destiny.Core.Flow/Network/NetworkHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Options/AppOptionSettings.cs
delete mode 100644 src/Destiny.Core.Flow/Options/AuthOptions.cs
delete mode 100644 src/Destiny.Core.Flow/Options/CorsOptions.cs
delete mode 100644 src/Destiny.Core.Flow/Options/DestinyContextOptions.cs
delete mode 100644 src/Destiny.Core.Flow/Options/JwtOptions.cs
delete mode 100644 src/Destiny.Core.Flow/Permission/IAuthorityVerification.cs
delete mode 100644 src/Destiny.Core.Flow/Permission/NoAuthorityVerificationAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/AssemblyFinder.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/AssemblyHelper.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/FinderBase.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/IAssemblyFinder.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/IFinder.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/ITypeFinder.cs
delete mode 100644 src/Destiny.Core.Flow/Reflection/TypeFinder.cs
delete mode 100644 src/Destiny.Core.Flow/Security/Identity/ClaimTypes.cs
delete mode 100644 src/Destiny.Core.Flow/Security/Identity/IdentityProfile.cs
delete mode 100644 src/Destiny.Core.Flow/Security/Jwt/IJwtBearerService.cs
delete mode 100644 src/Destiny.Core.Flow/Security/Jwt/JwtBearerService.cs
delete mode 100644 src/Destiny.Core.Flow/Security/Jwt/JwtResult.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/AsyncEx.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/BackgroundTasks/BackgroundTaskQueue.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/BackgroundTasks/IBackgroundTaskQueue.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/ObjectPoolAsync.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/TaskResult.cs
delete mode 100644 src/Destiny.Core.Flow/Threading/ThreadSafeRandom.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/Abstracts/IHasResultType.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/Abstracts/IListResult.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/Abstracts/ITreeResult.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/AuthorizationResult.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/MessageDefinitionType.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/OperationResponse.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/OperationResponseExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/OperationResponseOfModel.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/ResultBase.cs
delete mode 100644 src/Destiny.Core.Flow/Ui/TreeResult.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/Extensions.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/IModelValidator.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/Interceptor/IMethodParameterValidator.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/Interceptor/MethodInvocationValidator.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/Interceptor/ModelValidationMethodParameterValidator.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/Interceptor/ValidationInterceptorAttribute.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/ModelValidationResultExtensions.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/ModelValidator.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/ValidationException.cs
delete mode 100644 src/Destiny.Core.Flow/Validation/ValidationFailure.cs
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/CodeGeneratorTests.cs (100%)
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/Destiny.Core.Tests.csproj (76%)
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/MemoryTests.cs (100%)
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/MongoDBTests.cs (95%)
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/StartupModulesTest.cs (100%)
rename {Destiny.Core.Tests => test/Destiny.Core.Tests}/appsettings.json (100%)
diff --git a/Destiny.Core.Flow.sln b/Destiny.Core.Flow.sln
index 27fc2a33..ea7644e9 100644
--- a/Destiny.Core.Flow.sln
+++ b/Destiny.Core.Flow.sln
@@ -11,22 +11,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Services"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Model", "src\Destiny.Core.Flow.Model\Destiny.Core.Flow.Model.csproj", "{3350DDC6-02D0-4986-9F13-17B8B94B9456}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow", "src\Destiny.Core.Flow\Destiny.Core.Flow.csproj", "{49FF2838-ED54-48FF-A8C4-C0F91F1EB872}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Log4Net", "src\Destiny.Core.Flow.Log4Net\Destiny.Core.Flow.Log4Net.csproj", "{DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.AutoMapper", "src\Destiny.Core.Flow.AutoMapper\Destiny.Core.Flow.AutoMapper.csproj", "{1BEA2CF0-145B-4B0C-ABDC-A429E40E5890}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Tests", "Destiny.Core.Tests\Destiny.Core.Tests.csproj", "{57C6446B-F401-402D-9BAD-4CB9302AA344}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Tests", "test\Destiny.Core.Tests\Destiny.Core.Tests.csproj", "{57C6446B-F401-402D-9BAD-4CB9302AA344}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.SeriLog", "src\Destiny.Core.Flow.SeriLog\Destiny.Core.Flow.SeriLog.csproj", "{41EB9B3E-C420-4EFD-86CB-6D292EDF7AEF}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Swagger", "src\Destiny.Core.Flow.Swagger\Destiny.Core.Flow.Swagger.csproj", "{6F852563-D024-40F5-93E4-4A84EF87EEA1}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Identitys", "src\Destiny.Core.Flow.Identity\Destiny.Core.Flow.Identitys.csproj", "{40DA34CA-8A05-40E9-9542-596D6291D3A8}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.EntityFrameworkCore", "src\Destiny.Core.Flow.EntityFrameworkCore\Destiny.Core.Flow.EntityFrameworkCore.csproj", "{009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1249687C-582B-4A3E-8090-2AAF36AA3284}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{B74CBBDD-8574-4768-AA9D-2144A77D4875}"
@@ -37,40 +27,20 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Dtos", "s
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Repository", "src\Destiny.Core.Flow.Repository\Destiny.Core.Flow.Repository.csproj", "{88F5FAB5-5125-43FE-A889-510B7D085F7D}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.FluentValidation", "src\Destiny.Core.Flow.FluentValidation\Destiny.Core.Flow.FluentValidation.csproj", "{C59766D4-9399-4048-81AD-67626B3CD87B}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Moduls", "Moduls", "{D49782B1-99E0-442F-98DD-6D30CD09F6BA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Business", "Business", "{5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.CodeGenerator", "src\Destiny.Core.Flow.CodeGenerator\Destiny.Core.Flow.CodeGenerator.csproj", "{6DC5B2C0-756B-4BCC-8614-9C21D5671F8E}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Aop", "src\Destiny.Core.Flow.Aop\Destiny.Core.Flow.Aop.csproj", "{41EBC4A1-09C2-4426-937B-441B0EF62767}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.MongoDB", "src\Destiny.Core.Flow.MongoDB\Destiny.Core.Flow.MongoDB.csproj", "{D8E15451-16A4-4769-9BFA-A38C6237715B}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.GateWay", "src\Destiny.Core.Flow.GateWay\Destiny.Core.Flow.GateWay.csproj", "{3DD6B93E-872B-4F11-B968-DDC88C0E0C3A}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Caching", "src\Destiny.Core.Flow.Caching\Destiny.Core.Flow.Caching.csproj", "{951EDF2A-119D-407B-A8FB-13D4F757D6F4}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Caching.CSRedis", "src\Destiny.Core.Flow.Caching.CSRedis\Destiny.Core.Flow.Caching.CSRedis.csproj", "{1B1CE807-2090-40B0-A6C5-326A9F6543C1}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.TestBase", "src\Destiny.Core.Flow.TestBase\Destiny.Core.Flow.TestBase.csproj", "{7D118558-7701-4804-A42D-C0C81FC394D6}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.Consul", "src\Destiny.Core.Flow.Consul\Destiny.Core.Flow.Consul.csproj", "{43BB4E0A-BAFF-41D1-85FC-AA894627A9DF}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.IdentityServer", "src\Destiny.Core.Flow.IdentityServer4\Destiny.Core.Flow.IdentityServer.csproj", "{501DC32B-2705-4713-A8C3-9C6842996707}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.IdentityServer.Entities", "src\Destiny.Core.Flow.IdentityServer.Entities\Destiny.Core.Flow.IdentityServer.Entities.csproj", "{F7C19E76-E205-4549-8A15-A95107213C64}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.AuthenticationCenter", "src\Destiny.Core.Flow.AuthenticationCenter\Destiny.Core.Flow.AuthenticationCenter.csproj", "{4D580BFD-1D8A-4A23-B152-5A6739F26C97}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.MiniProfiler", "src\Destiny.Core.Flow.MiniProfiler\Destiny.Core.Flow.MiniProfiler.csproj", "{BF84625C-82CB-4F84-A799-F21F81E563F1}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destiny.Core.Flow.AspNetCore", "src\Destiny.Core.Flow.AspNetCore\Destiny.Core.Flow.AspNetCore.csproj", "{40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -93,18 +63,6 @@ Global
{3350DDC6-02D0-4986-9F13-17B8B94B9456}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3350DDC6-02D0-4986-9F13-17B8B94B9456}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3350DDC6-02D0-4986-9F13-17B8B94B9456}.Release|Any CPU.Build.0 = Release|Any CPU
- {49FF2838-ED54-48FF-A8C4-C0F91F1EB872}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {49FF2838-ED54-48FF-A8C4-C0F91F1EB872}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {49FF2838-ED54-48FF-A8C4-C0F91F1EB872}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {49FF2838-ED54-48FF-A8C4-C0F91F1EB872}.Release|Any CPU.Build.0 = Release|Any CPU
- {DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C}.Release|Any CPU.Build.0 = Release|Any CPU
- {1BEA2CF0-145B-4B0C-ABDC-A429E40E5890}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1BEA2CF0-145B-4B0C-ABDC-A429E40E5890}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1BEA2CF0-145B-4B0C-ABDC-A429E40E5890}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1BEA2CF0-145B-4B0C-ABDC-A429E40E5890}.Release|Any CPU.Build.0 = Release|Any CPU
{57C6446B-F401-402D-9BAD-4CB9302AA344}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{57C6446B-F401-402D-9BAD-4CB9302AA344}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57C6446B-F401-402D-9BAD-4CB9302AA344}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -113,18 +71,10 @@ Global
{41EB9B3E-C420-4EFD-86CB-6D292EDF7AEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41EB9B3E-C420-4EFD-86CB-6D292EDF7AEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41EB9B3E-C420-4EFD-86CB-6D292EDF7AEF}.Release|Any CPU.Build.0 = Release|Any CPU
- {6F852563-D024-40F5-93E4-4A84EF87EEA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6F852563-D024-40F5-93E4-4A84EF87EEA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6F852563-D024-40F5-93E4-4A84EF87EEA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6F852563-D024-40F5-93E4-4A84EF87EEA1}.Release|Any CPU.Build.0 = Release|Any CPU
{40DA34CA-8A05-40E9-9542-596D6291D3A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40DA34CA-8A05-40E9-9542-596D6291D3A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40DA34CA-8A05-40E9-9542-596D6291D3A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40DA34CA-8A05-40E9-9542-596D6291D3A8}.Release|Any CPU.Build.0 = Release|Any CPU
- {009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86}.Release|Any CPU.Build.0 = Release|Any CPU
{9DFDA589-61A2-46E6-ACB6-6C8D1B987F0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9DFDA589-61A2-46E6-ACB6-6C8D1B987F0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9DFDA589-61A2-46E6-ACB6-6C8D1B987F0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -133,42 +83,10 @@ Global
{88F5FAB5-5125-43FE-A889-510B7D085F7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88F5FAB5-5125-43FE-A889-510B7D085F7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{88F5FAB5-5125-43FE-A889-510B7D085F7D}.Release|Any CPU.Build.0 = Release|Any CPU
- {C59766D4-9399-4048-81AD-67626B3CD87B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C59766D4-9399-4048-81AD-67626B3CD87B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C59766D4-9399-4048-81AD-67626B3CD87B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C59766D4-9399-4048-81AD-67626B3CD87B}.Release|Any CPU.Build.0 = Release|Any CPU
- {6DC5B2C0-756B-4BCC-8614-9C21D5671F8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6DC5B2C0-756B-4BCC-8614-9C21D5671F8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6DC5B2C0-756B-4BCC-8614-9C21D5671F8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6DC5B2C0-756B-4BCC-8614-9C21D5671F8E}.Release|Any CPU.Build.0 = Release|Any CPU
- {41EBC4A1-09C2-4426-937B-441B0EF62767}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {41EBC4A1-09C2-4426-937B-441B0EF62767}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {41EBC4A1-09C2-4426-937B-441B0EF62767}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {41EBC4A1-09C2-4426-937B-441B0EF62767}.Release|Any CPU.Build.0 = Release|Any CPU
- {D8E15451-16A4-4769-9BFA-A38C6237715B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D8E15451-16A4-4769-9BFA-A38C6237715B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D8E15451-16A4-4769-9BFA-A38C6237715B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D8E15451-16A4-4769-9BFA-A38C6237715B}.Release|Any CPU.Build.0 = Release|Any CPU
- {3DD6B93E-872B-4F11-B968-DDC88C0E0C3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3DD6B93E-872B-4F11-B968-DDC88C0E0C3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3DD6B93E-872B-4F11-B968-DDC88C0E0C3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3DD6B93E-872B-4F11-B968-DDC88C0E0C3A}.Release|Any CPU.Build.0 = Release|Any CPU
- {951EDF2A-119D-407B-A8FB-13D4F757D6F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {951EDF2A-119D-407B-A8FB-13D4F757D6F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {951EDF2A-119D-407B-A8FB-13D4F757D6F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {951EDF2A-119D-407B-A8FB-13D4F757D6F4}.Release|Any CPU.Build.0 = Release|Any CPU
- {1B1CE807-2090-40B0-A6C5-326A9F6543C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1B1CE807-2090-40B0-A6C5-326A9F6543C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1B1CE807-2090-40B0-A6C5-326A9F6543C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1B1CE807-2090-40B0-A6C5-326A9F6543C1}.Release|Any CPU.Build.0 = Release|Any CPU
{7D118558-7701-4804-A42D-C0C81FC394D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D118558-7701-4804-A42D-C0C81FC394D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D118558-7701-4804-A42D-C0C81FC394D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7D118558-7701-4804-A42D-C0C81FC394D6}.Release|Any CPU.Build.0 = Release|Any CPU
- {43BB4E0A-BAFF-41D1-85FC-AA894627A9DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {43BB4E0A-BAFF-41D1-85FC-AA894627A9DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {43BB4E0A-BAFF-41D1-85FC-AA894627A9DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {43BB4E0A-BAFF-41D1-85FC-AA894627A9DF}.Release|Any CPU.Build.0 = Release|Any CPU
{501DC32B-2705-4713-A8C3-9C6842996707}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{501DC32B-2705-4713-A8C3-9C6842996707}.Debug|Any CPU.Build.0 = Debug|Any CPU
{501DC32B-2705-4713-A8C3-9C6842996707}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -181,14 +99,6 @@ Global
{4D580BFD-1D8A-4A23-B152-5A6739F26C97}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D580BFD-1D8A-4A23-B152-5A6739F26C97}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D580BFD-1D8A-4A23-B152-5A6739F26C97}.Release|Any CPU.Build.0 = Release|Any CPU
- {BF84625C-82CB-4F84-A799-F21F81E563F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {BF84625C-82CB-4F84-A799-F21F81E563F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BF84625C-82CB-4F84-A799-F21F81E563F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {BF84625C-82CB-4F84-A799-F21F81E563F1}.Release|Any CPU.Build.0 = Release|Any CPU
- {40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -198,34 +108,19 @@ Global
{0FDF7DC0-77FE-4529-8E8C-D17FF03D84A0} = {5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}
{89D24E5C-7C65-4150-AB7B-656809CC6011} = {5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}
{3350DDC6-02D0-4986-9F13-17B8B94B9456} = {5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}
- {49FF2838-ED54-48FF-A8C4-C0F91F1EB872} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
- {DC68A647-D7C2-4321-BDC7-ED8F65CD6A5C} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {1BEA2CF0-145B-4B0C-ABDC-A429E40E5890} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
{57C6446B-F401-402D-9BAD-4CB9302AA344} = {B74CBBDD-8574-4768-AA9D-2144A77D4875}
{41EB9B3E-C420-4EFD-86CB-6D292EDF7AEF} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {6F852563-D024-40F5-93E4-4A84EF87EEA1} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
{40DA34CA-8A05-40E9-9542-596D6291D3A8} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
- {009E18C9-38CE-4CE0-9EA0-D9A1AB38DE86} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
{9A347066-1CEA-4FD6-BD7E-598A7FF21E6C} = {1249687C-582B-4A3E-8090-2AAF36AA3284}
{9DFDA589-61A2-46E6-ACB6-6C8D1B987F0D} = {5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}
{88F5FAB5-5125-43FE-A889-510B7D085F7D} = {5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6}
- {C59766D4-9399-4048-81AD-67626B3CD87B} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
{D49782B1-99E0-442F-98DD-6D30CD09F6BA} = {1249687C-582B-4A3E-8090-2AAF36AA3284}
{5D6E6ADE-8C66-4955-9DC6-C8610EDE9DE6} = {1249687C-582B-4A3E-8090-2AAF36AA3284}
{968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A} = {1249687C-582B-4A3E-8090-2AAF36AA3284}
- {6DC5B2C0-756B-4BCC-8614-9C21D5671F8E} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
- {41EBC4A1-09C2-4426-937B-441B0EF62767} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {D8E15451-16A4-4769-9BFA-A38C6237715B} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {3DD6B93E-872B-4F11-B968-DDC88C0E0C3A} = {9A347066-1CEA-4FD6-BD7E-598A7FF21E6C}
- {951EDF2A-119D-407B-A8FB-13D4F757D6F4} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {1B1CE807-2090-40B0-A6C5-326A9F6543C1} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
{7D118558-7701-4804-A42D-C0C81FC394D6} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {43BB4E0A-BAFF-41D1-85FC-AA894627A9DF} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
{501DC32B-2705-4713-A8C3-9C6842996707} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
{F7C19E76-E205-4549-8A15-A95107213C64} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
{4D580BFD-1D8A-4A23-B152-5A6739F26C97} = {9A347066-1CEA-4FD6-BD7E-598A7FF21E6C}
- {BF84625C-82CB-4F84-A799-F21F81E563F1} = {D49782B1-99E0-442F-98DD-6D30CD09F6BA}
- {40BACBCF-713A-4F38-ABE8-57B6BC3EC7A2} = {968F74F4-4D0A-4832-A7EA-5CB2BA08AF8A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {468F450C-837F-4FCD-8E06-3E12690DDED6}
diff --git a/K8sdeploy/destiny-core-flowadmin-autoscaler.yaml b/K8sdeploy/destiny-core-flowadmin-autoscaler.yaml
new file mode 100644
index 00000000..b315bcf4
--- /dev/null
+++ b/K8sdeploy/destiny-core-flowadmin-autoscaler.yaml
@@ -0,0 +1,13 @@
+apiVersion: autoscaling/v1
+kind: HorizontalPodAutoscaler
+metadata:
+ name: destiny-core-flowadmin-autoscaler
+ namespace: destinycore-flow
+spec:
+ maxReplicas: 10 #最大数量
+ minReplicas: 2 #最小数量
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: destiny-core-flowadmin-pod #需要监控的deployment
+ targetCPUUtilizationPercentage: 40 #目标CPU占用率达到多少启动扩容
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.API/Controllers/DocumentTypeController.cs b/src/Destiny.Core.Flow.API/Controllers/DocumentTypeController.cs
index 7c287f5d..524fe744 100644
--- a/src/Destiny.Core.Flow.API/Controllers/DocumentTypeController.cs
+++ b/src/Destiny.Core.Flow.API/Controllers/DocumentTypeController.cs
@@ -19,17 +19,15 @@ namespace Destiny.Core.Flow.API.Controllers
///文档类型
///
[Description("文档类型")]
+ [AllowAnonymous]
public class DocumentTypeController : AdminControllerBase
{
private readonly IDocumentTypeService _documentTypeService;
-
public DocumentTypeController(IDocumentTypeService documentTypeService)
{
_documentTypeService=documentTypeService;
}
-
-
///
/// 异步创建或更新文档类型
///
@@ -41,10 +39,6 @@ public async Task CreateOrUpdateAsync([FromBody] DocumentTypeInputDt
return (await _documentTypeService.CreateOrUpdateAsync(dto)).ToAjaxResult();
}
-
-
-
-
///
/// 异步加载表单文档类型
///
@@ -55,8 +49,6 @@ public async Task LoadFormAsync(Guid id)
{
return (await _documentTypeService.LoadFormAsync(id)).ToAjaxResult();
}
-
-
///
/// 异步删除文档类型
///
@@ -67,7 +59,6 @@ public async Task DeleteAsync(Guid id)
{
return (await _documentTypeService.DeleteAsync(id)).ToAjaxResult();
}
-
///
/// 异步得到文档类型分页数据
///
@@ -78,7 +69,6 @@ public async Task> GetPageAsync(PageRequest re
{
return (await _documentTypeService.GetPageAsync(request)).ToPageList();
}
-
///
/// 异步得到文档类型树数据
///
@@ -90,6 +80,5 @@ public async Task> GetDocumentTreeTreeDataAsync()
return (await _documentTypeService.GetTreeDataAsync()).ToTreeModel();
}
-
}
}
diff --git a/src/Destiny.Core.Flow.API/Controllers/Menu/MenuController.cs b/src/Destiny.Core.Flow.API/Controllers/Menu/MenuController.cs
index 03d54f45..7d17bb38 100644
--- a/src/Destiny.Core.Flow.API/Controllers/Menu/MenuController.cs
+++ b/src/Destiny.Core.Flow.API/Controllers/Menu/MenuController.cs
@@ -1,221 +1,218 @@
-using Destiny.Core.Flow.AspNetCore.Api;
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Audit;
-using Destiny.Core.Flow.Dtos.Menu;
-using Destiny.Core.Flow.Dtos.MenuFunction;
-using Destiny.Core.Flow.Filter;
-using Destiny.Core.Flow.IServices.IMenu;
-using Destiny.Core.Flow.Permission;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using System;
-using System.ComponentModel;
-using System.Threading.Tasks;
-using Microsoft.Extensions.Logging;
-
-namespace Destiny.Core.Flow.API.Controllers.Menu
-{
- ///
- /// 菜单管理
- ///
- [Description("菜单管理")]
-
- public class MenuController : AdminControllerBase
- {
- private readonly IMenuServices _menuServices;
- private readonly IMenuFunctionServices _menuFunctionServices;
- private readonly Microsoft.Extensions.Logging.ILogger _logger = null;
- public MenuController(IMenuServices menuServices, IMenuFunctionServices menuFunctionServices, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
- {
- _menuServices = menuServices;
- _menuFunctionServices = menuFunctionServices;
- _logger = loggerFactory.CreateLogger();
- }
-
-
- /////
- ///// 根据角色Id获取树形菜单信息
- /////
- ///// 角色Id
- /////
- //[HttpGet]
- //[Description("获取树形菜单信息")]
- //public async Task> GetTreeAsync(Guid roleid)
- //{
- // var result = await _menuServices.GetMenuAsync(roleid);
- // return result.ToTreeModel();
- //}
- ///
- /// 获取表格菜单信息
- ///
- ///
- ///
- [HttpGet]
- [Description("获取表格菜单信息")]
- [AllowAnonymous]
- public async Task> GetTableAsync()
- {
- var result = await _menuServices.GetMenuTableAsync();
- return new TreeModel()
- {
- ItemList = result.ItemList,
- Message = result.Message,
- Success = result.Success
- };
- }
-
- ///
- /// 添加菜单
- ///
- ///
- [HttpPost]
- [Description("添加菜单")]
-
- public async Task AddMenuAsync([FromBody] MenuInputDto dto)
- {
- return (await _menuServices.CreateAsync(dto)).ToAjaxResult();
- }
-
- ///
- /// 修改菜单
- ///
- ///
- [HttpPut]
- [Description("修改菜单")]
- public async Task UpdateMenuAsync([FromBody] MenuInputDto dto)
- {
- return (await _menuServices.UpdateAsync(dto)).ToAjaxResult();
- }
- ///
- /// 删除
- ///
- ///
- [HttpDelete]
- [Description("删除菜单")]
- public async Task DeleteAsync(Guid? id)
- {
- return (await _menuServices.DeleteAsync(id.Value)).ToAjaxResult();
- }
-
-
- ///
- /// 异步加载表单菜单
- ///
- ///
- ///
- [HttpGet]
- [Description("获取一个菜单")]
- public async Task LoadFormMenuAsync(Guid Id)
- {
- return (await _menuServices.LoadFormMenuAsync(Id)).ToAjaxResult();
- }
-
- ///
- /// 登录成功之后获取菜单
- ///
- ///
- [HttpGet]
- [Description("根据登录账号获取菜单")]
- [NoAuthorityVerification]
- public async Task GetMenuAsync()
- {
- return (await _menuServices.GetMenuAsync()).ToAjaxResult();
- }
-
- ///
- /// 登录成功之后获取Vue动态路由菜单
- ///
- ///
- [HttpGet]
- [Description("获取Vue动态路由菜单")]
- [NoAuthorityVerification]
- [DisableAuditing]
- public async Task GetVueDynamicRouterTreeAsync()
- {
- _logger.LogInformation("进入动态路由控制器");
- return (await _menuServices.GetVueDynamicRouterTreeAsync()).ToAjaxResult();
- }
-
- ///
- /// 异步得到菜单树数据
- ///
- ///
- [HttpGet]
- [Description("异步得到菜单树数据")]
-
- public async Task GetMenuTreeAsync(Guid? roleId)
- {
- return (await _menuServices.GetMenuTreeAsync(roleId)).ToAjaxResult();
- }
-
- ///
- /// 异步得到菜单下的按钮
- ///
- ///
- [HttpGet]
- [Description("异步得到菜单下的按钮")]
- [NoAuthorityVerification]
-
- public async Task GetMenuChildrenButtonAsync(Guid? menuId)
- {
- return (await _menuServices.GetMenuChildrenButton(menuId.Value)).ToAjaxResult();
- }
-
- ///
- /// 获取登录用户权限菜单
- ///
- ///
- [HttpGet]
- [Description("获取登录用户权限菜单")]
- [NoAuthorityVerification]
-
- public async Task GetMenuListAsync()
- {
- return (await _menuServices.GetMenuListAsync()).ToAjaxResult();
- }
-
-
-
- ///
- /// 异步得到菜单分页数据(不是树,只是普通表格)
- ///
- /// 请求参数
- ///
-
- [HttpPost]
- [Description("异步得到菜单分页数据")]
-
- public async Task> GetMenuPageAsync([FromBody] PageRequest request)
- {
-
- return (await _menuServices.GetMenuPageAsync(request)).ToPageList();
-
- }
-
- ///
- /// 异步得到所有菜单
- ///
- ///
- [HttpGet]
- [Description("异步得到所有菜单")]
-
- public async Task> GetAllMenuTreeAsync()
- {
-
- return (await _menuServices.GetAllMenuTreeAsync()).ToTreeModel();
+using Destiny.Core.Flow.AspNetCore.Api;
+using Destiny.Core.Flow.AspNetCore.Ui;
+using Destiny.Core.Flow.Audit;
+using Destiny.Core.Flow.Dtos.Menu;
+using Destiny.Core.Flow.Dtos.MenuFunction;
+using Destiny.Core.Flow.Filter;
+using Destiny.Core.Flow.IServices.IMenu;
+using Destiny.Core.Flow.Permission;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using Microsoft.Extensions.Logging;
+
+namespace Destiny.Core.Flow.API.Controllers.Menu
+{
+ ///
+ /// 菜单管理
+ ///
+ [Description("菜单管理")]
+
+ public class MenuController : AdminControllerBase
+ {
+ private readonly IMenuServices _menuServices;
+ private readonly IMenuFunctionServices _menuFunctionServices;
+ private readonly Microsoft.Extensions.Logging.ILogger _logger = null;
+ public MenuController(IMenuServices menuServices, IMenuFunctionServices menuFunctionServices, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
+ {
+ _menuServices = menuServices;
+ _menuFunctionServices = menuFunctionServices;
+ _logger = loggerFactory.CreateLogger();
}
- [HttpGet]
- [Description("清除VUE动态路由缓存")]
+
+ /////
+ ///// 根据角色Id获取树形菜单信息
+ /////
+ ///// 角色Id
+ /////
+ //[HttpGet]
+ //[Description("获取树形菜单信息")]
+ //public async Task> GetTreeAsync(Guid roleid)
+ //{
+ // var result = await _menuServices.GetMenuAsync(roleid);
+ // return result.ToTreeModel();
+ //}
///
- /// 清除VUE动态路由缓存
+ /// 获取表格菜单信息
///
- ///
- public async Task CleanVueDynamicRouterCache()
+ ///
+ ///
+ [HttpGet]
+ [Description("获取表格菜单信息")]
+ [AllowAnonymous]
+ public async Task> GetTableAsync()
{
+ var result = await _menuServices.GetMenuTableAsync();
+ return new TreeModel()
+ {
+ ItemList = result.ItemList,
+ Message = result.Message,
+ Success = result.Success
+ };
+ }
+ ///
+ /// 添加菜单
+ ///
+ ///
+ [HttpPost]
+ [Description("添加菜单")]
- return (await _menuServices.CleanVueDynamicRouterCache()).ToAjaxResult();
- }
- }
+ public async Task AddMenuAsync([FromBody] MenuInputDto dto)
+ {
+ return (await _menuServices.CreateAsync(dto)).ToAjaxResult();
+ }
+
+ ///
+ /// 修改菜单
+ ///
+ ///
+ [HttpPut]
+ [Description("修改菜单")]
+ public async Task UpdateMenuAsync([FromBody] MenuInputDto dto)
+ {
+ return (await _menuServices.UpdateAsync(dto)).ToAjaxResult();
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ [HttpDelete]
+ [Description("删除菜单")]
+ public async Task DeleteAsync(Guid? id)
+ {
+ return (await _menuServices.DeleteAsync(id.Value)).ToAjaxResult();
+ }
+
+
+ ///
+ /// 异步加载表单菜单
+ ///
+ ///
+ ///
+ [HttpGet]
+ [Description("获取一个菜单")]
+ public async Task LoadFormMenuAsync(Guid Id)
+ {
+ return (await _menuServices.LoadFormMenuAsync(Id)).ToAjaxResult();
+ }
+
+ ///
+ /// 登录成功之后获取菜单
+ ///
+ ///
+ [HttpGet]
+ [Description("根据登录账号获取菜单")]
+ [NoAuthorityVerification]
+ public async Task GetMenuAsync()
+ {
+ return (await _menuServices.GetMenuAsync()).ToAjaxResult();
+ }
+
+ ///
+ /// 登录成功之后获取Vue动态路由菜单
+ ///
+ ///
+ [HttpGet]
+ [Description("获取Vue动态路由菜单")]
+ [NoAuthorityVerification]
+ [DisableAuditing]
+ public async Task GetVueDynamicRouterTreeAsync()
+ {
+ _logger.LogInformation("进入动态路由控制器");
+ return (await _menuServices.GetVueDynamicRouterTreeAsync()).ToAjaxResult();
+ }
+
+ ///
+ /// 异步得到菜单树数据
+ ///
+ ///
+ [HttpGet]
+ [Description("异步得到菜单树数据")]
+
+ public async Task GetMenuTreeAsync(Guid? roleId)
+ {
+ return (await _menuServices.GetMenuTreeAsync(roleId)).ToAjaxResult();
+ }
+
+ ///
+ /// 异步得到菜单下的按钮
+ ///
+ ///
+ [HttpGet]
+ [Description("异步得到菜单下的按钮")]
+ [NoAuthorityVerification]
+
+ public async Task GetMenuChildrenButtonAsync(Guid? menuId)
+ {
+ return (await _menuServices.GetMenuChildrenButton(menuId.Value)).ToAjaxResult();
+ }
+
+ ///
+ /// 获取登录用户权限菜单
+ ///
+ ///
+ [HttpGet]
+ [Description("获取登录用户权限菜单")]
+ [NoAuthorityVerification]
+
+ public async Task GetMenuListAsync()
+ {
+ return (await _menuServices.GetMenuListAsync()).ToAjaxResult();
+ }
+
+
+
+ ///
+ /// 异步得到菜单分页数据(不是树,只是普通表格)
+ ///
+ /// 请求参数
+ ///
+
+ [HttpPost]
+ [Description("异步得到菜单分页数据")]
+
+ public async Task> GetMenuPageAsync([FromBody] PageRequest request)
+ {
+
+ return (await _menuServices.GetMenuPageAsync(request)).ToPageList();
+
+ }
+
+ ///
+ /// 异步得到所有菜单
+ ///
+ ///
+ [HttpGet]
+ [Description("异步得到所有菜单")]
+
+ public async Task> GetAllMenuTreeAsync()
+ {
+
+ return (await _menuServices.GetAllMenuTreeAsync()).ToTreeModel();
+ }
+ ///
+ /// 清除VUE动态路由缓存
+ ///
+ ///
+ [HttpGet]
+ [Description("清除VUE动态路由缓存")]
+ public async Task CleanVueDynamicRouterCache()
+ {
+ return (await _menuServices.CleanVueDynamicRouterCache()).ToAjaxResult();
+ }
+ }
}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.csproj b/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.csproj
index b07c63ee..ba3f9c51 100644
--- a/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.csproj
+++ b/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.csproj
@@ -32,6 +32,12 @@
+
+
+
+
+
+
@@ -50,19 +56,12 @@
-
-
-
-
-
-
-
diff --git a/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.xml b/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.xml
index ce96552c..15df0e5a 100644
--- a/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.xml
+++ b/src/Destiny.Core.Flow.API/Destiny.Core.Flow.API.xml
@@ -486,6 +486,12 @@
+
+
+ 清除VUE动态路由缓存
+
+
+
组织架构管理
diff --git a/src/Destiny.Core.Flow.API/Properties/PublishProfiles/FolderProfile.pubxml.user b/src/Destiny.Core.Flow.API/Properties/PublishProfiles/FolderProfile.pubxml.user
index 9dfc9966..8fe06b29 100644
--- a/src/Destiny.Core.Flow.API/Properties/PublishProfiles/FolderProfile.pubxml.user
+++ b/src/Destiny.Core.Flow.API/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -5,6 +5,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<_PublishTargetUrl>F:\Github\Destiny.Core.Flow\src\Destiny.Core.Flow.API\bin\Release\net5.0\publish\
- True|2021-05-13T15:22:19.0487184Z;True|2021-04-18T22:35:28.3562042+08:00;True|2021-04-18T22:13:33.7933765+08:00;True|2021-04-18T21:41:02.2325343+08:00;True|2021-04-18T21:40:39.9242295+08:00;False|2021-04-18T21:40:00.6560711+08:00;True|2021-04-18T21:39:44.5612093+08:00;True|2021-04-18T21:37:41.3596322+08:00;
+ True|2021-05-27T02:30:33.3101285Z;True|2021-05-13T23:22:19.0487184+08:00;True|2021-04-18T22:35:28.3562042+08:00;True|2021-04-18T22:13:33.7933765+08:00;True|2021-04-18T21:41:02.2325343+08:00;True|2021-04-18T21:40:39.9242295+08:00;False|2021-04-18T21:40:00.6560711+08:00;True|2021-04-18T21:39:44.5612093+08:00;True|2021-04-18T21:37:41.3596322+08:00;
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.API/Startup.cs b/src/Destiny.Core.Flow.API/Startup.cs
index d585e8b0..5bbab769 100644
--- a/src/Destiny.Core.Flow.API/Startup.cs
+++ b/src/Destiny.Core.Flow.API/Startup.cs
@@ -7,6 +7,9 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
namespace Destiny.Core.Flow.API
{
@@ -22,6 +25,18 @@ public Startup(IConfiguration configuration)
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
+ //string[] filters =
+ //{
+ // "mscorlib",
+ // "netstandard",
+ // "dotnet",
+ // "api-ms-win-core",
+ // "runtime.",
+ // "System",
+ // "Microsoft",
+ // "Window",
+ //};
+ //IEnumerable allAssemblies = Assembly.GetEntryAssembly().GetReferencedAssemblies().Where(x => !filters.Any(x.Name.StartsWith)).Select(Assembly.Load).ToArray();
services.AddApplication();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
diff --git a/src/Destiny.Core.Flow.API/Startups/AppWebModule.cs b/src/Destiny.Core.Flow.API/Startups/AppWebModule.cs
index 5950d5ba..3225d0e3 100644
--- a/src/Destiny.Core.Flow.API/Startups/AppWebModule.cs
+++ b/src/Destiny.Core.Flow.API/Startups/AppWebModule.cs
@@ -15,7 +15,8 @@
namespace Destiny.Core.Flow.API.Startups
{
- [DependsOn(typeof(DestinyCoreModule),
+ [DependsOn
+ (typeof(DestinyCoreModule),
typeof(MvcModule),
typeof(MiniProfilerModule),
typeof(AspNetCoreSwaggerModule),
diff --git a/src/Destiny.Core.Flow.Aop/AopModule .cs b/src/Destiny.Core.Flow.Aop/AopModule .cs
deleted file mode 100644
index 1c0e215f..00000000
--- a/src/Destiny.Core.Flow.Aop/AopModule .cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using AspectCore.Configuration;
-using AspectCore.DynamicProxy;
-using AspectCore.Extensions.DependencyInjection;
-using Destiny.Core.Flow.Extensions;
-using Destiny.Core.Flow.Modules;
-using Destiny.Core.Flow.Reflection;
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Destiny.Core.Flow.Aop
-{
- public class AopModule: AppModule
- {
- public override void ConfigureServices(ConfigureServicesContext context)
- {
- var service = context.Services;
- var typefinder = service.GetService();
- typefinder.NotNull(nameof(typefinder));
- var typs = typefinder.Find(o => o.IsClass && !o.IsAbstract && !o.IsInterface && o.IsSubclassOf(typeof(AbstractInterceptor)));
- var interceptorsModule = service.GetConfiguration()["Destiny:InterceptorsModule"];
-
-
- if (typs?.Length > 0)
- {
- List types = new List();
-
- foreach (var item in typs)
- {
- //service.AddTransient(item);
- service.ConfigureDynamicProxy(cof =>
- {
- var enabled = service.GetConfiguration()[$"Destiny:AopManager:{item.Name}:Enabled"].ObjToBool();
- if (enabled)
- cof.Interceptors.AddTyped(item, Predicates.ForNameSpace(interceptorsModule)/*,Predicates.ForNameSpace(IInterceptorsModule)*/);////这种是配置只需要代理的层, Predicates.ForNameSpace("Sukt.Core.Application.Contracts")
- //config.NonAspectPredicates.AddService("IUnitofWork");//需要过滤掉不需要代理的服务层
- });
- }
- }
- }
-
-
- }
-}
diff --git a/src/Destiny.Core.Flow.Aop/Destiny.Core.Flow.Aop.csproj b/src/Destiny.Core.Flow.Aop/Destiny.Core.Flow.Aop.csproj
deleted file mode 100644
index ed3955ee..00000000
--- a/src/Destiny.Core.Flow.Aop/Destiny.Core.Flow.Aop.csproj
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- netstandard2.1
-
-
-
-
-
-
-
-
diff --git a/src/Destiny.Core.Flow.Aop/NonGlobalAopTranAttribute.cs b/src/Destiny.Core.Flow.Aop/NonGlobalAopTranAttribute.cs
deleted file mode 100644
index 0b3b9dc2..00000000
--- a/src/Destiny.Core.Flow.Aop/NonGlobalAopTranAttribute.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using AspectCore.DynamicProxy;
-using Destiny.Core.Flow.Entity;
-using System;
-using System.Threading.Tasks;
-
-namespace Destiny.Core.Flow.Aop
-{
- public class NonGlobalAopTranAttribute : AbstractInterceptorAttribute
- {
- //[FromServiceContext]
- //private IUnitOfWork _unitOfWork { get; set; }
- public async override Task Invoke(AspectContext context, AspectDelegate next)
- {
- var _unitOfWork = context.ServiceProvider.GetService(typeof(IUnitOfWork)) as IUnitOfWork;
- try
- {
-
-
-
- _unitOfWork.BeginTransaction();
- Console.WriteLine("代理方法执行前");
- await next(context);
- Console.WriteLine("代理方法执行后");
- _unitOfWork.Commit();
- }
- catch (Exception ex)
- {
- _unitOfWork.Rollback();
- throw ex;
- }
-
- }
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Api/AdminControllerBase.cs b/src/Destiny.Core.Flow.AspNetCore/Api/AdminControllerBase.cs
deleted file mode 100644
index 1b2126dd..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Api/AdminControllerBase.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using Microsoft.AspNetCore.Authorization;
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Destiny.Core.Flow.AspNetCore.Api
-{
- ///
- /// 要授权的控制器
- ///
- [Authorize]
- public abstract class AdminControllerBase : ApiControllerBase
- {
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Api/ApiControllerBase.cs b/src/Destiny.Core.Flow.AspNetCore/Api/ApiControllerBase.cs
deleted file mode 100644
index e7d3e3aa..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Api/ApiControllerBase.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using Destiny.Core.Flow.Dependency;
-using Microsoft.AspNetCore.Mvc;
-
-namespace Destiny.Core.Flow.AspNetCore.Api
-{
- [Route("api/[controller]/[action]")]
- [ApiController]
- //[EnableCors("Destiny.Core.Flow.API")]
- public abstract class ApiControllerBase : ControllerBase
- {
- protected IocManage IocManage => IocManage.Instance;
- }
-}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.AspNetCore/BaseController.cs b/src/Destiny.Core.Flow.AspNetCore/BaseController.cs
deleted file mode 100644
index f65b6bec..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/BaseController.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Api;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.Extensions.Logging;
-
-namespace Destiny.Core.Flow.AspNetCore
-{
- [ApiController]
- public class BaseController : ApiControllerBase
- {
- ///
- /// 公共日志记录
- ///
- public ILogger _logger;
-
- ///
- /// 构造注入
- ///
- ///
- public BaseController(ILogger logger)
- {
- _logger = logger;
- }
- }
-}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.AspNetCore/Destiny.Core.Flow.AspNetCore.csproj b/src/Destiny.Core.Flow.AspNetCore/Destiny.Core.Flow.AspNetCore.csproj
deleted file mode 100644
index b064a974..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Destiny.Core.Flow.AspNetCore.csproj
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- net5.0
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Destiny.Core.Flow.AspNetCore/Extensions/HttpRequestExtensions.cs b/src/Destiny.Core.Flow.AspNetCore/Extensions/HttpRequestExtensions.cs
deleted file mode 100644
index 89e7cc36..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Extensions/HttpRequestExtensions.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using Destiny.Core.Flow.Extensions;
-using Microsoft.AspNetCore.Http;
-using System;
-
-namespace Destiny.Core.Flow.AspNetCore.Extensions
-{
- public static class HttpRequestExtensions
- {
- ///
- /// 判断是否为json格式
- ///
- ///
- ///
- public static bool IsJsonContextType(this HttpRequest request)
- {
- request.NotNull(nameof(request));
- return request.Headers?["Content-Type"].ToString()?.IndexOf("application/json", StringComparison.OrdinalIgnoreCase) > -1;
- }
-
- ///
- /// 判断是否AJAX请求
- ///
- ///
- ///
- public static bool IsAjaxRequest(this HttpRequest request)
- {
- request.NotNull(nameof(request));
- var flag = request.Headers?["X-Requested-With"].ToString()?.Equals("XMLHttpRequest", StringComparison.OrdinalIgnoreCase);
- return flag.HasValue && flag.Value;
- }
- }
-}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.AspNetCore/Extensions/ModelStateExtensions.cs b/src/Destiny.Core.Flow.AspNetCore/Extensions/ModelStateExtensions.cs
deleted file mode 100644
index fd9a62ad..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Extensions/ModelStateExtensions.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Mvc.Filters;
-using Destiny.Core.Flow.Helpers;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.ModelBinding;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Destiny.Core.Flow.AspNetCore.Extensions
-{
- //public static class MvcOptionsExtensions
- //{
- // public static MvcOptions UseExceptionHandling(this MvcOptions options)
- // {
- // options.Filters.Add();
- // return options;
- // }
- //}
-
- //public static class ModelStateExtensions
- //{
- // public static IDictionary ToSerializableDictionary(this ModelStateDictionary modelState)
- // {
- // return modelState.Where(x => x.Value.Errors.Any()).ToDictionary(
- // kvp => kvp.Key,
- // kvp => kvp.Value.Errors.Select(e => e.ErrorMessage).ToArray()
- // );
- // }
-
- // public static string ExportErrors(this ModelStateDictionary modelState, bool useHtmlNewLine = false)
- // {
- // var builder = new StringBuilder();
-
- // foreach (var error in modelState.Values.SelectMany(a => a.Errors))
- // {
- // var message = error.ErrorMessage;
- // if (string.IsNullOrWhiteSpace(message))
- // {
- // continue;
- // }
-
- // builder.AppendLine(!useHtmlNewLine ? message : $"{message}
");
- // }
-
- // return builder.ToString();
- // }
-
- // public static void ExportModelStateToTempData(this ModelStateDictionary modelState, Controller controller,
- // string key)
- // {
- // if (controller != null && modelState != null)
- // {
- // var modelStateJson = SerializeModelState(modelState);
- // controller.TempData[key] = modelStateJson;
- // }
- // }
-
- // public static string SerializeModelState(this ModelStateDictionary modelState)
- // {
- // var values = modelState
- // .Select(kvp => new ModelStateTransferValue
- // {
- // Key = kvp.Key,
- // AttemptedValue = kvp.Value.AttemptedValue,
- // RawValue = kvp.Value.RawValue,
- // ErrorMessages = kvp.Value.Errors.Select(err => err.ErrorMessage).ToList(),
- // });
-
- // return values.ToJson();
- // }
-
- // public class ModelStateTransferValue
- // {
- // public string Key { get; set; }
- // public string AttemptedValue { get; set; }
- // public object RawValue { get; set; }
- // public ICollection ErrorMessages { get; set; } = new List();
- // }
- //}
-}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.AspNetCore/Middleware/ExceptionHandlingMiddleware.cs b/src/Destiny.Core.Flow.AspNetCore/Middleware/ExceptionHandlingMiddleware.cs
deleted file mode 100644
index f4f62754..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Middleware/ExceptionHandlingMiddleware.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using Destiny.Core.Flow.AspNetCore;
-using Destiny.Core.Flow.AspNetCore.Extensions;
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Enums;
-using Destiny.Core.Flow.Exceptions;
-using Destiny.Core.Flow.Extensions;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Diagnostics;
-using Microsoft.AspNetCore.Http;
-using Microsoft.Extensions.Logging;
-using Microsoft.IdentityModel.Tokens;
-using System;
-using System.Net;
-using System.Threading.Tasks;
-
-namespace Destiny.Core.Flow.AspNetCore
-{
- ///
- ///
- ///
- public class ExceptionHandlingMiddleware
- {
- private readonly RequestDelegate _next;
- private readonly ILogger _logger;
-
- public ExceptionHandlingMiddleware(RequestDelegate next, ILoggerFactory loggerFactory)
- {
- _next = next;
- _logger = loggerFactory.CreateLogger();
- }
-
- public async Task Invoke(HttpContext context)
- {
- //todo 实现方式不够好,待重写,2021-1-26 大黄瓜
- try
- {
- var ex = context.Features.Get()?.Error;
-
- await _next(context);
- }
- catch (SecurityTokenExpiredException ex)
- {
- _logger.LogError(new EventId(), ex, ex.Message);
- await catchFunc(context, AjaxResultType.Unauthorized, ex, "未经授权", (int)HttpStatusCode.Unauthorized);
- }
- catch (AppException ex)
- {
- _logger.LogError(new EventId(), ex, ex.Message);
- await catchFunc(context, AjaxResultType.Error, ex, string.Empty, (int)HttpStatusCode.OK);
- }
- catch (Exception ex)
- {
- _logger.LogError(new EventId(), ex, ex.Message);
-
- await catchFunc(context, AjaxResultType.Error, ex, "服务器出现异常,请联系管理员!!", (int)HttpStatusCode.InternalServerError);
- }
- }
-
- //todo 实现方式不够好,待重写,2021-1-26 大黄瓜
- private Func catchFunc = async (context, ajax, ex, msg, code) =>
- {
-
- if (context.Request.IsAjaxRequest() || context.Request.IsJsonContextType())
- {
- if (context.Response.HasStarted)
- {
- return;
- }
- context.Response.StatusCode = code;
-
- context.Response.ContentType = "application/json; charset=utf-8";
- await context.Response.WriteAsync(new AjaxResult(msg.IsNullOrEmpty() ? ex.Message : msg, ajax).ToJson());
-
- }
-
- };
- }
-
-
-}
-
-public static class ErrorHandlingExtensions
-{
- ///
- /// 异常中间件
- ///
- ///
- ///
-
- public static IApplicationBuilder UseErrorHandling(this IApplicationBuilder builder)
- {
- return builder.UseMiddleware();
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModule.cs b/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModule.cs
deleted file mode 100644
index d325d130..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModule.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Destiny.Core.Flow.AspNetCore.Module
-{
- public class AspNetCoreModule : AspNetCoreModuleBase
- {
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModuleBase.cs b/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModuleBase.cs
deleted file mode 100644
index 3980ffe8..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Module/AspNetCoreModuleBase.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Mvc.Filters;
-using Destiny.Core.Flow.Extensions;
-using Destiny.Core.Flow.Modules;
-using Destiny.Core.Flow.Options;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Routing;
-using Microsoft.Extensions.DependencyInjection;
-using System;
-using System.Collections.Generic;
-using System.Security.Principal;
-using System.Text;
-
-namespace Destiny.Core.Flow.AspNetCore.Module
-{
- public abstract class AspNetCoreModuleBase : AppModule
- {
-
-
- public override void ConfigureServices(ConfigureServicesContext context)
- {
- var settings = context.Services.GetObject();
- context.Services.AddFileProvider();
-
- context.Services.AddHttpContextAccessor();
-
- context.Services.AddTransient(provider =>
- {
- IHttpContextAccessor accessor = provider.GetService();
- return accessor?.HttpContext?.User;
- });
-
- }
-
-
-
-
-
- public override void ApplicationInitialization(ApplicationContext context)
- {
- var app = context.GetApplicationBuilder();
-
- app.UseEndpoints(endpoints => {
- endpoints = this.Endpoints(endpoints);
-
- });
-
- }
-
-
- protected virtual IEndpointRouteBuilder Endpoints(IEndpointRouteBuilder endpoint)
- {
- endpoint.MapControllers();
- return endpoint;
-
-
- }
-
-
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Module/DestinyCoreModule.cs b/src/Destiny.Core.Flow.AspNetCore/Module/DestinyCoreModule.cs
deleted file mode 100644
index 7d76fe81..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Module/DestinyCoreModule.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using Destiny.Core.Flow.Dependency;
-using Destiny.Core.Flow.Events;
-using Destiny.Core.Flow.Extensions;
-using Destiny.Core.Flow.Modules;
-using Destiny.Core.Flow.Options;
-using Microsoft.Extensions.DependencyInjection;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-namespace Destiny.Core.Flow.AspNetCore.Module
-{
- [DependsOn(
-
- typeof(DependencyAppModule),
- typeof(MediatorAppModule)
- )]
- public class DestinyCoreModule : AppModule
- {
- public override void ConfigureServices(ConfigureServicesContext context)
- {
- context.Services.AddFileProvider();
- var configuration = context.GetConfiguration();
- context.Services.Configure(configuration.GetSection("Destiny"));
-
- var settings = context.GetConfiguration("Destiny");
- context.Services.AddObjectAccessor(settings);
- }
-
-
-
-
-
-
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Module/MvcModuleBase.cs b/src/Destiny.Core.Flow.AspNetCore/Module/MvcModuleBase.cs
deleted file mode 100644
index 8e03f115..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Module/MvcModuleBase.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Mvc.Filters;
-using Destiny.Core.Flow.Modules;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.Extensions.DependencyInjection;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace Destiny.Core.Flow.AspNetCore.Module
-{
-
- public abstract class MvcModuleBase : AppModule
- {
-
- public override void ConfigureServices(ConfigureServicesContext context)
- {
- AddCors(context);
- context.Services.AddControllers(o => this.AddMvcOptions(o)).AddNewtonsoftJson(options =>
- {
- options.SerializerSettings.ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver();
-
- options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss";
- });
- context.Services.AddScoped();
- context.Services.AddScoped();
- }
-
-
-
- protected virtual void AddMvcOptions(MvcOptions options)
- {
-
- }
- public override void ApplicationInitialization(ApplicationContext context)
- {
- var app= context.GetApplicationBuilder();
- app.UseRouting();
- UseCors(context);
-
- app.UseAuthentication(); //认证
- app.UseAuthorization();//授权
- }
-
- protected virtual void AddCors(ConfigureServicesContext context)
- {
-
-
- }
-
-
- protected virtual void UseCors(ApplicationContext context)
- {
-
-
-
- }
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/AuditLogFilterAttribute.cs b/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/AuditLogFilterAttribute.cs
deleted file mode 100644
index 6c15443c..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/AuditLogFilterAttribute.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Audit;
-using Destiny.Core.Flow.Dependency;
-using Destiny.Core.Flow.Extensions;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.Controllers;
-using Microsoft.AspNetCore.Mvc.Filters;
-using Microsoft.Extensions.DependencyInjection;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Destiny.Core.Flow.AspNetCore.Mvc.Filters
-{
- ///
- /// c# 计算程序运行时间三种方法
- /// https://www.cnblogs.com/dearzhoubi/p/9842452.html
- ///
- public class AuditLogFilterAttribute : ActionFilterAttribute
- {
-
- public override void OnActionExecuted(ActionExecutedContext context)
- {
-
- if (context.Result is ObjectResult result)
- {
- if (result.Value is AjaxResult ajax)
- {
- var type = ajax.Type;
- IServiceProvider provider = context.HttpContext.RequestServices;
-
- DictionaryScoped dict = provider.GetService();
- if (!ajax.Success)
- {
- dict.AuditChange.Message = ajax.Message;
- }
-
- dict.AuditChange.ResultType = type;
- }
-
-
- }
-
- }
-
- public override void OnActionExecuting(ActionExecutingContext context)
- {
- IServiceProvider provider = context.HttpContext.RequestServices;
- var controllerAction = context.ActionDescriptor as ControllerActionDescriptor;
- var isAuditEnabled = provider.GetAppSettings().AuditEnabled;
- if (isAuditEnabled)
- {
- DictionaryScoped dict = provider.GetService();
- AuditChange auditChange = new AuditChange();
- auditChange.FunctionName = $"{context.Controller.GetType().ToDescription()}-{controllerAction.MethodInfo.ToDescription()}";
- auditChange.Action = context.HttpContext.Request.Path;
- auditChange.Ip = context.HttpContext.GetClientIP();
- auditChange.BrowserInformation = context.HttpContext.Request.Headers["User-Agent"].ToString();
- auditChange.StartTime = DateTime.Now;
- dict.AuditChange = auditChange;
- }
-
- }
- public override void OnResultExecuted(ResultExecutedContext context)
- {
-
- IServiceProvider provider = context.HttpContext.RequestServices;
- var action = context.ActionDescriptor as ControllerActionDescriptor;
- var isAuditEnabled = provider.GetAppSettings().AuditEnabled;
- if (isAuditEnabled)
- {
-
- var dic = provider.GetService();
-
- dic.AuditChange.ExecutionDuration = DateTime.Now.Subtract(dic.AuditChange.StartTime).TotalMilliseconds;
- provider.GetService()?.SaveAsync(dic.AuditChange).GetAwaiter().GetResult();
-
- }
- }
-
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/HandleException.cs b/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/HandleException.cs
deleted file mode 100644
index 9776aabb..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/HandleException.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Extensions;
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Enums;
-using Destiny.Core.Flow.Extensions;
-using Destiny.Core.Flow.Validation;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.Filters;
-using Microsoft.Extensions.Logging;
-using System;
-using System.Linq;
-
-namespace Destiny.Core.Flow.AspNetCore.Mvc.Filters
-{
- public class HandleException : IExceptionFilter
- {
- private readonly ILogger _logger;
-
- public HandleException(ILogger logger)
- {
- _logger = logger ?? throw new ArgumentNullException(nameof(logger));
- }
-
- public void OnException(ExceptionContext context)
- {
- if (context.HttpContext.Request.IsAjaxRequest() || context.HttpContext.Request.IsJsonContextType())
- {
- context.ExceptionHandled = true;
- AjaxResult result = new AjaxResult();
-
- if (context.Exception is ValidationException validationException)
- {
- var message = string.Join(",", validationException.Failures.Select(o => o.Message));
- context.Result = new JsonResult(new AjaxResult(validationException.Message.IsNullOrWhiteSpace() ? message : validationException.Message, AjaxResultType.Error));
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/PermissionAuthorizationFilter.cs b/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/PermissionAuthorizationFilter.cs
deleted file mode 100644
index 5d13b79f..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/PermissionAuthorizationFilter.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Permission;
-using Destiny.Core.Flow.Ui;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.Controllers;
-using Microsoft.AspNetCore.Mvc.Filters;
-using Microsoft.Extensions.Logging;
-using System.Linq;
-using System.Reflection;
-using System.Security.Principal;
-using System.Threading.Tasks;
-
-namespace Destiny.Core.Flow.AspNetCore.Mvc.Filters
-{
- ///
- ///
- ///
- public class PermissionAuthorizationFilter : IAsyncAuthorizationFilter
- {
- private readonly IAuthorityVerification _authority;
- private readonly IPrincipal _principal;
- private readonly ILogger _logger = null;
-
- public PermissionAuthorizationFilter(IAuthorityVerification authority, IPrincipal principal, ILogger logger)
- {
- _authority = authority;
- _principal = principal;
- _logger = logger;
- }
-
- public async Task OnAuthorizationAsync(AuthorizationFilterContext context)
- {
- _logger.LogInformation($"进入权限判断");
- var action = context.ActionDescriptor as ControllerActionDescriptor;
- var linkurl = context.HttpContext.Request.Path.Value.Replace("/api/", "");
- var result = new AjaxResult(MessageDefinitionType.Unauthorized, Enums.AjaxResultType.Unauthorized);
- if (!action.EndpointMetadata.Any(x => x is AllowAnonymousAttribute))
- {
- if (!_principal.Identity.IsAuthenticated)
- {
- context.HttpContext.Response.StatusCode = StatusCodes.Status401Unauthorized;
- context.Result = new JsonResult(result);
- return;
- }
- else
- {
- if (!action.EndpointMetadata.Any(x => x is NoAuthorityVerificationAttribute))
- {
- var result1 = (await _authority.IsPermission(linkurl.ToLower()));
- if (!result1.Success)
- {
- ////????不包含的时候怎么返回出去?这个请求终止掉
- ///
- _logger.LogError($"此{linkurl}地址没有权限");
- //result = result1.ToAjaxResult();
- //context.HttpContext.Response.StatusCode = StatusCodes.Status403Forbidden;
- //context.Result.ToJsonResult(result);
- result.Message = MessageDefinitionType.Uncertified;
- result.Type = Enums.AjaxResultType.Uncertified;
- context.HttpContext.Response.StatusCode = StatusCodes.Status403Forbidden;
- context.Result = new JsonResult(result);
- return;
- }
- }
- }
- }
- _logger.LogInformation($"权限判断结束");
- }
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/UnitOfWorkAtrrribute.cs b/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/UnitOfWorkAtrrribute.cs
deleted file mode 100644
index 77cbc870..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/UnitOfWorkAtrrribute.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using Destiny.Core.Flow.Entity;
-using Microsoft.AspNetCore.Mvc.Filters;
-using System;
-using System.Collections.Generic;
-using System.Text;
-using Microsoft.Extensions.DependencyInjection;
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.Extensions.Logging;
-using Destiny.Core.Flow.Extensions;
-using Destiny.Core.Flow.AspNetCore.Extensions;
-using Destiny.Core.Flow.Exceptions;
-
-namespace Destiny.Core.Flow.AspNetCore.Mvc.Filters
-{
- public class UnitOfWorkAtrrribute : ActionFilterAttribute
- {
- private readonly IServiceProvider _serviceProvider = null;
- private readonly ILogger _logger = null;
- public UnitOfWorkAtrrribute(IServiceProvider serviceProvider)
- {
-
- _serviceProvider = serviceProvider;
- _logger = serviceProvider.GetLogger();
- _unitOfWork = serviceProvider.GetService();
- }
-
- private readonly IUnitOfWork _unitOfWork = null;
- public override void OnActionExecuting(ActionExecutingContext context)
- {
- _unitOfWork?.BeginTransaction();
- _unitOfWork?.Push();
- }
-
-
- public override void OnActionExecuted(ActionExecutedContext context)
- {
- _unitOfWork?.Pop();
- if (context.Exception != null && context.ExceptionHandled)
- {
- var ex = context.Exception;
- _unitOfWork?.Rollback();
- MessageBox.Show(ex.Message,ex);
- }
-
- if (context.Result is ObjectResult result)
- {
- if (result.Value is AjaxResult ajax)
- {
-
- if (ajax.Success)
- {
- _unitOfWork?.Commit();
- }
- else
- {
- _unitOfWork?.Rollback();
- }
-
- context.Result = new JsonResult(new AjaxResult() { Type = ajax.Type, Message = ajax.Message,Data=ajax.Data,Success=ajax.Success });
- }
-
-
- }
- }
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/ValidationFilterAttribute.cs b/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/ValidationFilterAttribute.cs
deleted file mode 100644
index ba034efa..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Mvc/Filters/ValidationFilterAttribute.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using Destiny.Core.Flow.Validation.Interceptor;
-using Microsoft.AspNetCore.Mvc.Controllers;
-using Microsoft.AspNetCore.Mvc.Filters;
-using Microsoft.Extensions.Logging;
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using System.Text;
-using System.Linq;
-using Destiny.Core.Flow.AspNetCore.Ui;
-using Destiny.Core.Flow.Extensions;
-using Microsoft.AspNetCore.Mvc;
-
-namespace Destiny.Core.Flow.AspNetCore.Mvc.Filters
-{
- [AttributeUsage(AttributeTargets.Method)]
- //验证特性
- public class ValidationFilterAttribute : ActionFilterAttribute
- {
-
- private readonly MethodInvocationValidator _validator;
- private readonly ILogger _logger;
-
- public ValidationFilterAttribute(MethodInvocationValidator validator, ILoggerFactory loggerFactory)
- {
- _validator = validator;
- _logger = loggerFactory.CreateLogger("Destiny.Core.Flow.AspNetCore.Mvc.Filters");
- }
-
- public override void OnActionExecuting(ActionExecutingContext context)
- {
-
- var action = context.ActionDescriptor as ControllerActionDescriptor;
- var method = action.MethodInfo;
-
-
- var arguments = context.ActionArguments.Values.ToArray();
- _logger.LogInformation($"开启验证:{method.Name}");
- var failures = _validator.Validate(method, arguments);
-
- if (failures.Any())
- {
- _logger.LogInformation($"验证失败:{method.Name} {failures.Select(o => o.ToString()).ToJoin()}");
- context.Result = new JsonResult( new AjaxResult() { Type = Enums.AjaxResultType.Error, Message = failures.Select(o => o.ToString()).ToJoin() });
- return;
- }
-
- _logger.LogInformation($"验证成功:{method.Name}");
- }
-
-
- }
-}
diff --git a/src/Destiny.Core.Flow.AspNetCore/Ui/AjaxResult.cs b/src/Destiny.Core.Flow.AspNetCore/Ui/AjaxResult.cs
deleted file mode 100644
index 4f5cb048..00000000
--- a/src/Destiny.Core.Flow.AspNetCore/Ui/AjaxResult.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using Destiny.Core.Flow.Enums;
-using Destiny.Core.Flow.Filter;
-using Destiny.Core.Flow.Helpers;
-using Destiny.Core.Flow.Ui;
-
-namespace Destiny.Core.Flow.AspNetCore.Ui
-{
- ///
- /// Ajax操作结果
- ///
- public class AjaxResult: ResultBase