From 30b4185dc34c19a9ee451e8e4d5ebda868e59bed Mon Sep 17 00:00:00 2001 From: gdlcf88 <47396430@qq.com> Date: Tue, 19 May 2020 18:02:52 +0800 Subject: [PATCH] Removed WeChatPay module --- .../.gitattributes | 1 - .../.gitignore | 258 ------------------ .../EasyAbp.EShop.Payments.WeChatPay.sln | 167 ------------ ...p.EShop.Payments.WeChatPay.sln.DotSettings | 23 -- .../common.props | 28 -- .../docker-compose.migrations.yml | 13 - .../docker-compose.override.yml | 29 -- .../docker-compose.yml | 25 -- ...nts.WeChatPay.Application.Contracts.csproj | 16 -- .../WeChatPayPermissionDefinitionProvider.cs | 19 -- .../Authorization/WeChatPayPermissions.cs | 14 - ...entsWeChatPayApplicationContractsModule.cs | 23 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...Shop.Payments.WeChatPay.Application.csproj | 17 -- ...EShopPaymentsWeChatPayApplicationModule.cs | 25 -- .../Payments/WeChatPay/WeChatPayAppService.cs | 14 - .../WeChatPayApplicationAutoMapperProfile.cs | 14 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...op.Payments.WeChatPay.Domain.Shared.csproj | 19 -- ...ShopPaymentsWeChatPayDomainSharedModule.cs | 37 --- .../WeChatPay/Localization/WeChatPay/cs.json | 6 - .../WeChatPay/Localization/WeChatPay/en.json | 6 - .../WeChatPay/Localization/WeChatPay/pl.json | 6 - .../Localization/WeChatPay/pt-BR.json | 6 - .../WeChatPay/Localization/WeChatPay/sl.json | 6 - .../WeChatPay/Localization/WeChatPay/tr.json | 6 - .../WeChatPay/Localization/WeChatPay/vi.json | 6 - .../Localization/WeChatPay/zh-Hans.json | 6 - .../Localization/WeChatPay/zh-Hant.json | 6 - .../Localization/WeChatPayResource.cs | 10 - .../Payments/WeChatPay/WeChatPayErrorCodes.cs | 7 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...Abp.EShop.Payments.WeChatPay.Domain.csproj | 17 -- .../WeChatPay/ClaimPaymentOpenIdProvider.cs | 28 -- .../EShopPaymentsWeChatPayDomainModule.cs | 25 -- .../WeChatPay/EShopWeChatPayHandler.cs | 61 ----- .../WeChatPay/IPaymentOpenIdProvider.cs | 10 - .../SettingOptionResolveContributor.cs | 32 --- .../WeChatPaySettingDefinitionProvider.cs | 35 --- .../WeChatPay/Settings/WeChatPaySettings.cs | 24 -- .../WeChatPay/UnifiedOrderFailedException.cs | 21 -- .../WeChatPay/WeChatPayDbProperties.cs | 11 - .../WeChatPayPaymentServiceProvider.cs | 108 -------- ...DocumentMissingRequiredElementException.cs | 12 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...ments.WeChatPay.EntityFrameworkCore.csproj | 19 -- ...mentsWeChatPayEntityFrameworkCoreModule.cs | 23 -- .../IWeChatPayDbContext.cs | 13 - .../EntityFrameworkCore/WeChatPayDbContext.cs | 27 -- ...ChatPayDbContextModelCreatingExtensions.cs | 43 --- ...ChatPayModelBuilderConfigurationOptions.cs | 18 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...p.Payments.WeChatPay.HttpApi.Client.csproj | 15 - ...hopPaymentsWeChatPayHttpApiClientModule.cs | 22 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...bp.EShop.Payments.WeChatPay.HttpApi.csproj | 16 -- .../EShopPaymentsWeChatPayHttpApiModule.cs | 36 --- .../Payments/WeChatPay/WeChatPayController.cs | 13 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...bp.EShop.Payments.WeChatPay.MongoDB.csproj | 19 -- .../EShopPaymentsWeChatPayMongoDbModule.cs | 23 -- .../MongoDB/IWeChatPayMongoDbContext.cs | 13 - .../MongoDB/WeChatPayMongoDbContext.cs | 20 -- .../WeChatPayMongoDbContextExtensions.cs | 22 -- ...ayMongoModelBuilderConfigurationOptions.cs | 14 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../EShopPaymentsWeChatPayWebModule.cs | 57 ---- ...asyAbp.EShop.Payments.WeChatPay.Web.csproj | 42 --- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../EShop/Payments/WeChatPay/Index.cshtml | 7 - .../EShop/Payments/WeChatPay/Index.cshtml.cs | 9 - .../Payments/WeChatPay/_ViewImports.cshtml | 4 - .../Pages/WeChatPayPage.cs | 16 -- .../Pages/WeChatPayPageModel.cs | 16 -- .../Properties/launchSettings.json | 27 -- .../WeChatPayMenuContributor.cs | 23 -- .../WeChatPayWebAutoMapperProfile.cs | 14 - ...pPaymentsWeChatPayApplicationTestModule.cs | 13 - ...ayments.WeChatPay.Application.Tests.csproj | 16 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../WeChatPayApplicationTestBase.cs | 10 - .../EShopPaymentsWeChatPayDomainTestModule.cs | 17 -- ...hop.Payments.WeChatPay.Domain.Tests.csproj | 15 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../WeChatPayDomainTestBase.cs | 10 - ...WeChatPay.EntityFrameworkCore.Tests.csproj | 19 -- ...sWeChatPayEntityFrameworkCoreTestModule.cs | 41 --- .../WeChatPayEntityFrameworkCoreTestBase.cs | 10 - .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../ClientDemoService.cs | 146 ---------- .../ConsoleTestAppHostedService.cs | 26 -- ...PaymentsWeChatPayConsoleApiClientModule.cs | 14 - ...atPay.HttpApi.Client.ConsoleTestApp.csproj | 26 -- .../Program.cs | 21 -- .../appsettings.json | 21 -- ...op.Payments.WeChatPay.MongoDB.Tests.csproj | 17 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- ...EShopPaymentsWeChatPayMongoDbTestModule.cs | 29 -- .../MongoDB/WeChatPayMongoDbTestBase.cs | 10 - .../EShopPaymentsWeChatPayTestBaseModule.cs | 42 --- ...p.EShop.Payments.WeChatPay.TestBase.csproj | 23 -- .../FodyWeavers.xml | 3 - .../FodyWeavers.xsd | 30 -- .../Security/FakeCurrentPrincipalAccessor.cs | 39 --- .../WeChatPayDataSeedContributor.cs | 27 -- .../WeChatPayTestBase.cs | 60 ---- 119 files changed, 2882 deletions(-) delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/.gitattributes delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/.gitignore delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln.DotSettings delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/common.props delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.migrations.yml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.override.yml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.yml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissionDefinitionProvider.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissions.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationContractsModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp.EShop.Payments.WeChatPay.Application.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayAppService.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayApplicationAutoMapperProfile.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainSharedModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/cs.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/en.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pl.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pt-BR.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/sl.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/tr.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/vi.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hans.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hant.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPayResource.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/WeChatPayErrorCodes.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/ClaimPaymentOpenIdProvider.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopWeChatPayHandler.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/IPaymentOpenIdProvider.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/SettingOptionResolveContributor.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettingDefinitionProvider.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettings.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/UnifiedOrderFailedException.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayDbProperties.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayPaymentServiceProvider.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/XmlDocumentMissingRequiredElementException.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/IWeChatPayDbContext.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContext.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContextModelCreatingExtensions.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayModelBuilderConfigurationOptions.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiClientModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp.EShop.Payments.WeChatPay.HttpApi.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/WeChatPayController.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp.EShop.Payments.WeChatPay.MongoDB.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/EShopPaymentsWeChatPayMongoDbModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/IWeChatPayMongoDbContext.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContext.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContextExtensions.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoModelBuilderConfigurationOptions.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EShopPaymentsWeChatPayWebModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs delete mode 100644 modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/.gitattributes b/modules/EasyAbp.EShop.Payments.WeChatPay/.gitattributes deleted file mode 100644 index c941e526..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -**/wwwroot/libs/** linguist-vendored diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/.gitignore b/modules/EasyAbp.EShop.Payments.WeChatPay/.gitignore deleted file mode 100644 index 619e138d..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/.gitignore +++ /dev/null @@ -1,258 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# DNX -project.lock.json -artifacts/ - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config -# NuGet v3's project.json files produces more ignoreable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.pfx -*.publishsettings -node_modules/ -orleans.codegen.cs - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# WeChatPay -host/EasyAbp.EShop.Payments.WeChatPay.IdentityServer/Logs/logs.txt -host/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Host/Logs/logs.txt -host/EasyAbp.EShop.Payments.WeChatPay.Web.Host/Logs/logs.txt -host/EasyAbp.EShop.Payments.WeChatPay.Web.Unified/Logs/logs.txt diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln b/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln deleted file mode 100644 index 2abcba6b..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln +++ /dev/null @@ -1,167 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29001.49 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Domain.Shared", "src\EasyAbp.EShop.Payments.WeChatPay.Domain.Shared\EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj", "{D64C1577-4929-4B60-939E-96DE1534891A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Domain", "src\EasyAbp.EShop.Payments.WeChatPay.Domain\EasyAbp.EShop.Payments.WeChatPay.Domain.csproj", "{F2840BC7-0188-4606-9126-DADD0F5ABF7A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Application.Contracts", "src\EasyAbp.EShop.Payments.WeChatPay.Application.Contracts\EasyAbp.EShop.Payments.WeChatPay.Application.Contracts.csproj", "{BD65D04F-08D5-40C1-8C24-77CA0BACB877}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Application", "src\EasyAbp.EShop.Payments.WeChatPay.Application\EasyAbp.EShop.Payments.WeChatPay.Application.csproj", "{78040F9E-3501-4A40-82DF-00A597710F35}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{649A3FFA-182F-4E56-9717-E6A9A2BEC545}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "host", "host", "{E400416D-2895-4512-9D17-90681EEC7E0A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore", "src\EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore\EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.csproj", "{0CE86223-D31D-4315-A1F5-87BA3EE1B844}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.MongoDB", "src\EasyAbp.EShop.Payments.WeChatPay.MongoDB\EasyAbp.EShop.Payments.WeChatPay.MongoDB.csproj", "{F1C58097-4C08-4D88-8976-6B3389391481}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.HttpApi", "src\EasyAbp.EShop.Payments.WeChatPay.HttpApi\EasyAbp.EShop.Payments.WeChatPay.HttpApi.csproj", "{077AA5F8-8B61-420C-A6B5-0150A66FDB34}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client", "src\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.csproj", "{36E2735F-CEAB-44C8-A6D1-2CDAFF399751}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.TestBase", "test\EasyAbp.EShop.Payments.WeChatPay.TestBase\EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj", "{C5BB573D-3030-4BCB-88B7-F6A85C32766C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests", "test\EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests\EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj", "{527F645C-C1FC-406E-8479-81386C8ECF13}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests", "test\EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests\EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj", "{D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Domain.Tests", "test\EasyAbp.EShop.Payments.WeChatPay.Domain.Tests\EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj", "{E60895E5-79C4-447D-88B7-85CB5BA336A4}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Application.Tests", "test\EasyAbp.EShop.Payments.WeChatPay.Application.Tests\EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj", "{90CB5DC4-C040-45C7-8900-9688B26405BC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.HttpApi.Host", "host\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Host\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Host.csproj", "{37B135B0-DAFE-4616-B25C-1BDF32FC44A2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Web", "src\EasyAbp.EShop.Payments.WeChatPay.Web\EasyAbp.EShop.Payments.WeChatPay.Web.csproj", "{3B7B6317-1B85-4164-8E11-75574F80AE17}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp", "test\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp\EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj", "{1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Web.Host", "host\EasyAbp.EShop.Payments.WeChatPay.Web.Host\EasyAbp.EShop.Payments.WeChatPay.Web.Host.csproj", "{73513786-B6C6-4A21-89C5-0FBDD0A46107}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.IdentityServer", "host\EasyAbp.EShop.Payments.WeChatPay.IdentityServer\EasyAbp.EShop.Payments.WeChatPay.IdentityServer.csproj", "{690203F4-3CD5-4569-88D9-EE831EEA5F5F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Host.Shared", "host\EasyAbp.EShop.Payments.WeChatPay.Host.Shared\EasyAbp.EShop.Payments.WeChatPay.Host.Shared.csproj", "{F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Payments.WeChatPay.Web.Unified", "host\EasyAbp.EShop.Payments.WeChatPay.Web.Unified\EasyAbp.EShop.Payments.WeChatPay.Web.Unified.csproj", "{3D872C41-E226-45C8-89C1-9D3DBD7C73F2}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D64C1577-4929-4B60-939E-96DE1534891A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D64C1577-4929-4B60-939E-96DE1534891A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D64C1577-4929-4B60-939E-96DE1534891A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D64C1577-4929-4B60-939E-96DE1534891A}.Release|Any CPU.Build.0 = Release|Any CPU - {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F2840BC7-0188-4606-9126-DADD0F5ABF7A}.Release|Any CPU.Build.0 = Release|Any CPU - {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BD65D04F-08D5-40C1-8C24-77CA0BACB877}.Release|Any CPU.Build.0 = Release|Any CPU - {78040F9E-3501-4A40-82DF-00A597710F35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {78040F9E-3501-4A40-82DF-00A597710F35}.Debug|Any CPU.Build.0 = Debug|Any CPU - {78040F9E-3501-4A40-82DF-00A597710F35}.Release|Any CPU.ActiveCfg = Release|Any CPU - {78040F9E-3501-4A40-82DF-00A597710F35}.Release|Any CPU.Build.0 = Release|Any CPU - {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0CE86223-D31D-4315-A1F5-87BA3EE1B844}.Release|Any CPU.Build.0 = Release|Any CPU - {F1C58097-4C08-4D88-8976-6B3389391481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F1C58097-4C08-4D88-8976-6B3389391481}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F1C58097-4C08-4D88-8976-6B3389391481}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F1C58097-4C08-4D88-8976-6B3389391481}.Release|Any CPU.Build.0 = Release|Any CPU - {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Debug|Any CPU.Build.0 = Debug|Any CPU - {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Release|Any CPU.ActiveCfg = Release|Any CPU - {077AA5F8-8B61-420C-A6B5-0150A66FDB34}.Release|Any CPU.Build.0 = Release|Any CPU - {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Debug|Any CPU.Build.0 = Debug|Any CPU - {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Release|Any CPU.ActiveCfg = Release|Any CPU - {36E2735F-CEAB-44C8-A6D1-2CDAFF399751}.Release|Any CPU.Build.0 = Release|Any CPU - {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C5BB573D-3030-4BCB-88B7-F6A85C32766C}.Release|Any CPU.Build.0 = Release|Any CPU - {527F645C-C1FC-406E-8479-81386C8ECF13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {527F645C-C1FC-406E-8479-81386C8ECF13}.Debug|Any CPU.Build.0 = Debug|Any CPU - {527F645C-C1FC-406E-8479-81386C8ECF13}.Release|Any CPU.ActiveCfg = Release|Any CPU - {527F645C-C1FC-406E-8479-81386C8ECF13}.Release|Any CPU.Build.0 = Release|Any CPU - {D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}.Release|Any CPU.Build.0 = Release|Any CPU - {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E60895E5-79C4-447D-88B7-85CB5BA336A4}.Release|Any CPU.Build.0 = Release|Any CPU - {90CB5DC4-C040-45C7-8900-9688B26405BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {90CB5DC4-C040-45C7-8900-9688B26405BC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {90CB5DC4-C040-45C7-8900-9688B26405BC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {90CB5DC4-C040-45C7-8900-9688B26405BC}.Release|Any CPU.Build.0 = Release|Any CPU - {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {37B135B0-DAFE-4616-B25C-1BDF32FC44A2}.Release|Any CPU.Build.0 = Release|Any CPU - {3B7B6317-1B85-4164-8E11-75574F80AE17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3B7B6317-1B85-4164-8E11-75574F80AE17}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3B7B6317-1B85-4164-8E11-75574F80AE17}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3B7B6317-1B85-4164-8E11-75574F80AE17}.Release|Any CPU.Build.0 = Release|Any CPU - {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}.Release|Any CPU.Build.0 = Release|Any CPU - {73513786-B6C6-4A21-89C5-0FBDD0A46107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {73513786-B6C6-4A21-89C5-0FBDD0A46107}.Debug|Any CPU.Build.0 = Debug|Any CPU - {73513786-B6C6-4A21-89C5-0FBDD0A46107}.Release|Any CPU.ActiveCfg = Release|Any CPU - {73513786-B6C6-4A21-89C5-0FBDD0A46107}.Release|Any CPU.Build.0 = Release|Any CPU - {690203F4-3CD5-4569-88D9-EE831EEA5F5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {690203F4-3CD5-4569-88D9-EE831EEA5F5F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {690203F4-3CD5-4569-88D9-EE831EEA5F5F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {690203F4-3CD5-4569-88D9-EE831EEA5F5F}.Release|Any CPU.Build.0 = Release|Any CPU - {F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}.Release|Any CPU.Build.0 = Release|Any CPU - {3D872C41-E226-45C8-89C1-9D3DBD7C73F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3D872C41-E226-45C8-89C1-9D3DBD7C73F2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3D872C41-E226-45C8-89C1-9D3DBD7C73F2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3D872C41-E226-45C8-89C1-9D3DBD7C73F2}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {D64C1577-4929-4B60-939E-96DE1534891A} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {F2840BC7-0188-4606-9126-DADD0F5ABF7A} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {BD65D04F-08D5-40C1-8C24-77CA0BACB877} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {78040F9E-3501-4A40-82DF-00A597710F35} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {0CE86223-D31D-4315-A1F5-87BA3EE1B844} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {F1C58097-4C08-4D88-8976-6B3389391481} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {077AA5F8-8B61-420C-A6B5-0150A66FDB34} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {36E2735F-CEAB-44C8-A6D1-2CDAFF399751} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {C5BB573D-3030-4BCB-88B7-F6A85C32766C} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {527F645C-C1FC-406E-8479-81386C8ECF13} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {E60895E5-79C4-447D-88B7-85CB5BA336A4} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {90CB5DC4-C040-45C7-8900-9688B26405BC} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {37B135B0-DAFE-4616-B25C-1BDF32FC44A2} = {E400416D-2895-4512-9D17-90681EEC7E0A} - {3B7B6317-1B85-4164-8E11-75574F80AE17} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545} - {1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8} = {CCD2960C-23CC-4AB4-B84D-60C7AAA52F4D} - {73513786-B6C6-4A21-89C5-0FBDD0A46107} = {E400416D-2895-4512-9D17-90681EEC7E0A} - {690203F4-3CD5-4569-88D9-EE831EEA5F5F} = {E400416D-2895-4512-9D17-90681EEC7E0A} - {F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB} = {E400416D-2895-4512-9D17-90681EEC7E0A} - {3D872C41-E226-45C8-89C1-9D3DBD7C73F2} = {E400416D-2895-4512-9D17-90681EEC7E0A} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {4324B3B4-B60B-4E3C-91D8-59576B4E26DD} - EndGlobalSection -EndGlobal diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln.DotSettings b/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln.DotSettings deleted file mode 100644 index cb0b2c91..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/EasyAbp.EShop.Payments.WeChatPay.sln.DotSettings +++ /dev/null @@ -1,23 +0,0 @@ - - True - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - Required - Required - Required - Required - False - True - False - False - True - False - False - SQL - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/common.props b/modules/EasyAbp.EShop.Payments.WeChatPay/common.props deleted file mode 100644 index aa8ac7d6..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/common.props +++ /dev/null @@ -1,28 +0,0 @@ - - - latest - 0.1.11 - $(NoWarn);CS1591 - true - EasyAbp Team - An abp application module group that provides basic e-shop service. - https://github.com/EasyAbp/EShop - https://github.com/EasyAbp/EShop - abp module easyabp EShop shopping shop ordering product payment store mall - EasyAbp - Apache-2.0 - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.migrations.yml b/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.migrations.yml deleted file mode 100644 index 326317a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.migrations.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: '3.4' - -services: - migrations: - build: - context: ../../ - dockerfile: templates/service/database/Dockerfile - depends_on: - - sqlserver - environment: - - IdentityServer_DB=WeChatPay_Identity - - WeChatPay_DB=WeChatPay_ModuleDb - - SA_PASSWORD=yourStrong(!)Password diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.override.yml b/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.override.yml deleted file mode 100644 index 85e84d52..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.override.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '3.4' - -services: - sqlserver: - environment: - - SA_PASSWORD=yourStrong(!)Password - - ACCEPT_EULA=Y - ports: - - "51599:1433" - - identity-server: - environment: - - ASPNETCORE_URLS=http://0.0.0.0:80 - - ConnectionStrings__Default=Server=sqlserver;Database=WeChatPay_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - ConnectionStrings__SqlServerCache=Server=sqlserver;Database=WeChatPay_Cache;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - ports: - - "51600:80" - - we-chat-pay: - environment: - - ASPNETCORE_URLS=http://0.0.0.0:80 - - ConnectionStrings__Default=Server=sqlserver;Database=WeChatPay_ModuleDb;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - ConnectionStrings__AbpSettingManagement=Server=sqlserver;Database=WeChatPay_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - ConnectionStrings__AbpPermissionManagement=Server=sqlserver;Database=WeChatPay_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - ConnectionStrings__AbpAuditLogging=Server=sqlserver;Database=WeChatPay_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - ConnectionStrings__SqlServerCache=Server=sqlserver;Database=WeChatPay_Cache;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false - - AuthServer__Authority=http://identity-server - ports: - - "51601:80" \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.yml b/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.yml deleted file mode 100644 index f6fdf4db..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/docker-compose.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: '3.4' - -services: - sqlserver: - image: mcr.microsoft.com/mssql/server - volumes: - - dbdata:/var/opt/mssql - - identity-server: - build: - context: ../../ - dockerfile: templates/service/host/IdentityServerHost/Dockerfile - depends_on: - - sqlserver - - we-chat-pay: - build: - context: ../../ - dockerfile: templates/service/host/EasyAbp.EShop.Payments.WeChatPay.Host/Dockerfile - depends_on: - - sqlserver - - identity-server - -volumes: - dbdata: \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts.csproj deleted file mode 100644 index d5fe5376..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - netstandard2.0 - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissionDefinitionProvider.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissionDefinitionProvider.cs deleted file mode 100644 index e6d1f5bf..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissionDefinitionProvider.cs +++ /dev/null @@ -1,19 +0,0 @@ -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.Authorization.Permissions; -using Volo.Abp.Localization; - -namespace EasyAbp.EShop.Payments.WeChatPay.Authorization -{ - public class WeChatPayPermissionDefinitionProvider : PermissionDefinitionProvider - { - public override void Define(IPermissionDefinitionContext context) - { - //var moduleGroup = context.AddGroup(WeChatPayPermissions.GroupName, L("Permission:WeChatPay")); - } - - private static LocalizableString L(string name) - { - return LocalizableString.Create(name); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissions.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissions.cs deleted file mode 100644 index 31009273..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/Authorization/WeChatPayPermissions.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Volo.Abp.Reflection; - -namespace EasyAbp.EShop.Payments.WeChatPay.Authorization -{ - public class WeChatPayPermissions - { - public const string GroupName = "EasyAbp.EShop.Payments.WeChatPay"; - - public static string[] GetAll() - { - return ReflectionHelper.GetPublicConstantsRecursively(typeof(WeChatPayPermissions)); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationContractsModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationContractsModule.cs deleted file mode 100644 index 83446955..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationContractsModule.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Volo.Abp.Application; -using Volo.Abp.Modularity; -using Volo.Abp.VirtualFileSystem; -using Volo.Abp.Authorization; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayDomainSharedModule), - typeof(AbpDddApplicationContractsModule), - typeof(AbpAuthorizationModule) - )] - public class EShopPaymentsWeChatPayApplicationContractsModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - Configure(options => - { - options.FileSets.AddEmbedded("EasyAbp.EShop.Payments.WeChatPay"); - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application.Contracts/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp.EShop.Payments.WeChatPay.Application.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp.EShop.Payments.WeChatPay.Application.csproj deleted file mode 100644 index 27916534..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp.EShop.Payments.WeChatPay.Application.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - netstandard2.0 - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationModule.cs deleted file mode 100644 index 8b01e483..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayApplicationModule.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.AutoMapper; -using Volo.Abp.Modularity; -using Volo.Abp.Application; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayDomainModule), - typeof(EShopPaymentsWeChatPayApplicationContractsModule), - typeof(AbpDddApplicationModule), - typeof(AbpAutoMapperModule) - )] - public class EShopPaymentsWeChatPayApplicationModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.AddAutoMapperObjectMapper(); - Configure(options => - { - options.AddMaps(validate: true); - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayAppService.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayAppService.cs deleted file mode 100644 index 78ed2d1a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayAppService.cs +++ /dev/null @@ -1,14 +0,0 @@ -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.Application.Services; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public abstract class WeChatPayAppService : ApplicationService - { - protected WeChatPayAppService() - { - LocalizationResource = typeof(WeChatPayResource); - ObjectMapperContext = typeof(EShopPaymentsWeChatPayApplicationModule); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayApplicationAutoMapperProfile.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayApplicationAutoMapperProfile.cs deleted file mode 100644 index 3c482e57..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/EasyAbp/EShop/Payments/WeChatPay/WeChatPayApplicationAutoMapperProfile.cs +++ /dev/null @@ -1,14 +0,0 @@ -using AutoMapper; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class WeChatPayApplicationAutoMapperProfile : Profile - { - public WeChatPayApplicationAutoMapperProfile() - { - /* You can configure your AutoMapper mapping configuration here. - * Alternatively, you can split your mapping configurations - * into multiple profile classes for a better organization. */ - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Application/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj deleted file mode 100644 index 719f3169..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - netstandard2.0 - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainSharedModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainSharedModule.cs deleted file mode 100644 index d531ab9a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainSharedModule.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Volo.Abp.Modularity; -using Volo.Abp.Localization; -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.Localization.ExceptionHandling; -using Volo.Abp.Validation; -using Volo.Abp.Validation.Localization; -using Volo.Abp.VirtualFileSystem; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(AbpValidationModule) - )] - public class EShopPaymentsWeChatPayDomainSharedModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - Configure(options => - { - options.FileSets.AddEmbedded(); - }); - - Configure(options => - { - options.Resources - .Add("en") - .AddBaseTypes(typeof(AbpValidationResource)) - .AddVirtualJson("/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay"); - }); - - Configure(options => - { - options.MapCodeNamespace("EasyAbp.EShop.Payments.WeChatPay", typeof(WeChatPayResource)); - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/cs.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/cs.json deleted file mode 100644 index 6a060a54..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/cs.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "cs", - "texts": { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/en.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/en.json deleted file mode 100644 index 171d9a12..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/en.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "en", - "texts": { - "ManageYourProfile": "Manage your profile" - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pl.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pl.json deleted file mode 100644 index 2ea227cb..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pl.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "pl", - "texts": { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pt-BR.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pt-BR.json deleted file mode 100644 index 6d746df0..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/pt-BR.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "pt-BR", - "texts": { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/sl.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/sl.json deleted file mode 100644 index 687d4257..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/sl.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "sl", - "texts": { - "ManageYourProfile": "Upravljajte svojim profilom" - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/tr.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/tr.json deleted file mode 100644 index 2b481933..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/tr.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "tr", - "texts": { - "ManageYourProfile": "Profil ynetimi" - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/vi.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/vi.json deleted file mode 100644 index d8eb5f3c..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/vi.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "vi", - "texts": { - - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hans.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hans.json deleted file mode 100644 index 99586f01..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hans.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "zh-Hans", - "texts": { - "ManageYourProfile": "管理个人资料" - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hant.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hant.json deleted file mode 100644 index ceea0555..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPay/zh-Hant.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "culture": "zh-Hant", - "texts": { - "ManageYourProfile": "管理個人資料" - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPayResource.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPayResource.cs deleted file mode 100644 index 9cf2b8f3..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/Localization/WeChatPayResource.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Volo.Abp.Localization; - -namespace EasyAbp.EShop.Payments.WeChatPay.Localization -{ - [LocalizationResourceName("EasyAbpEShopPaymentsWeChatPay")] - public class WeChatPayResource - { - - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/WeChatPayErrorCodes.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/WeChatPayErrorCodes.cs deleted file mode 100644 index 093f4442..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/EasyAbp/EShop/Payments/WeChatPay/WeChatPayErrorCodes.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public static class WeChatPayErrorCodes - { - //Add your business exception error codes here... - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain.Shared/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj deleted file mode 100644 index 4ee15718..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - netstandard2.0 - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/ClaimPaymentOpenIdProvider.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/ClaimPaymentOpenIdProvider.cs deleted file mode 100644 index 917e20cc..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/ClaimPaymentOpenIdProvider.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Users; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [Dependency(ServiceLifetime.Singleton, TryRegister = true)] - public class ClaimPaymentOpenIdProvider : IPaymentOpenIdProvider - { - public const string OpenIdClaimType = "WeChatOpenId"; - - private readonly ICurrentUser _currentUser; - - public ClaimPaymentOpenIdProvider(ICurrentUser currentUser) - { - _currentUser = currentUser; - } - - public Task FindUserOpenIdAsync(Guid userId) - { - return Task.FromResult(userId == _currentUser.Id - ? _currentUser.FindClaim(OpenIdClaimType).Value - : throw new NotSupportedException()); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainModule.cs deleted file mode 100644 index 13fe26fc..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayDomainModule.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Collections.Generic; -using EasyAbp.Abp.WeChat.Pay; -using EasyAbp.Abp.WeChat.Pay.Infrastructure.OptionResolve; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayDomainSharedModule), - typeof(AbpWeChatPayModule) - )] - public class EShopPaymentsWeChatPayDomainModule : AbpModule - { - public override void PostConfigureServices(ServiceConfigurationContext context) - { - var configuration = context.Services.GetConfiguration(); - - Configure(options => - { - options.ResolveContributors.AddFirst(new SettingOptionResolveContributor()); - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopWeChatPayHandler.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopWeChatPayHandler.cs deleted file mode 100644 index 28a213cd..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/EShopWeChatPayHandler.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Threading.Tasks; -using System.Xml; -using EasyAbp.Abp.WeChat.Pay.Infrastructure; -using EasyAbp.EShop.Payments.Payments; -using Volo.Abp.Data; -using Volo.Abp.DependencyInjection; -using Volo.Abp.MultiTenancy; -using Volo.Abp.Timing; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class EShopWeChatPayHandler : IWeChatPayHandler, ITransientDependency - { - private readonly IClock _clock; - private readonly IDataFilter _dataFilter; - private readonly IPaymentRepository _paymentRepository; - - public EShopWeChatPayHandler( - IClock clock, - IDataFilter dataFilter, - IPaymentRepository paymentRepository) - { - _clock = clock; - _dataFilter = dataFilter; - _paymentRepository = paymentRepository; - } - - public virtual async Task HandleAsync(XmlDocument xmlDocument) - { - using var disabledDataFilter = _dataFilter.Disable(); - - var xml = xmlDocument.SelectSingleNode("xml") ?? - throw new XmlDocumentMissingRequiredElementException("xml"); - - if (xml.SelectSingleNode("return_code")?.InnerText != "SUCCESS") - { - return; - } - - // Todo: sign check - - if (xml.SelectSingleNode("result_code")?.InnerText == "SUCCESS") - { - var orderId = Guid.Parse(xml.SelectSingleNode("out_trade_no")?.InnerText ?? - throw new XmlDocumentMissingRequiredElementException("out_trade_no")); - - var payment = await _paymentRepository.GetAsync(orderId); - - payment.SetExternalTradingCode(xml.SelectSingleNode("transaction_id")?.InnerText ?? - throw new XmlDocumentMissingRequiredElementException("transaction_id")); - - payment.CompletePayment(_clock.Now); - - await _paymentRepository.UpdateAsync(payment, true); - } - - // Todo: record xml - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/IPaymentOpenIdProvider.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/IPaymentOpenIdProvider.cs deleted file mode 100644 index 4068ff50..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/IPaymentOpenIdProvider.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Threading.Tasks; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public interface IPaymentOpenIdProvider - { - Task FindUserOpenIdAsync(Guid userId); - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/SettingOptionResolveContributor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/SettingOptionResolveContributor.cs deleted file mode 100644 index ced9ec75..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/SettingOptionResolveContributor.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Threading.Tasks; -using EasyAbp.Abp.WeChat.Pay; -using EasyAbp.Abp.WeChat.Pay.Infrastructure.OptionResolve; -using EasyAbp.EShop.Payments.WeChatPay.Settings; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.Settings; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class SettingOptionResolveContributor : IWeChatPayOptionResolveContributor - { - public const string ContributorName = "Setting"; - - public string Name => ContributorName; - - public virtual async Task ResolveAsync(WeChatPayOptionsResolverContext context) - { - var settingProvider = context.ServiceProvider.GetRequiredService(); - context.Options = new AbpWeChatPayOptions - { - ApiKey = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.ApiKey), - MchId = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.MchId), - IsSandBox = Convert.ToBoolean(await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.IsSandBox)), - NotifyUrl = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.NotifyUrl), - RefundNotifyUrl = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.RefundNotifyUrl), - CertificatePath = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.CertificatePath), - CertificateSecret = await settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod.CertificateSecret) - }; - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettingDefinitionProvider.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettingDefinitionProvider.cs deleted file mode 100644 index c1deba92..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettingDefinitionProvider.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using Microsoft.Extensions.Configuration; -using Volo.Abp.Settings; - -namespace EasyAbp.EShop.Payments.WeChatPay.Settings -{ - public class WeChatPaySettingDefinitionProvider : SettingDefinitionProvider - { - private readonly IConfiguration _configuration; - - public WeChatPaySettingDefinitionProvider(IConfiguration configuration) - { - _configuration = configuration; - } - - public override void Define(ISettingDefinitionContext context) - { - /* Define module settings here. - * Use names from WeChatPaySettings class. - */ - - context.Add( - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.MchId), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.ApiKey), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.IsSandBox, "false"), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.NotifyUrl, - _configuration["App:SelfUrl"]?.EnsureEndsWith('/') + "WeChatPay/Notify"), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.RefundNotifyUrl, - _configuration["App:SelfUrl"]?.EnsureEndsWith('/') + "WeChatPay/RefundNotify"), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.CertificatePath), - new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.CertificateSecret) - ); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettings.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettings.cs deleted file mode 100644 index c87183d5..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/Settings/WeChatPaySettings.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay.Settings -{ - public static class WeChatPaySettings - { - public const string GroupName = "EasyAbp.EShop.Payments.WeChatPay"; - - /* Add constants for setting names. Example: - * public const string MySettingName = GroupName + ".MySettingName"; - */ - - public static class WeChatPayPaymentMethod - { - private const string PaymentMethodName = GroupName + ".WeChatPay"; - - public const string MchId = PaymentMethodName + ".MchId"; - public const string ApiKey = PaymentMethodName + ".ApiKey"; - public const string IsSandBox = PaymentMethodName + ".IsSandBox"; - public const string NotifyUrl = PaymentMethodName + ".NotifyUrl"; - public const string RefundNotifyUrl = PaymentMethodName + ".RefundNotifyUrl"; - public const string CertificatePath = PaymentMethodName + ".CertificatePath"; - public const string CertificateSecret = PaymentMethodName + ".CertificateSecret"; - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/UnifiedOrderFailedException.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/UnifiedOrderFailedException.cs deleted file mode 100644 index 20dc191f..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/UnifiedOrderFailedException.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Volo.Abp; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class UnifiedOrderFailedException : BusinessException - { - public UnifiedOrderFailedException() : base(message: $"Unified order failed") - { - } - - public UnifiedOrderFailedException(string returnCode, string returnMsg) : base( - message: $"Unified order failed, return_code: {returnCode}, return_msg: {returnMsg}") - { - } - - public UnifiedOrderFailedException(string returnCode, string returnMsg, string errCode, string errCodeDes) : - base(message: $"Unified order failed, return_code: {returnCode}, return_msg: {returnMsg}, err_code: {errCode}, err_code_des: {errCodeDes}") - { - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayDbProperties.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayDbProperties.cs deleted file mode 100644 index 33dc263a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayDbProperties.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public static class WeChatPayDbProperties - { - public static string DbTablePrefix { get; set; } = "WeChatPay"; - - public static string DbSchema { get; set; } = null; - - public const string ConnectionStringName = "WeChatPay"; - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayPaymentServiceProvider.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayPaymentServiceProvider.cs deleted file mode 100644 index 0f0a8cc2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/WeChatPayPaymentServiceProvider.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using EasyAbp.Abp.WeChat.Pay.Services.Pay; -using EasyAbp.EShop.Payments.Payments; -using EasyAbp.EShop.Payments.WeChatPay.Settings; -using Microsoft.Extensions.Configuration; -using Volo.Abp.Data; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Settings; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class WeChatPayPaymentServiceProvider : IPaymentServiceProvider, ITransientDependency - { - private readonly ServiceProviderPayService _serviceProviderPayService; - private readonly IConfiguration _configuration; - private readonly ISettingProvider _settingProvider; - private readonly IPaymentOpenIdProvider _paymentOpenIdProvider; - private readonly IPaymentRepository _paymentRepository; - - public const string PaymentMethod = "WeChatPay"; - - public WeChatPayPaymentServiceProvider( - ServiceProviderPayService serviceProviderPayService, - IConfiguration configuration, - ISettingProvider settingProvider, - IPaymentOpenIdProvider paymentOpenIdProvider, - IPaymentRepository paymentRepository) - { - _serviceProviderPayService = serviceProviderPayService; - _configuration = configuration; - _settingProvider = settingProvider; - _paymentOpenIdProvider = paymentOpenIdProvider; - _paymentRepository = paymentRepository; - } - - public async Task PayAsync(Payment payment, Dictionary inputExtraProperties, - Dictionary payeeConfigurations) - { - if (payment.Currency != "CNY") - { - throw new CurrencyNotSupportedException(payment.PaymentMethod, payment.Currency); - } - - var payeeAccount = payeeConfigurations.GetOrDefault("PayeeAccount") as string ?? - await _settingProvider.GetOrNullAsync(WeChatPaySettings.WeChatPayPaymentMethod - .MchId); - - payment.SetPayeeAccount(payeeAccount); - - var openId = await _paymentOpenIdProvider.FindUserOpenIdAsync(payment.UserId); - - var outTradeNo = payment.Id.ToString("N"); - - var result = await _serviceProviderPayService.UnifiedOrderAsync( - appId: inputExtraProperties.GetOrDefault("appid") as string, - subAppId: null, - mchId: payment.PayeeAccount, - subMchId: null, - deviceInfo: payeeConfigurations.GetOrDefault("deviceInfo") as string ?? "EasyAbp Payment Service", - body: payeeConfigurations.GetOrDefault("body") as string ?? "EasyAbp Payment Service", - detail: payeeConfigurations.GetOrDefault("detail") as string, - attach: payeeConfigurations.GetOrDefault("attach") as string, - outTradeNo: outTradeNo, - feeType: payment.Currency, - totalFee: ConvertDecimalToWeChatPayFee(payment.ActualPaymentAmount), - billCreateIp: "127.0.0.1", - timeStart: null, - timeExpire: null, - goodsTag: payeeConfigurations.GetOrDefault("goods_tag") as string, - notifyUrl: payeeConfigurations.GetOrDefault("notify_url") as string - ?? _configuration["App:SelfUrl"].EnsureEndsWith('/') + "WeChatPay/Notify", - tradeType: inputExtraProperties.GetOrDefault("trade_type") as string, - productId: null, - limitPay: payeeConfigurations.GetOrDefault("limit_pay") as string, - openId: openId, - subOpenId: null, - receipt: payeeConfigurations.GetOrDefault("receipt") as string ?? "N", - sceneInfo: null); - - var xml = result.SelectSingleNode("xml") ?? throw new UnifiedOrderFailedException(); - - if (xml.SelectSingleNode("return_code")?.InnerText != "SUCCESS") - { - throw new UnifiedOrderFailedException(xml.SelectSingleNode("return_code")?.InnerText, xml.SelectSingleNode("return_msg")?.InnerText); - } - - if (xml.SelectSingleNode("result_code")?.InnerText != "SUCCESS") - { - throw new UnifiedOrderFailedException(xml.SelectSingleNode("return_code")?.InnerText, - xml.SelectSingleNode("return_msg")?.InnerText, xml.SelectSingleNode("err_code_des")?.InnerText, - xml.SelectSingleNode("err_code")?.InnerText); - } - - payment.SetProperty("trade_type", xml.SelectSingleNode("trade_type")?.InnerText); - payment.SetProperty("prepay_id", xml.SelectSingleNode("prepay_id")?.InnerText); - payment.SetProperty("code_url", xml.SelectSingleNode("code_url")?.InnerText); - - return await _paymentRepository.UpdateAsync(payment, true); - } - - private static int ConvertDecimalToWeChatPayFee(decimal paymentActualPaymentAmount) - { - return Convert.ToInt32(decimal.Round(paymentActualPaymentAmount, 2, MidpointRounding.AwayFromZero) * 100); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/XmlDocumentMissingRequiredElementException.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/XmlDocumentMissingRequiredElementException.cs deleted file mode 100644 index ff582772..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp/EShop/Payments/WeChatPay/XmlDocumentMissingRequiredElementException.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Volo.Abp; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class XmlDocumentMissingRequiredElementException : BusinessException - { - public XmlDocumentMissingRequiredElementException(string elementTag) : base( - message: $"XmlDocument missing required element: {elementTag}") - { - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.csproj deleted file mode 100644 index 1bf83d04..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - netstandard2.0 - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreModule.cs deleted file mode 100644 index 16f1560e..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreModule.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.EntityFrameworkCore; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayDomainModule), - typeof(AbpEntityFrameworkCoreModule) - )] - public class EShopPaymentsWeChatPayEntityFrameworkCoreModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.AddAbpDbContext(options => - { - /* Add custom repositories here. Example: - * options.AddRepository(); - */ - }); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/IWeChatPayDbContext.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/IWeChatPayDbContext.cs deleted file mode 100644 index 45fb3313..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/IWeChatPayDbContext.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Volo.Abp.Data; -using Volo.Abp.EntityFrameworkCore; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - [ConnectionStringName(WeChatPayDbProperties.ConnectionStringName)] - public interface IWeChatPayDbContext : IEfCoreDbContext - { - /* Add DbSet for each Aggregate Root here. Example: - * DbSet Questions { get; } - */ - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContext.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContext.cs deleted file mode 100644 index 742617e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContext.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Microsoft.EntityFrameworkCore; -using Volo.Abp.Data; -using Volo.Abp.EntityFrameworkCore; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - [ConnectionStringName(WeChatPayDbProperties.ConnectionStringName)] - public class WeChatPayDbContext : AbpDbContext, IWeChatPayDbContext - { - /* Add DbSet for each Aggregate Root here. Example: - * public DbSet Questions { get; set; } - */ - - public WeChatPayDbContext(DbContextOptions options) - : base(options) - { - - } - - protected override void OnModelCreating(ModelBuilder builder) - { - base.OnModelCreating(builder); - - builder.ConfigureEShopWeChatPay(); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContextModelCreatingExtensions.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContextModelCreatingExtensions.cs deleted file mode 100644 index b20089bf..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayDbContextModelCreatingExtensions.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Volo.Abp; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - public static class WeChatPayDbContextModelCreatingExtensions - { - public static void ConfigureEShopWeChatPay( - this ModelBuilder builder, - Action optionsAction = null) - { - Check.NotNull(builder, nameof(builder)); - - var options = new WeChatPayModelBuilderConfigurationOptions( - WeChatPayDbProperties.DbTablePrefix, - WeChatPayDbProperties.DbSchema - ); - - optionsAction?.Invoke(options); - - /* Configure all entities here. Example: - - builder.Entity(b => - { - //Configure table & schema name - b.ToTable(options.TablePrefix + "Questions", options.Schema); - - b.ConfigureByConvention(); - - //Properties - b.Property(q => q.Title).IsRequired().HasMaxLength(QuestionConsts.MaxTitleLength); - - //Relations - b.HasMany(question => question.Tags).WithOne().HasForeignKey(qt => qt.QuestionId); - - //Indexes - b.HasIndex(q => q.CreationTime); - }); - */ - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayModelBuilderConfigurationOptions.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayModelBuilderConfigurationOptions.cs deleted file mode 100644 index 624a0945..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/EasyAbp/EShop/Payments/WeChatPay/EntityFrameworkCore/WeChatPayModelBuilderConfigurationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -using JetBrains.Annotations; -using Volo.Abp.EntityFrameworkCore.Modeling; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - public class WeChatPayModelBuilderConfigurationOptions : AbpModelBuilderConfigurationOptions - { - public WeChatPayModelBuilderConfigurationOptions( - [NotNull] string tablePrefix = "", - [CanBeNull] string schema = null) - : base( - tablePrefix, - schema) - { - - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.csproj deleted file mode 100644 index 95b61117..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiClientModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiClientModule.cs deleted file mode 100644 index e18e334a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiClientModule.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.Http.Client; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayApplicationContractsModule), - typeof(AbpHttpClientModule))] - public class EShopPaymentsWeChatPayHttpApiClientModule : AbpModule - { - public const string RemoteServiceName = "WeChatPay"; - - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.AddHttpClientProxies( - typeof(EShopPaymentsWeChatPayApplicationContractsModule).Assembly, - RemoteServiceName - ); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp.EShop.Payments.WeChatPay.HttpApi.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp.EShop.Payments.WeChatPay.HttpApi.csproj deleted file mode 100644 index 395c3345..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp.EShop.Payments.WeChatPay.HttpApi.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiModule.cs deleted file mode 100644 index d9c39a0c..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/EShopPaymentsWeChatPayHttpApiModule.cs +++ /dev/null @@ -1,36 +0,0 @@ -using EasyAbp.Abp.WeChat.Pay.HttpApi; -using Localization.Resources.AbpUi; -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.AspNetCore.Mvc; -using Volo.Abp.Localization; -using Volo.Abp.Modularity; -using Microsoft.Extensions.DependencyInjection; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayApplicationContractsModule), - typeof(AbpAspNetCoreMvcModule), - typeof(AbpWeChatPayHttpApiModule) - )] - public class EShopPaymentsWeChatPayHttpApiModule : AbpModule - { - public override void PreConfigureServices(ServiceConfigurationContext context) - { - PreConfigure(mvcBuilder => - { - mvcBuilder.AddApplicationPartIfNotExists(typeof(EShopPaymentsWeChatPayHttpApiModule).Assembly); - }); - } - - public override void ConfigureServices(ServiceConfigurationContext context) - { - Configure(options => - { - options.Resources - .Get() - .AddBaseTypes(typeof(AbpUiResource)); - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/WeChatPayController.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/WeChatPayController.cs deleted file mode 100644 index d80ed40a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/EasyAbp/EShop/Payments/WeChatPay/WeChatPayController.cs +++ /dev/null @@ -1,13 +0,0 @@ -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.AspNetCore.Mvc; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public abstract class WeChatPayController : AbpController - { - protected WeChatPayController() - { - LocalizationResource = typeof(WeChatPayResource); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.HttpApi/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp.EShop.Payments.WeChatPay.MongoDB.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp.EShop.Payments.WeChatPay.MongoDB.csproj deleted file mode 100644 index 9a78b940..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp.EShop.Payments.WeChatPay.MongoDB.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/EShopPaymentsWeChatPayMongoDbModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/EShopPaymentsWeChatPayMongoDbModule.cs deleted file mode 100644 index fb623076..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/EShopPaymentsWeChatPayMongoDbModule.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.Modularity; -using Volo.Abp.MongoDB; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayDomainModule), - typeof(AbpMongoDbModule) - )] - public class EShopPaymentsWeChatPayMongoDbModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.AddMongoDbContext(options => - { - /* Add custom repositories here. Example: - * options.AddRepository(); - */ - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/IWeChatPayMongoDbContext.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/IWeChatPayMongoDbContext.cs deleted file mode 100644 index 904a0388..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/IWeChatPayMongoDbContext.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Volo.Abp.Data; -using Volo.Abp.MongoDB; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - [ConnectionStringName(WeChatPayDbProperties.ConnectionStringName)] - public interface IWeChatPayMongoDbContext : IAbpMongoDbContext - { - /* Define mongo collections here. Example: - * IMongoCollection Questions { get; } - */ - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContext.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContext.cs deleted file mode 100644 index f1f00b2e..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContext.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Volo.Abp.Data; -using Volo.Abp.MongoDB; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - [ConnectionStringName(WeChatPayDbProperties.ConnectionStringName)] - public class WeChatPayMongoDbContext : AbpMongoDbContext, IWeChatPayMongoDbContext - { - /* Add mongo collections here. Example: - * public IMongoCollection Questions => Collection(); - */ - - protected override void CreateModel(IMongoModelBuilder modelBuilder) - { - base.CreateModel(modelBuilder); - - modelBuilder.ConfigureEShopWeChatPay(); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContextExtensions.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContextExtensions.cs deleted file mode 100644 index bfd5c9fc..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoDbContextExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using Volo.Abp; -using Volo.Abp.MongoDB; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - public static class WeChatPayMongoDbContextExtensions - { - public static void ConfigureEShopWeChatPay( - this IMongoModelBuilder builder, - Action optionsAction = null) - { - Check.NotNull(builder, nameof(builder)); - - var options = new WeChatPayMongoModelBuilderConfigurationOptions( - WeChatPayDbProperties.DbTablePrefix - ); - - optionsAction?.Invoke(options); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoModelBuilderConfigurationOptions.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoModelBuilderConfigurationOptions.cs deleted file mode 100644 index 17de92f4..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/EasyAbp/EShop/Payments/WeChatPay/MongoDB/WeChatPayMongoModelBuilderConfigurationOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -using JetBrains.Annotations; -using Volo.Abp.MongoDB; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - public class WeChatPayMongoModelBuilderConfigurationOptions : AbpMongoModelBuilderConfigurationOptions - { - public WeChatPayMongoModelBuilderConfigurationOptions( - [NotNull] string collectionPrefix = "") - : base(collectionPrefix) - { - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.MongoDB/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EShopPaymentsWeChatPayWebModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EShopPaymentsWeChatPayWebModule.cs deleted file mode 100644 index d4250e73..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EShopPaymentsWeChatPayWebModule.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; -using Microsoft.Extensions.DependencyInjection; -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.AspNetCore.Mvc.Localization; -using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; -using Volo.Abp.AutoMapper; -using Volo.Abp.Modularity; -using Volo.Abp.UI.Navigation; -using Volo.Abp.VirtualFileSystem; - -namespace EasyAbp.EShop.Payments.WeChatPay.Web -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayHttpApiModule), - typeof(AbpAspNetCoreMvcUiThemeSharedModule), - typeof(AbpAutoMapperModule) - )] - public class EShopPaymentsWeChatPayWebModule : AbpModule - { - public override void PreConfigureServices(ServiceConfigurationContext context) - { - context.Services.PreConfigure(options => - { - options.AddAssemblyResource(typeof(WeChatPayResource), typeof(EShopPaymentsWeChatPayWebModule).Assembly); - }); - - PreConfigure(mvcBuilder => - { - mvcBuilder.AddApplicationPartIfNotExists(typeof(EShopPaymentsWeChatPayWebModule).Assembly); - }); - } - - public override void ConfigureServices(ServiceConfigurationContext context) - { - Configure(options => - { - options.MenuContributors.Add(new WeChatPayMenuContributor()); - }); - - Configure(options => - { - options.FileSets.AddEmbedded("EasyAbp.EShop.Payments.WeChatPay.Web"); - }); - - context.Services.AddAutoMapperObjectMapper(); - Configure(options => - { - options.AddMaps(validate: true); - }); - - Configure(options => - { - //Configure authorization. - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj deleted file mode 100644 index 27a1f23a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/EasyAbp.EShop.Payments.WeChatPay.Web.csproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - netcoreapp3.1 - $(AssetTargetFallback);portable-net45+win8+wp8+wpa81; - true - Library - EasyAbp.EShop.Payments.WeChatPay.Web - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml deleted file mode 100644 index 6c844ef0..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@page -@inherits EasyAbp.EShop.Payments.WeChatPay.Web.Pages.WeChatPayPage -@model EasyAbp.EShop.Payments.WeChatPay.Web.Pages.EShop.Payments.WeChatPay.IndexModel -@{ -} -

WeChatPay

-

A sample page for the WeChatPay module.

\ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs deleted file mode 100644 index 790b2f88..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/Index.cshtml.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages.EShop.Payments.WeChatPay -{ - public class IndexModel : WeChatPayPageModel - { - public void OnGet() - { - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml deleted file mode 100644 index c1da1f5f..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/EShop/Payments/WeChatPay/_ViewImports.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap -@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs deleted file mode 100644 index 1536b51a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPage.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.AspNetCore.Mvc.Localization; -using Microsoft.AspNetCore.Mvc.Razor.Internal; -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; - -namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages -{ - /* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): - * @inherits EasyAbp.EShop.Payments.WeChatPay.Web.Pages.WeChatPayPage - */ - public abstract class WeChatPayPage : AbpPage - { - [RazorInject] - public IHtmlLocalizer L { get; set; } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs deleted file mode 100644 index c85d76c6..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Pages/WeChatPayPageModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -using EasyAbp.EShop.Payments.WeChatPay.Localization; -using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; - -namespace EasyAbp.EShop.Payments.WeChatPay.Web.Pages -{ - /* Inherit your PageModel classes from this class. - */ - public abstract class WeChatPayPageModel : AbpPageModel - { - protected WeChatPayPageModel() - { - LocalizationResourceType = typeof(WeChatPayResource); - ObjectMapperContext = typeof(EShopPaymentsWeChatPayWebModule); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json deleted file mode 100644 index 87e1d66f..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/Properties/launchSettings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:56993/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "EasyAbp.EShop.Payments.WeChatPay.Web": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "http://localhost:56994/" - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs deleted file mode 100644 index ac17b1bf..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayMenuContributor.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Threading.Tasks; -using Volo.Abp.UI.Navigation; - -namespace EasyAbp.EShop.Payments.WeChatPay.Web -{ - public class WeChatPayMenuContributor : IMenuContributor - { - public async Task ConfigureMenuAsync(MenuConfigurationContext context) - { - if (context.Menu.Name == StandardMenus.Main) - { - await ConfigureMainMenu(context); - } - } - - private Task ConfigureMainMenu(MenuConfigurationContext context) - { - //Add main menu items. - - return Task.CompletedTask; - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs deleted file mode 100644 index d3e5e1d1..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Web/WeChatPayWebAutoMapperProfile.cs +++ /dev/null @@ -1,14 +0,0 @@ -using AutoMapper; - -namespace EasyAbp.EShop.Payments.WeChatPay.Web -{ - public class WeChatPayWebAutoMapperProfile : Profile - { - public WeChatPayWebAutoMapperProfile() - { - /* You can configure your AutoMapper mapping configuration here. - * Alternatively, you can split your mapping configurations - * into multiple profile classes for a better organization. */ - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs deleted file mode 100644 index ba3e4fcc..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EShopPaymentsWeChatPayApplicationTestModule.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayApplicationModule), - typeof(EShopPaymentsWeChatPayDomainTestModule) - )] - public class EShopPaymentsWeChatPayApplicationTestModule : AbpModule - { - - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj deleted file mode 100644 index ed3260fb..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/EasyAbp.EShop.Payments.WeChatPay.Application.Tests.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs deleted file mode 100644 index 2992e84a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Application.Tests/WeChatPayApplicationTestBase.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay -{ - /* Inherit from this class for your application layer tests. - * See SampleAppService_Tests for example. - */ - public abstract class WeChatPayApplicationTestBase : WeChatPayTestBase - { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs deleted file mode 100644 index e63a887a..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EShopPaymentsWeChatPayDomainTestModule.cs +++ /dev/null @@ -1,17 +0,0 @@ -using EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - /* Domain tests are configured to use the EF Core provider. - * You can switch to MongoDB, however your domain tests should be - * database independent anyway. - */ - [DependsOn( - typeof(EShopPaymentsWeChatPayEntityFrameworkCoreTestModule) - )] - public class EShopPaymentsWeChatPayDomainTestModule : AbpModule - { - - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj deleted file mode 100644 index 04e38710..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs deleted file mode 100644 index e49781d4..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.Domain.Tests/WeChatPayDomainTestBase.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay -{ - /* Inherit from this class for your domain layer tests. - * See SampleManager_Tests for example. - */ - public abstract class WeChatPayDomainTestBase : WeChatPayTestBase - { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj deleted file mode 100644 index f8169661..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs deleted file mode 100644 index 2697eb0e..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/EShopPaymentsWeChatPayEntityFrameworkCoreTestModule.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Microsoft.Data.Sqlite; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Storage; -using Volo.Abp.EntityFrameworkCore; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayTestBaseModule), - typeof(EShopPaymentsWeChatPayEntityFrameworkCoreModule) - )] - public class EShopPaymentsWeChatPayEntityFrameworkCoreTestModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - var sqliteConnection = CreateDatabaseAndGetConnection(); - - Configure(options => - { - options.Configure(abpDbContextConfigurationContext => - { - abpDbContextConfigurationContext.DbContextOptions.UseSqlite(sqliteConnection); - }); - }); - } - - private static SqliteConnection CreateDatabaseAndGetConnection() - { - var connection = new SqliteConnection("Data Source=:memory:"); - connection.Open(); - - new WeChatPayDbContext( - new DbContextOptionsBuilder().UseSqlite(connection).Options - ).GetService().CreateTables(); - - return connection; - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs deleted file mode 100644 index 558ad596..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/EntityFrameworkCore/WeChatPayEntityFrameworkCoreTestBase.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore -{ - /* This class can be used as a base class for EF Core integration tests, - * while SampleRepository_Tests uses a different approach. - */ - public abstract class WeChatPayEntityFrameworkCoreTestBase : WeChatPayTestBase - { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.EntityFrameworkCore.Tests/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs deleted file mode 100644 index 091eaa6c..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs +++ /dev/null @@ -1,146 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using IdentityModel.Client; -using Microsoft.Extensions.Configuration; -using Volo.Abp.DependencyInjection; -using Volo.Abp.IdentityModel; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class ClientDemoService : ITransientDependency - { - private readonly IIdentityModelAuthenticationService _authenticationService; - private readonly IConfiguration _configuration; - - public ClientDemoService( - IIdentityModelAuthenticationService authenticationService, - IConfiguration configuration) - { - _authenticationService = authenticationService; - _configuration = configuration; - } - - public async Task RunAsync() - { - await TestWithDynamicProxiesAsync(); - await TestWithHttpClientAndIdentityModelAuthenticationServiceAsync(); - await TestAllManuallyAsync(); - } - - /* Shows how to perform an HTTP request to the API using ABP's dynamic c# proxy - * feature. It is just simple as calling a local service method. - * Authorization and HTTP request details are handled by the ABP framework. - */ - private async Task TestWithDynamicProxiesAsync() - { - Console.WriteLine(); - Console.WriteLine($"***** {nameof(TestWithDynamicProxiesAsync)} *****"); - } - - /* Shows how to use HttpClient to perform a request to the HTTP API. - * It uses ABP's IIdentityModelAuthenticationService to simplify obtaining access tokens. - */ - private async Task TestWithHttpClientAndIdentityModelAuthenticationServiceAsync() - { - Console.WriteLine(); - Console.WriteLine($"***** {nameof(TestWithHttpClientAndIdentityModelAuthenticationServiceAsync)} *****"); - - //Get access token using ABP's IIdentityModelAuthenticationService - - var accessToken = await _authenticationService.GetAccessTokenAsync( - new IdentityClientConfiguration( - _configuration["IdentityClients:Default:Authority"], - _configuration["IdentityClients:Default:Scope"], - _configuration["IdentityClients:Default:ClientId"], - _configuration["IdentityClients:Default:ClientSecret"], - _configuration["IdentityClients:Default:GrantType"], - _configuration["IdentityClients:Default:UserName"], - _configuration["IdentityClients:Default:UserPassword"] - ) - ); - - //Perform the actual HTTP request - - using (var httpClient = new HttpClient()) - { - httpClient.SetBearerToken(accessToken); - - var url = _configuration["RemoteServices:WeChatPay:BaseUrl"] + - "api/WeChatPay/sample/authorized"; - - var responseMessage = await httpClient.GetAsync(url); - if (responseMessage.IsSuccessStatusCode) - { - var responseString = await responseMessage.Content.ReadAsStringAsync(); - Console.WriteLine("Result: " + responseString); - } - else - { - throw new Exception("Remote server returns error code: " + responseMessage.StatusCode); - } - } - } - - /* Shows how to use HttpClient to perform a request to the HTTP API. - * It obtains access token using IdentityServer's API. See its documentation: - * https://identityserver4.readthedocs.io/en/latest/quickstarts/2_resource_owner_passwords.html - */ - private async Task TestAllManuallyAsync() - { - Console.WriteLine(); - Console.WriteLine($"***** {nameof(TestAllManuallyAsync)} *****"); - - //Obtain access token from the IDS4 server - - // discover endpoints from metadata - var client = new HttpClient(); - var disco = await client.GetDiscoveryDocumentAsync(_configuration["IdentityClients:Default:Authority"]); - if (disco.IsError) - { - Console.WriteLine(disco.Error); - return; - } - - // request token - var tokenResponse = await client.RequestPasswordTokenAsync(new PasswordTokenRequest - { - Address = disco.TokenEndpoint, - ClientId = _configuration["IdentityClients:Default:ClientId"], - ClientSecret = _configuration["IdentityClients:Default:ClientSecret"], - UserName = _configuration["IdentityClients:Default:UserName"], - Password = _configuration["IdentityClients:Default:UserPassword"], - Scope = _configuration["IdentityClients:Default:Scope"] - }); - - if (tokenResponse.IsError) - { - Console.WriteLine(tokenResponse.Error); - return; - } - - Console.WriteLine(tokenResponse.Json); - - //Perform the actual HTTP request - - using (var httpClient = new HttpClient()) - { - httpClient.SetBearerToken(tokenResponse.AccessToken); - - var url = _configuration["RemoteServices:WeChatPay:BaseUrl"] + - "api/WeChatPay/sample/authorized"; - - var responseMessage = await httpClient.GetAsync(url); - if (responseMessage.IsSuccessStatusCode) - { - var responseString = await responseMessage.Content.ReadAsStringAsync(); - Console.WriteLine("Result: " + responseString); - } - else - { - throw new Exception("Remote server returns error code: " + responseMessage.StatusCode); - } - } - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs deleted file mode 100644 index 581ee226..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Microsoft.Extensions.Hosting; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp; - -namespace EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp -{ - public class ConsoleTestAppHostedService : IHostedService - { - public async Task StartAsync(CancellationToken cancellationToken) - { - using (var application = AbpApplicationFactory.Create()) - { - application.Initialize(); - - var demo = application.ServiceProvider.GetRequiredService(); - await demo.RunAsync(); - - application.Shutdown(); - } - } - - public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask; - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs deleted file mode 100644 index 69c90824..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EShopPaymentsWeChatPayConsoleApiClientModule.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Volo.Abp.Http.Client.IdentityModel; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayHttpApiClientModule), - typeof(AbpHttpClientIdentityModelModule) - )] - public class EShopPaymentsWeChatPayConsoleApiClientModule : AbpModule - { - - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj deleted file mode 100644 index d81eb860..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - Exe - netcoreapp3.1 - - - - - - - - - - - - PreserveNewest - Always - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs deleted file mode 100644 index 10b7dd84..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; - -namespace EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp -{ - class Program - { - static async Task Main(string[] args) - { - await CreateHostBuilder(args).RunConsoleAsync(); - } - - public static IHostBuilder CreateHostBuilder(string[] args) => - Host.CreateDefaultBuilder(args) - .ConfigureServices((hostContext, services) => - { - services.AddHostedService(); - }); - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json deleted file mode 100644 index 088131bb..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.HttpApi.Client.ConsoleTestApp/appsettings.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "RemoteServices": { - "Default": { - "BaseUrl": "https://localhost:44343/" - }, - "WeChatPay": { - "BaseUrl": "https://localhost:44399/" - } - }, - "IdentityClients": { - "Default": { - "GrantType": "password", - "ClientId": "WeChatPay_ConsoleTestApp", - "ClientSecret": "1q2w3e*", - "UserName": "admin", - "UserPassword": "1q2w3E*", - "Authority": "https://localhost:44343/", - "Scope": "WeChatPay" - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj deleted file mode 100644 index 7ea9a24f..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs deleted file mode 100644 index 0fc509e6..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/EShopPaymentsWeChatPayMongoDbTestModule.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using Mongo2Go; -using Volo.Abp; -using Volo.Abp.Data; -using Volo.Abp.Modularity; - -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - [DependsOn( - typeof(EShopPaymentsWeChatPayTestBaseModule), - typeof(EShopPaymentsWeChatPayMongoDbModule) - )] - public class EShopPaymentsWeChatPayMongoDbTestModule : AbpModule - { - private static readonly MongoDbRunner MongoDbRunner = MongoDbRunner.Start(); - - public override void ConfigureServices(ServiceConfigurationContext context) - { - var connectionString = MongoDbRunner.ConnectionString.EnsureEndsWith('/') + - "Db_" + - Guid.NewGuid().ToString("N"); - - Configure(options => - { - options.ConnectionStrings.Default = connectionString; - }); - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs deleted file mode 100644 index 67027e42..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.MongoDB.Tests/MongoDB/WeChatPayMongoDbTestBase.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace EasyAbp.EShop.Payments.WeChatPay.MongoDB -{ - /* This class can be used as a base class for MongoDB integration tests, - * while SampleRepository_Tests uses a different approach. - */ - public abstract class WeChatPayMongoDbTestBase : WeChatPayTestBase - { - - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs deleted file mode 100644 index 0d1e278f..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EShopPaymentsWeChatPayTestBaseModule.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp; -using Volo.Abp.Authorization; -using Volo.Abp.Autofac; -using Volo.Abp.Data; -using Volo.Abp.Modularity; -using Volo.Abp.Threading; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - [DependsOn( - typeof(AbpAutofacModule), - typeof(AbpTestBaseModule), - typeof(AbpAuthorizationModule), - typeof(EShopPaymentsWeChatPayDomainModule) - )] - public class EShopPaymentsWeChatPayTestBaseModule : AbpModule - { - public override void ConfigureServices(ServiceConfigurationContext context) - { - context.Services.AddAlwaysAllowAuthorization(); - } - - public override void OnApplicationInitialization(ApplicationInitializationContext context) - { - SeedTestData(context); - } - - private static void SeedTestData(ApplicationInitializationContext context) - { - AsyncHelper.RunSync(async () => - { - using (var scope = context.ServiceProvider.CreateScope()) - { - await scope.ServiceProvider - .GetRequiredService() - .SeedAsync(); - } - }); - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj deleted file mode 100644 index c503cffb..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/EasyAbp.EShop.Payments.WeChatPay.TestBase.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - netcoreapp3.1 - - - - - - - - - - - - - - - - - diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml deleted file mode 100644 index be0de3a9..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd deleted file mode 100644 index 3f3946e2..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/FodyWeavers.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs deleted file mode 100644 index 38d27785..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/Security/FakeCurrentPrincipalAccessor.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Collections.Generic; -using System.Security.Claims; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Security.Claims; - -namespace EasyAbp.EShop.Payments.WeChatPay.Security -{ - [Dependency(ReplaceServices = true)] - public class FakeCurrentPrincipalAccessor : ICurrentPrincipalAccessor, ISingletonDependency - { - public ClaimsPrincipal Principal => GetPrincipal(); - private ClaimsPrincipal _principal; - - private ClaimsPrincipal GetPrincipal() - { - if (_principal == null) - { - lock (this) - { - if (_principal == null) - { - _principal = new ClaimsPrincipal( - new ClaimsIdentity( - new List - { - new Claim(AbpClaimTypes.UserId,"2e701e62-0953-4dd3-910b-dc6cc93ccb0d"), - new Claim(AbpClaimTypes.UserName,"admin"), - new Claim(AbpClaimTypes.Email,"admin@abp.io") - } - ) - ); - } - } - } - - return _principal; - } - } -} diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs deleted file mode 100644 index 30b27a31..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayDataSeedContributor.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Threading.Tasks; -using Volo.Abp.Data; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Guids; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - public class WeChatPayDataSeedContributor : IDataSeedContributor, ITransientDependency - { - private readonly IGuidGenerator _guidGenerator; - - public WeChatPayDataSeedContributor( - IGuidGenerator guidGenerator) - { - _guidGenerator = guidGenerator; - } - - public Task SeedAsync(DataSeedContext context) - { - /* Instead of returning the Task.CompletedTask, you can insert your test data - * at this point! - */ - - return Task.CompletedTask; - } - } -} \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs b/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs deleted file mode 100644 index 5f663a72..00000000 --- a/modules/EasyAbp.EShop.Payments.WeChatPay/test/EasyAbp.EShop.Payments.WeChatPay.TestBase/WeChatPayTestBase.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp; -using Volo.Abp.Modularity; -using Volo.Abp.Uow; -using Volo.Abp.Testing; - -namespace EasyAbp.EShop.Payments.WeChatPay -{ - /* All test classes are derived from this class, directly or indirectly. */ - public abstract class WeChatPayTestBase : AbpIntegratedTest - where TStartupModule : IAbpModule - { - protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options) - { - options.UseAutofac(); - } - - protected virtual Task WithUnitOfWorkAsync(Func func) - { - return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func); - } - - protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func action) - { - using (var scope = ServiceProvider.CreateScope()) - { - var uowManager = scope.ServiceProvider.GetRequiredService(); - - using (var uow = uowManager.Begin(options)) - { - await action(); - - await uow.CompleteAsync(); - } - } - } - - protected virtual Task WithUnitOfWorkAsync(Func> func) - { - return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func); - } - - protected virtual async Task WithUnitOfWorkAsync(AbpUnitOfWorkOptions options, Func> func) - { - using (var scope = ServiceProvider.CreateScope()) - { - var uowManager = scope.ServiceProvider.GetRequiredService(); - - using (var uow = uowManager.Begin(options)) - { - var result = await func(); - await uow.CompleteAsync(); - return result; - } - } - } - } -}