Browse Source

Add Payment module to EventHub project

pull/69/head
enisn 5 years ago
parent
commit
0126ef46fc
  1. 1
      src/EventHub.Application.Contracts/EventHub.Application.Contracts.csproj
  2. 6
      src/EventHub.Application.Contracts/EventHubApplicationContractsModule.cs
  3. 1
      src/EventHub.Application/EventHub.Application.csproj
  4. 6
      src/EventHub.Application/EventHubApplicationModule.cs
  5. 4
      src/EventHub.Domain.Shared/EventHub.Domain.Shared.csproj
  6. 4
      src/EventHub.Domain.Shared/EventHubDomainSharedModule.cs
  7. 1
      src/EventHub.Domain/EventHub.Domain.csproj
  8. 4
      src/EventHub.Domain/EventHubDomainModule.cs
  9. 4
      src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubEntityFrameworkCoreModule.cs
  10. 5
      src/EventHub.EntityFrameworkCore/EventHub.EntityFrameworkCore.csproj
  11. 1
      src/EventHub.HttpApi.Client/EventHub.HttpApi.Client.csproj
  12. 4
      src/EventHub.HttpApi.Client/EventHubHttpApiClientModule.cs
  13. 8
      src/EventHub.HttpApi.Host/appsettings.json
  14. 1
      src/EventHub.HttpApi/EventHub.HttpApi.csproj
  15. 3
      src/EventHub.HttpApi/EventHubHttpApiModule.cs
  16. 1
      src/EventHub.Web/EventHub.Web.csproj
  17. 4
      src/EventHub.Web/EventHubWebModule.cs
  18. 8
      src/EventHub.Web/appsettings.json

1
src/EventHub.Application.Contracts/EventHub.Application.Contracts.csproj

@ -9,6 +9,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EventHub.Domain.Shared\EventHub.Domain.Shared.csproj" /> <ProjectReference Include="..\EventHub.Domain.Shared\EventHub.Domain.Shared.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.Application.Contracts\Payment.Application.Contracts.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

6
src/EventHub.Application.Contracts/EventHubApplicationContractsModule.cs

@ -1,11 +1,13 @@
using Volo.Abp.Application; using Payment;
using Volo.Abp.Application;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
namespace EventHub namespace EventHub
{ {
[DependsOn( [DependsOn(
typeof(EventHubDomainSharedModule), typeof(EventHubDomainSharedModule),
typeof(AbpDddApplicationContractsModule) typeof(AbpDddApplicationContractsModule),
typeof(PaymentApplicationContractsModule)
)] )]
public class EventHubApplicationContractsModule : AbpModule public class EventHubApplicationContractsModule : AbpModule
{ {

1
src/EventHub.Application/EventHub.Application.csproj

@ -10,6 +10,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EventHub.Domain\EventHub.Domain.csproj" /> <ProjectReference Include="..\EventHub.Domain\EventHub.Domain.csproj" />
<ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" /> <ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.Application\Payment.Application.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

6
src/EventHub.Application/EventHubApplicationModule.cs

@ -1,4 +1,5 @@
using Volo.Abp.Application; using Payment;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper; using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
@ -7,7 +8,8 @@ namespace EventHub
[DependsOn( [DependsOn(
typeof(EventHubDomainModule), typeof(EventHubDomainModule),
typeof(EventHubApplicationContractsModule), typeof(EventHubApplicationContractsModule),
typeof(AbpDddApplicationModule) typeof(AbpDddApplicationModule),
typeof(PaymentApplicationModule)
)] )]
public class EventHubApplicationModule : AbpModule public class EventHubApplicationModule : AbpModule
{ {

4
src/EventHub.Domain.Shared/EventHub.Domain.Shared.csproj

@ -8,6 +8,10 @@
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\modules\payment\src\Payment.Domain.Shared\Payment.Domain.Shared.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Volo.Abp.BlobStoring.Database.Domain.Shared" Version="5.0.0-beta.1" /> <PackageReference Include="Volo.Abp.BlobStoring.Database.Domain.Shared" Version="5.0.0-beta.1" />
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="5.0.0-beta.1" /> <PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="5.0.0-beta.1" />

4
src/EventHub.Domain.Shared/EventHubDomainSharedModule.cs

@ -13,6 +13,7 @@ using Volo.Abp.SettingManagement;
using Volo.Abp.Validation.Localization; using Volo.Abp.Validation.Localization;
using Volo.Abp.VirtualFileSystem; using Volo.Abp.VirtualFileSystem;
using Volo.Abp.BlobStoring.Database; using Volo.Abp.BlobStoring.Database;
using Payment;
namespace EventHub namespace EventHub
{ {
@ -23,7 +24,8 @@ namespace EventHub
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),
typeof(AbpPermissionManagementDomainSharedModule), typeof(AbpPermissionManagementDomainSharedModule),
typeof(AbpSettingManagementDomainSharedModule), typeof(AbpSettingManagementDomainSharedModule),
typeof(BlobStoringDatabaseDomainSharedModule) typeof(BlobStoringDatabaseDomainSharedModule),
typeof(PaymentDomainSharedModule)
)] )]
public class EventHubDomainSharedModule : AbpModule public class EventHubDomainSharedModule : AbpModule
{ {

1
src/EventHub.Domain/EventHub.Domain.csproj

@ -10,6 +10,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EventHub.Domain.Shared\EventHub.Domain.Shared.csproj" /> <ProjectReference Include="..\EventHub.Domain.Shared\EventHub.Domain.Shared.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.Domain\Payment.Domain.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

4
src/EventHub.Domain/EventHubDomainModule.cs

@ -11,6 +11,7 @@ using Volo.Abp.PermissionManagement.IdentityServer;
using Volo.Abp.SettingManagement; using Volo.Abp.SettingManagement;
using Volo.Abp.BlobStoring.Database; using Volo.Abp.BlobStoring.Database;
using Volo.Abp.VirtualFileSystem; using Volo.Abp.VirtualFileSystem;
using Payment;
namespace EventHub namespace EventHub
{ {
@ -24,7 +25,8 @@ namespace EventHub
typeof(AbpPermissionManagementDomainIdentityServerModule), typeof(AbpPermissionManagementDomainIdentityServerModule),
typeof(AbpSettingManagementDomainModule), typeof(AbpSettingManagementDomainModule),
typeof(AbpEmailingModule), typeof(AbpEmailingModule),
typeof(BlobStoringDatabaseDomainModule) typeof(BlobStoringDatabaseDomainModule),
typeof(PaymentDomainModule)
)] )]
public class EventHubDomainModule : AbpModule public class EventHubDomainModule : AbpModule
{ {

4
src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubEntityFrameworkCoreModule.cs

@ -10,6 +10,7 @@ using Volo.Abp.SettingManagement.EntityFrameworkCore;
using Volo.Abp.BlobStoring.Database.EntityFrameworkCore; using Volo.Abp.BlobStoring.Database.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.PostgreSql; using Volo.Abp.EntityFrameworkCore.PostgreSql;
using System; using System;
using Payment.EntityFrameworkCore;
namespace EventHub.EntityFrameworkCore namespace EventHub.EntityFrameworkCore
{ {
@ -22,7 +23,8 @@ namespace EventHub.EntityFrameworkCore
typeof(AbpEntityFrameworkCorePostgreSqlModule), typeof(AbpEntityFrameworkCorePostgreSqlModule),
typeof(AbpBackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(BlobStoringDatabaseEntityFrameworkCoreModule) typeof(BlobStoringDatabaseEntityFrameworkCoreModule),
typeof(PaymentEntityFrameworkCoreModule)
)] )]
public class EventHubEntityFrameworkCoreModule : AbpModule public class EventHubEntityFrameworkCoreModule : AbpModule
{ {

5
src/EventHub.EntityFrameworkCore/EventHub.EntityFrameworkCore.csproj

@ -7,6 +7,11 @@
<RootNamespace>EventHub</RootNamespace> <RootNamespace>EventHub</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\modules\payment\src\Payment.EntityFrameworkCore\Payment.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0-rc.1.*" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0-rc.1.*" />
</ItemGroup> </ItemGroup>

1
src/EventHub.HttpApi.Client/EventHub.HttpApi.Client.csproj

@ -9,6 +9,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" /> <ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.HttpApi.Client\Payment.HttpApi.Client.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

4
src/EventHub.HttpApi.Client/EventHubHttpApiClientModule.cs

@ -1,12 +1,14 @@
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Http.Client; using Volo.Abp.Http.Client;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
using Payment;
namespace EventHub namespace EventHub
{ {
[DependsOn( [DependsOn(
typeof(EventHubApplicationContractsModule), typeof(EventHubApplicationContractsModule),
typeof(AbpHttpClientModule) typeof(AbpHttpClientModule),
typeof(PaymentHttpApiClientModule)
)] )]
public class EventHubHttpApiClientModule : AbpModule public class EventHubHttpApiClientModule : AbpModule
{ {

8
src/EventHub.HttpApi.Host/appsettings.json

@ -10,5 +10,13 @@
"RequireHttpsMetadata": "true", "RequireHttpsMetadata": "true",
"SwaggerClientId": "EventHub_Swagger", "SwaggerClientId": "EventHub_Swagger",
"SwaggerClientSecret": "1q2w3e*" "SwaggerClientSecret": "1q2w3e*"
},
"Payment": {
"DefaultCurrency": "USD",
"PayPal": {
"ClientId": "{ClientId}",
"Secret": "{Secret}",
"Environment": "Sandbox"
}
} }
} }

1
src/EventHub.HttpApi/EventHub.HttpApi.csproj

@ -9,6 +9,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" /> <ProjectReference Include="..\EventHub.Application.Contracts\EventHub.Application.Contracts.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.HttpApi\Payment.HttpApi.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

3
src/EventHub.HttpApi/EventHubHttpApiModule.cs

@ -8,7 +8,8 @@ namespace EventHub
{ {
[DependsOn( [DependsOn(
typeof(EventHubApplicationContractsModule), typeof(EventHubApplicationContractsModule),
typeof(AbpAspNetCoreMvcModule) typeof(AbpAspNetCoreMvcModule),
typeof(EventHubHttpApiModule)
)] )]
public class EventHubHttpApiModule : AbpModule public class EventHubHttpApiModule : AbpModule
{ {

1
src/EventHub.Web/EventHub.Web.csproj

@ -17,6 +17,7 @@
<ProjectReference Include="..\EventHub.HttpApi\EventHub.HttpApi.csproj" /> <ProjectReference Include="..\EventHub.HttpApi\EventHub.HttpApi.csproj" />
<ProjectReference Include="..\EventHub.HttpApi.Client\EventHub.HttpApi.Client.csproj" /> <ProjectReference Include="..\EventHub.HttpApi.Client\EventHub.HttpApi.Client.csproj" />
<ProjectReference Include="..\EventHub.Web.Theme\EventHub.Web.Theme.csproj" /> <ProjectReference Include="..\EventHub.Web.Theme\EventHub.Web.Theme.csproj" />
<ProjectReference Include="..\..\modules\payment\src\Payment.Web\Payment.Web.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

4
src/EventHub.Web/EventHubWebModule.cs

@ -36,6 +36,7 @@ using Volo.Abp.Swashbuckle;
using Volo.Abp.UI.Navigation.Urls; using Volo.Abp.UI.Navigation.Urls;
using Volo.Abp.UI.Navigation; using Volo.Abp.UI.Navigation;
using Volo.Abp.VirtualFileSystem; using Volo.Abp.VirtualFileSystem;
using Payment.Web;
namespace EventHub.Web namespace EventHub.Web
{ {
@ -51,7 +52,8 @@ namespace EventHub.Web
typeof(AbpHttpClientIdentityModelWebModule), typeof(AbpHttpClientIdentityModelWebModule),
typeof(AbpAspNetCoreSerilogModule), typeof(AbpAspNetCoreSerilogModule),
typeof(AbpSwashbuckleModule), typeof(AbpSwashbuckleModule),
typeof(AbpAccountApplicationContractsModule) typeof(AbpAccountApplicationContractsModule),
typeof(PaymentWebModule)
)] )]
public class EventHubWebModule : AbpModule public class EventHubWebModule : AbpModule
{ {

8
src/EventHub.Web/appsettings.json

@ -7,13 +7,5 @@
"RequireHttpsMetadata": "true", "RequireHttpsMetadata": "true",
"ClientId": "EventHub_Web", "ClientId": "EventHub_Web",
"ClientSecret": "1q2w3e*" "ClientSecret": "1q2w3e*"
},
"Payment": {
"DefaultCurrency": "USD",
"PayPal": {
"ClientId": "{ClientId}",
"Secret": "{Secret}",
"Environment": "Sandbox"
}
} }
} }

Loading…
Cancel
Save