Browse Source

Remove the basket module and add plugin module

pull/87/head
gdlcf88 6 years ago
parent
commit
6b53792515
  1. 36
      .github/workflows/publish.yml
  2. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Application.Contracts/EasyAbp.EShop.Application.Contracts.csproj
  3. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Application.Contracts/EasyAbp/EShop/EShopApplicationContractsModule.cs
  4. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Application/EasyAbp.EShop.Application.csproj
  5. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Application/EasyAbp/EShop/EShopApplicationModule.cs
  6. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain.Shared/EasyAbp.EShop.Domain.Shared.csproj
  7. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain.Shared/EasyAbp/EShop/EShopDomainSharedModule.cs
  8. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain/EasyAbp.EShop.Domain.csproj
  9. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain/EasyAbp/EShop/EShopDomainModule.cs
  10. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp.EShop.EntityFrameworkCore.csproj
  11. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp/EShop/EntityFrameworkCore/EShopDbContextModelCreatingExtensions.cs
  12. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp/EShop/EntityFrameworkCore/EShopEntityFrameworkCoreModule.cs
  13. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi.Client/EasyAbp.EShop.HttpApi.Client.csproj
  14. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi.Client/EasyAbp/EShop/EShopHttpApiClientModule.cs
  15. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi/EasyAbp.EShop.HttpApi.csproj
  16. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi/EasyAbp/EShop/EShopHttpApiModule.cs
  17. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp.EShop.MongoDB.csproj
  18. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp/EShop/MongoDB/EShopMongoDbContextExtensions.cs
  19. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp/EShop/MongoDB/EShopMongoDbModule.cs
  20. 4
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Web/EShopWebModule.cs
  21. 2
      integration/EasyAbp.EShop/src/EasyAbp.EShop.Web/EasyAbp.EShop.Web.csproj
  22. 10
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/BasketsResource.cs
  23. 40
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketItems/BasketItem.cs
  24. 11
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketsDbProperties.cs
  25. 12
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/EShopBasketsDomainModule.cs
  26. 7
      modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/Pages/EShop/Baskets/Index.cshtml
  27. 13
      modules/EasyAbp.EShop.Baskets/test/EasyAbp.EShop.Baskets.Application.Tests/EShopBasketsApplicationTestModule.cs
  28. 16
      modules/EasyAbp.EShop.Baskets/test/EasyAbp.EShop.Baskets.Application.Tests/EasyAbp.EShop.Baskets.Application.Tests.csproj
  29. 0
      modules/EasyAbp.EShop.Plugins/.gitattributes
  30. 10
      modules/EasyAbp.EShop.Plugins/.gitignore
  31. 40
      modules/EasyAbp.EShop.Plugins/EasyAbp.EShop.Plugins.sln
  32. 0
      modules/EasyAbp.EShop.Plugins/EasyAbp.EShop.Plugins.sln.DotSettings
  33. 13
      modules/EasyAbp.EShop.Plugins/docker-compose.migrations.yml
  34. 29
      modules/EasyAbp.EShop.Plugins/docker-compose.override.yml
  35. 4
      modules/EasyAbp.EShop.Plugins/docker-compose.yml
  36. 0
      modules/EasyAbp.EShop.Plugins/host/EasyAbp.EShop.Plugins.Host.Shared/EasyAbp.EShop.Plugins.Host.Shared.csproj
  37. 19
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/Authorization/PluginsPermissionDefinitionProvider.cs
  38. 14
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/Authorization/PluginsPermissions.cs
  39. 8
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/EShopPluginsApplicationContractsModule.cs
  40. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/EasyAbp.EShop.Plugins.Application.Contracts.csproj
  41. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/FodyWeavers.xml
  42. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/FodyWeavers.xsd
  43. 12
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/EShopPluginsApplicationModule.cs
  44. 6
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/EasyAbp.EShop.Plugins.Application.csproj
  45. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/FodyWeavers.xml
  46. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/FodyWeavers.xsd
  47. 14
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/PluginsAppService.cs
  48. 14
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/PluginsApplicationAutoMapperProfile.cs
  49. 37
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/EShopPluginsDomainSharedModule.cs
  50. 6
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/EasyAbp.EShop.Plugins.Domain.Shared.csproj
  51. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/FodyWeavers.xml
  52. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/FodyWeavers.xsd
  53. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/cs.json
  54. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/en.json
  55. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/pl.json
  56. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/pt-BR.json
  57. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/sl.json
  58. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/tr.json
  59. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/vi.json
  60. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/zh-Hans.json
  61. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/zh-Hant.json
  62. 10
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/PluginsResource.cs
  63. 7
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/PluginsErrorCodes.cs
  64. 12
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/EShopPluginsDomainModule.cs
  65. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/EasyAbp.EShop.Plugins.Domain.csproj
  66. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/FodyWeavers.xml
  67. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/FodyWeavers.xsd
  68. 11
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/PluginsDbProperties.cs
  69. 14
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/Settings/PluginsSettingDefinitionProvider.cs
  70. 11
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/Settings/PluginsSettings.cs
  71. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EasyAbp.EShop.Plugins.EntityFrameworkCore.csproj
  72. 23
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/EShopPluginsEntityFrameworkCoreModule.cs
  73. 13
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/IPluginsDbContext.cs
  74. 27
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsDbContext.cs
  75. 43
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsDbContextModelCreatingExtensions.cs
  76. 18
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsModelBuilderConfigurationOptions.cs
  77. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/FodyWeavers.xml
  78. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/FodyWeavers.xsd
  79. 10
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/EShopPluginsHttpApiClientModule.cs
  80. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/EasyAbp.EShop.Plugins.HttpApi.Client.csproj
  81. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/FodyWeavers.xml
  82. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/FodyWeavers.xsd
  83. 33
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/EShopPluginsHttpApiModule.cs
  84. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/EasyAbp.EShop.Plugins.HttpApi.csproj
  85. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/FodyWeavers.xml
  86. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/FodyWeavers.xsd
  87. 13
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/PluginsController.cs
  88. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/EasyAbp.EShop.Plugins.MongoDB.csproj
  89. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/FodyWeavers.xml
  90. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/FodyWeavers.xsd
  91. 23
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/EShopPluginsMongoDbModule.cs
  92. 13
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/IPluginsMongoDbContext.cs
  93. 20
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoDbContext.cs
  94. 22
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoDbContextExtensions.cs
  95. 14
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoModelBuilderConfigurationOptions.cs
  96. 57
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/EShopPluginsWebModule.cs
  97. 4
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/EasyAbp.EShop.Plugins.Web.csproj
  98. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/FodyWeavers.xml
  99. 0
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/FodyWeavers.xsd
  100. 7
      modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/Pages/EShop/Plugins/Index.cshtml

36
.github/workflows/publish.yml

@ -11,66 +11,66 @@ jobs:
- uses: actions/checkout@v2
# Publish modules
- name: publish EasyAbp.EShop.Baskets.Application.dll
- name: publish EasyAbp.EShop.Plugins.Application.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application/EasyAbp.EShop.Baskets.Application.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/EasyAbp.EShop.Plugins.Application.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.Application.Contracts.dll
- name: publish EasyAbp.EShop.Plugins.Application.Contracts.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application.Contracts/EasyAbp.EShop.Baskets.Application.Contracts.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/EasyAbp.EShop.Plugins.Application.Contracts.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.Domain.dll
- name: publish EasyAbp.EShop.Plugins.Domain.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/EasyAbp.EShop.Baskets.Domain.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/EasyAbp.EShop.Plugins.Domain.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.Domain.Shared.dll
- name: publish EasyAbp.EShop.Plugins.Domain.Shared.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/EasyAbp.EShop.Baskets.Domain.Shared.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/EasyAbp.EShop.Plugins.Domain.Shared.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.EntityFrameworkCore.dll
- name: publish EasyAbp.EShop.Plugins.EntityFrameworkCore.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.EntityFrameworkCore/EasyAbp.EShop.Baskets.EntityFrameworkCore.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EasyAbp.EShop.Plugins.EntityFrameworkCore.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.HttpApi.dll
- name: publish EasyAbp.EShop.Plugins.HttpApi.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi/EasyAbp.EShop.Baskets.HttpApi.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/EasyAbp.EShop.Plugins.HttpApi.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.HttpApi.Client.dll
- name: publish EasyAbp.EShop.Plugins.HttpApi.Client.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi.Client/EasyAbp.EShop.Baskets.HttpApi.Client.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/EasyAbp.EShop.Plugins.HttpApi.Client.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.MongoDB.dll
- name: publish EasyAbp.EShop.Plugins.MongoDB.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.MongoDB/EasyAbp.EShop.Baskets.MongoDB.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/EasyAbp.EShop.Plugins.MongoDB.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: publish EasyAbp.EShop.Baskets.Web.dll
- name: publish EasyAbp.EShop.Plugins.Web.dll
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/EasyAbp.EShop.Baskets.Web.csproj
PROJECT_FILE_PATH: modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/EasyAbp.EShop.Plugins.Web.csproj
VERSION_FILE_PATH: common.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.Application.Contracts/EasyAbp.EShop.Application.Contracts.csproj

@ -10,9 +10,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="3.0.1" />
<PackageReference Include="Volo.Abp.Authorization" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.Application.Contracts\EasyAbp.EShop.Baskets.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.Application.Contracts\EasyAbp.EShop.Orders.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Application.Contracts\EasyAbp.EShop.Payments.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.Application.Contracts\EasyAbp.EShop.Plugins.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Application.Contracts\EasyAbp.EShop.Products.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Application.Contracts\EasyAbp.EShop.Stores.Application.Contracts.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Domain.Shared\EasyAbp.EShop.Domain.Shared.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.Application.Contracts/EasyAbp/EShop/EShopApplicationContractsModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using EasyAbp.EShop.Orders;
using EasyAbp.EShop.Payments;
using EasyAbp.EShop.Products;
@ -14,9 +14,9 @@ namespace EasyAbp.EShop
typeof(EShopDomainSharedModule),
typeof(AbpDddApplicationContractsModule),
typeof(AbpAuthorizationModule),
typeof(EShopBasketsApplicationContractsModule),
typeof(EShopOrdersApplicationContractsModule),
typeof(EShopPaymentsApplicationContractsModule),
typeof(EShopPluginsApplicationContractsModule),
typeof(EShopProductsApplicationContractsModule),
typeof(EShopStoresApplicationContractsModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.Application/EasyAbp.EShop.Application.csproj

@ -10,9 +10,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.AutoMapper" Version="3.0.1" />
<PackageReference Include="Volo.Abp.Ddd.Application" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.Application\EasyAbp.EShop.Baskets.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.Application\EasyAbp.EShop.Orders.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Application\EasyAbp.EShop.Payments.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.Application\EasyAbp.EShop.Plugins.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Application\EasyAbp.EShop.Products.Application.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Application\EasyAbp.EShop.Stores.Application.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Application.Contracts\EasyAbp.EShop.Application.Contracts.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.Application/EasyAbp/EShop/EShopApplicationModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using EasyAbp.EShop.Orders;
using EasyAbp.EShop.Payments;
using EasyAbp.EShop.Products;
@ -15,9 +15,9 @@ namespace EasyAbp.EShop
typeof(EShopApplicationContractsModule),
typeof(AbpDddApplicationModule),
typeof(AbpAutoMapperModule),
typeof(EShopBasketsApplicationModule),
typeof(EShopOrdersApplicationModule),
typeof(EShopPaymentsApplicationModule),
typeof(EShopPluginsApplicationModule),
typeof(EShopProductsApplicationModule),
typeof(EShopStoresApplicationModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain.Shared/EasyAbp.EShop.Domain.Shared.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Validation" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.Domain.Shared\EasyAbp.EShop.Baskets.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.Domain.Shared\EasyAbp.EShop.Orders.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Domain.Shared\EasyAbp.EShop.Payments.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.Domain.Shared\EasyAbp.EShop.Plugins.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Domain.Shared\EasyAbp.EShop.Products.Domain.Shared.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain.Shared\EasyAbp.EShop.Stores.Domain.Shared.csproj" />
</ItemGroup>

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain.Shared/EasyAbp/EShop/EShopDomainSharedModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using Volo.Abp.Modularity;
using Volo.Abp.Localization;
using EasyAbp.EShop.Localization;
@ -15,9 +15,9 @@ namespace EasyAbp.EShop
{
[DependsOn(
typeof(AbpValidationModule),
typeof(EShopBasketsDomainSharedModule),
typeof(EShopOrdersDomainSharedModule),
typeof(EShopPaymentsDomainSharedModule),
typeof(EShopPluginsDomainSharedModule),
typeof(EShopProductsDomainSharedModule),
typeof(EShopStoresDomainSharedModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain/EasyAbp.EShop.Domain.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.Domain\EasyAbp.EShop.Baskets.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.Domain\EasyAbp.EShop.Orders.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Domain\EasyAbp.EShop.Payments.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.Domain\EasyAbp.EShop.Plugins.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Domain\EasyAbp.EShop.Products.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain\EasyAbp.EShop.Stores.Domain.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Domain.Shared\EasyAbp.EShop.Domain.Shared.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.Domain/EasyAbp/EShop/EShopDomainModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using EasyAbp.EShop.Orders;
using EasyAbp.EShop.Payments;
using EasyAbp.EShop.Products;
@ -9,9 +9,9 @@ namespace EasyAbp.EShop
{
[DependsOn(
typeof(EShopDomainSharedModule),
typeof(EShopBasketsDomainModule),
typeof(EShopOrdersDomainModule),
typeof(EShopPaymentsDomainModule),
typeof(EShopPluginsDomainModule),
typeof(EShopProductsDomainModule),
typeof(EShopStoresDomainModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp.EShop.EntityFrameworkCore.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.EntityFrameworkCore" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.EntityFrameworkCore\EasyAbp.EShop.Baskets.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.EntityFrameworkCore\EasyAbp.EShop.Orders.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.EntityFrameworkCore\EasyAbp.EShop.Payments.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.EntityFrameworkCore\EasyAbp.EShop.Plugins.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.EntityFrameworkCore\EasyAbp.EShop.Products.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.EntityFrameworkCore\EasyAbp.EShop.Stores.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Domain\EasyAbp.EShop.Domain.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp/EShop/EntityFrameworkCore/EShopDbContextModelCreatingExtensions.cs

@ -1,5 +1,5 @@
using System;
using EasyAbp.EShop.Baskets.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.EntityFrameworkCore;
using EasyAbp.EShop.Orders.EntityFrameworkCore;
using EasyAbp.EShop.Payments.EntityFrameworkCore;
using EasyAbp.EShop.Products.EntityFrameworkCore;
@ -44,9 +44,9 @@ namespace EasyAbp.EShop.EntityFrameworkCore
});
*/
builder.ConfigureEShopBaskets();
builder.ConfigureEShopOrders();
builder.ConfigureEShopPayments();
builder.ConfigureEShopPlugins();
builder.ConfigureEShopProducts();
builder.ConfigureEShopStores();
}

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.EntityFrameworkCore/EasyAbp/EShop/EntityFrameworkCore/EShopEntityFrameworkCoreModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.EntityFrameworkCore;
using EasyAbp.EShop.Orders.EntityFrameworkCore;
using EasyAbp.EShop.Payments.EntityFrameworkCore;
using EasyAbp.EShop.Products.EntityFrameworkCore;
@ -12,9 +12,9 @@ namespace EasyAbp.EShop.EntityFrameworkCore
[DependsOn(
typeof(EShopDomainModule),
typeof(AbpEntityFrameworkCoreModule),
typeof(EShopBasketsEntityFrameworkCoreModule),
typeof(EShopOrdersEntityFrameworkCoreModule),
typeof(EShopPaymentsEntityFrameworkCoreModule),
typeof(EShopPluginsEntityFrameworkCoreModule),
typeof(EShopProductsEntityFrameworkCoreModule),
typeof(EShopStoresEntityFrameworkCoreModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi.Client/EasyAbp.EShop.HttpApi.Client.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Http.Client" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.HttpApi.Client\EasyAbp.EShop.Baskets.HttpApi.Client.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.HttpApi.Client\EasyAbp.EShop.Orders.HttpApi.Client.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.HttpApi.Client\EasyAbp.EShop.Payments.HttpApi.Client.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.HttpApi.Client\EasyAbp.EShop.Plugins.HttpApi.Client.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.HttpApi.Client\EasyAbp.EShop.Products.HttpApi.Client.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.HttpApi.Client\EasyAbp.EShop.Stores.HttpApi.Client.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Application.Contracts\EasyAbp.EShop.Application.Contracts.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi.Client/EasyAbp/EShop/EShopHttpApiClientModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using EasyAbp.EShop.Orders;
using EasyAbp.EShop.Payments;
using EasyAbp.EShop.Products;
@ -12,9 +12,9 @@ namespace EasyAbp.EShop
[DependsOn(
typeof(EShopApplicationContractsModule),
typeof(AbpHttpClientModule),
typeof(EShopBasketsHttpApiClientModule),
typeof(EShopOrdersHttpApiClientModule),
typeof(EShopPaymentsHttpApiClientModule),
typeof(EShopPluginsHttpApiClientModule),
typeof(EShopProductsHttpApiClientModule),
typeof(EShopStoresHttpApiClientModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi/EasyAbp.EShop.HttpApi.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.HttpApi\EasyAbp.EShop.Baskets.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.HttpApi\EasyAbp.EShop.Orders.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.HttpApi\EasyAbp.EShop.Payments.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.HttpApi\EasyAbp.EShop.Plugins.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.HttpApi\EasyAbp.EShop.Products.HttpApi.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.HttpApi\EasyAbp.EShop.Stores.HttpApi.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Application.Contracts\EasyAbp.EShop.Application.Contracts.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.HttpApi/EasyAbp/EShop/EShopHttpApiModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets;
using EasyAbp.EShop.Plugins;
using Localization.Resources.AbpUi;
using EasyAbp.EShop.Localization;
using EasyAbp.EShop.Orders;
@ -15,9 +15,9 @@ namespace EasyAbp.EShop
[DependsOn(
typeof(EShopApplicationContractsModule),
typeof(AbpAspNetCoreMvcModule),
typeof(EShopBasketsHttpApiModule),
typeof(EShopOrdersHttpApiModule),
typeof(EShopPaymentsHttpApiModule),
typeof(EShopPluginsHttpApiModule),
typeof(EShopProductsHttpApiModule),
typeof(EShopStoresHttpApiModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp.EShop.MongoDB.csproj

@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.MongoDB" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.MongoDB\EasyAbp.EShop.Baskets.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.MongoDB\EasyAbp.EShop.Orders.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.MongoDB\EasyAbp.EShop.Payments.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.MongoDB\EasyAbp.EShop.Plugins.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.MongoDB\EasyAbp.EShop.Products.MongoDB.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.MongoDB\EasyAbp.EShop.Stores.MongoDB.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Domain\EasyAbp.EShop.Domain.csproj" />

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp/EShop/MongoDB/EShopMongoDbContextExtensions.cs

@ -1,5 +1,5 @@
using System;
using EasyAbp.EShop.Baskets.MongoDB;
using EasyAbp.EShop.Plugins.MongoDB;
using EasyAbp.EShop.Orders.MongoDB;
using EasyAbp.EShop.Payments.MongoDB;
using EasyAbp.EShop.Products.MongoDB;
@ -23,7 +23,7 @@ namespace EasyAbp.EShop.MongoDB
optionsAction?.Invoke(options);
builder.ConfigureEShopBaskets();
builder.ConfigureEShopPlugins();
builder.ConfigureEShopOrders();
builder.ConfigureEShopPayments();
builder.ConfigureEShopProducts();

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.MongoDB/EasyAbp/EShop/MongoDB/EShopMongoDbModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets.MongoDB;
using EasyAbp.EShop.Plugins.MongoDB;
using EasyAbp.EShop.Orders.MongoDB;
using EasyAbp.EShop.Payments.MongoDB;
using EasyAbp.EShop.Products.MongoDB;
@ -12,9 +12,9 @@ namespace EasyAbp.EShop.MongoDB
[DependsOn(
typeof(EShopDomainModule),
typeof(AbpMongoDbModule),
typeof(EShopBasketsMongoDbModule),
typeof(EShopOrdersMongoDbModule),
typeof(EShopPaymentsMongoDbModule),
typeof(EShopPluginsMongoDbModule),
typeof(EShopProductsMongoDbModule),
typeof(EShopStoresMongoDbModule)
)]

4
integration/EasyAbp.EShop/src/EasyAbp.EShop.Web/EShopWebModule.cs

@ -1,4 +1,4 @@
using EasyAbp.EShop.Baskets.Web;
using EasyAbp.EShop.Plugins.Web;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.DependencyInjection;
using EasyAbp.EShop.Localization;
@ -19,9 +19,9 @@ namespace EasyAbp.EShop.Web
typeof(EShopHttpApiModule),
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
typeof(AbpAutoMapperModule),
typeof(EShopBasketsWebModule),
typeof(EShopOrdersWebModule),
typeof(EShopPaymentsWebModule),
typeof(EShopPluginsWebModule),
typeof(EShopProductsWebModule),
typeof(EShopStoresWebModule)
)]

2
integration/EasyAbp.EShop/src/EasyAbp.EShop.Web/EasyAbp.EShop.Web.csproj

@ -13,9 +13,9 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.AutoMapper" Version="3.0.1" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared" Version="3.0.1" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Baskets\src\EasyAbp.EShop.Baskets.Web\EasyAbp.EShop.Baskets.Web.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Orders\src\EasyAbp.EShop.Orders.Web\EasyAbp.EShop.Orders.Web.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Web\EasyAbp.EShop.Payments.Web.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Plugins\src\EasyAbp.EShop.Plugins.Web\EasyAbp.EShop.Plugins.Web.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Web\EasyAbp.EShop.Products.Web.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Web\EasyAbp.EShop.Stores.Web.csproj" />
</ItemGroup>

10
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/BasketsResource.cs

@ -1,10 +0,0 @@
using Volo.Abp.Localization;
namespace EasyAbp.EShop.Baskets.Localization
{
[LocalizationResourceName("EasyAbpEShopBaskets")]
public class BasketsResource
{
}
}

40
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketItems/BasketItem.cs

@ -1,40 +0,0 @@
using System;
using JetBrains.Annotations;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
namespace EasyAbp.EShop.Baskets.BasketItems
{
public class BasketItem : CreationAuditedAggregateRoot<Guid>, IMultiTenant
{
public virtual Guid? TenantId { get; protected set; }
public virtual string BasketLabel { get; protected set; }
public virtual Guid UserId { get; protected set; }
public virtual Guid ProductId { get; protected set; }
public virtual Guid ProductSkuId { get; protected set; }
public virtual int Quantity { get; protected set; }
[CanBeNull]
public virtual string MediaResources { get; protected set; }
[NotNull]
public virtual string ProductName { get; protected set; }
[NotNull]
public virtual string SkuDescription { get; protected set; }
[NotNull]
public virtual string Currency { get; protected set; }
public virtual decimal UnitPrice { get; protected set; }
public virtual decimal TotalPrice { get; protected set; }
public virtual decimal TotalDiscount { get; protected set; }
}
}

11
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/BasketsDbProperties.cs

@ -1,11 +0,0 @@
namespace EasyAbp.EShop.Baskets
{
public static class BasketsDbProperties
{
public static string DbTablePrefix { get; set; } = "EShopBaskets";
public static string DbSchema { get; set; } = null;
public const string ConnectionStringName = "EShopBaskets";
}
}

12
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/EShopBasketsDomainModule.cs

@ -1,12 +0,0 @@
using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Baskets
{
[DependsOn(
typeof(EShopBasketsDomainSharedModule)
)]
public class EShopBasketsDomainModule : AbpModule
{
}
}

7
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/Pages/EShop/Baskets/Index.cshtml

@ -1,7 +0,0 @@
@page
@inherits EasyAbp.EShop.Baskets.Web.Pages.BasketsPage
@model EasyAbp.EShop.Baskets.Web.Pages.EShop.Baskets.IndexModel
@{
}
<h1>Baskets</h1>
<p>A sample page for the Baskets module.</p>

13
modules/EasyAbp.EShop.Baskets/test/EasyAbp.EShop.Baskets.Application.Tests/EShopBasketsApplicationTestModule.cs

@ -1,13 +0,0 @@
using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Baskets
{
[DependsOn(
typeof(EShopBasketsApplicationModule),
typeof(EShopBasketsDomainTestModule)
)]
public class EShopBasketsApplicationTestModule : AbpModule
{
}
}

16
modules/EasyAbp.EShop.Baskets/test/EasyAbp.EShop.Baskets.Application.Tests/EasyAbp.EShop.Baskets.Application.Tests.csproj

@ -1,16 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\..\common.props" />
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\EasyAbp.EShop.Baskets.Application\EasyAbp.EShop.Baskets.Application.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain.Tests\EasyAbp.EShop.Baskets.Domain.Tests.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/.gitattributes → modules/EasyAbp.EShop.Plugins/.gitattributes

10
modules/EasyAbp.EShop.Baskets/.gitignore → modules/EasyAbp.EShop.Plugins/.gitignore

@ -251,8 +251,8 @@ paket-files/
.idea/
*.sln.iml
# Baskets
host/EasyAbp.EShop.Baskets.IdentityServer/Logs/logs.txt
host/EasyAbp.EShop.Baskets.HttpApi.Host/Logs/logs.txt
host/EasyAbp.EShop.Baskets.Web.Host/Logs/logs.txt
host/EasyAbp.EShop.Baskets.Web.Unified/Logs/logs.txt
# Plugins
host/EasyAbp.EShop.Plugins.IdentityServer/Logs/logs.txt
host/EasyAbp.EShop.Plugins.HttpApi.Host/Logs/logs.txt
host/EasyAbp.EShop.Plugins.Web.Host/Logs/logs.txt
host/EasyAbp.EShop.Plugins.Web.Unified/Logs/logs.txt

40
modules/EasyAbp.EShop.Baskets/EasyAbp.EShop.Baskets.sln → modules/EasyAbp.EShop.Plugins/EasyAbp.EShop.Plugins.sln

@ -3,13 +3,13 @@ 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.Baskets.Domain.Shared", "src\EasyAbp.EShop.Baskets.Domain.Shared\EasyAbp.EShop.Baskets.Domain.Shared.csproj", "{D64C1577-4929-4B60-939E-96DE1534891A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Domain.Shared", "src\EasyAbp.EShop.Plugins.Domain.Shared\EasyAbp.EShop.Plugins.Domain.Shared.csproj", "{D64C1577-4929-4B60-939E-96DE1534891A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Domain", "src\EasyAbp.EShop.Baskets.Domain\EasyAbp.EShop.Baskets.Domain.csproj", "{F2840BC7-0188-4606-9126-DADD0F5ABF7A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Domain", "src\EasyAbp.EShop.Plugins.Domain\EasyAbp.EShop.Plugins.Domain.csproj", "{F2840BC7-0188-4606-9126-DADD0F5ABF7A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Application.Contracts", "src\EasyAbp.EShop.Baskets.Application.Contracts\EasyAbp.EShop.Baskets.Application.Contracts.csproj", "{BD65D04F-08D5-40C1-8C24-77CA0BACB877}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Application.Contracts", "src\EasyAbp.EShop.Plugins.Application.Contracts\EasyAbp.EShop.Plugins.Application.Contracts.csproj", "{BD65D04F-08D5-40C1-8C24-77CA0BACB877}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Application", "src\EasyAbp.EShop.Baskets.Application\EasyAbp.EShop.Baskets.Application.csproj", "{78040F9E-3501-4A40-82DF-00A597710F35}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Application", "src\EasyAbp.EShop.Plugins.Application\EasyAbp.EShop.Plugins.Application.csproj", "{78040F9E-3501-4A40-82DF-00A597710F35}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{649A3FFA-182F-4E56-9717-E6A9A2BEC545}"
EndProject
@ -17,37 +17,37 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CCD2960C-2
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "host", "host", "{E400416D-2895-4512-9D17-90681EEC7E0A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.EntityFrameworkCore", "src\EasyAbp.EShop.Baskets.EntityFrameworkCore\EasyAbp.EShop.Baskets.EntityFrameworkCore.csproj", "{0CE86223-D31D-4315-A1F5-87BA3EE1B844}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.EntityFrameworkCore", "src\EasyAbp.EShop.Plugins.EntityFrameworkCore\EasyAbp.EShop.Plugins.EntityFrameworkCore.csproj", "{0CE86223-D31D-4315-A1F5-87BA3EE1B844}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.MongoDB", "src\EasyAbp.EShop.Baskets.MongoDB\EasyAbp.EShop.Baskets.MongoDB.csproj", "{F1C58097-4C08-4D88-8976-6B3389391481}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.MongoDB", "src\EasyAbp.EShop.Plugins.MongoDB\EasyAbp.EShop.Plugins.MongoDB.csproj", "{F1C58097-4C08-4D88-8976-6B3389391481}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.HttpApi", "src\EasyAbp.EShop.Baskets.HttpApi\EasyAbp.EShop.Baskets.HttpApi.csproj", "{077AA5F8-8B61-420C-A6B5-0150A66FDB34}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.HttpApi", "src\EasyAbp.EShop.Plugins.HttpApi\EasyAbp.EShop.Plugins.HttpApi.csproj", "{077AA5F8-8B61-420C-A6B5-0150A66FDB34}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.HttpApi.Client", "src\EasyAbp.EShop.Baskets.HttpApi.Client\EasyAbp.EShop.Baskets.HttpApi.Client.csproj", "{36E2735F-CEAB-44C8-A6D1-2CDAFF399751}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.HttpApi.Client", "src\EasyAbp.EShop.Plugins.HttpApi.Client\EasyAbp.EShop.Plugins.HttpApi.Client.csproj", "{36E2735F-CEAB-44C8-A6D1-2CDAFF399751}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.TestBase", "test\EasyAbp.EShop.Baskets.TestBase\EasyAbp.EShop.Baskets.TestBase.csproj", "{C5BB573D-3030-4BCB-88B7-F6A85C32766C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.TestBase", "test\EasyAbp.EShop.Plugins.TestBase\EasyAbp.EShop.Plugins.TestBase.csproj", "{C5BB573D-3030-4BCB-88B7-F6A85C32766C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.EntityFrameworkCore.Tests", "test\EasyAbp.EShop.Baskets.EntityFrameworkCore.Tests\EasyAbp.EShop.Baskets.EntityFrameworkCore.Tests.csproj", "{527F645C-C1FC-406E-8479-81386C8ECF13}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.EntityFrameworkCore.Tests", "test\EasyAbp.EShop.Plugins.EntityFrameworkCore.Tests\EasyAbp.EShop.Plugins.EntityFrameworkCore.Tests.csproj", "{527F645C-C1FC-406E-8479-81386C8ECF13}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.MongoDB.Tests", "test\EasyAbp.EShop.Baskets.MongoDB.Tests\EasyAbp.EShop.Baskets.MongoDB.Tests.csproj", "{D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.MongoDB.Tests", "test\EasyAbp.EShop.Plugins.MongoDB.Tests\EasyAbp.EShop.Plugins.MongoDB.Tests.csproj", "{D0AD9179-125C-40B2-A8EE-CD4C1EE24BB6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Domain.Tests", "test\EasyAbp.EShop.Baskets.Domain.Tests\EasyAbp.EShop.Baskets.Domain.Tests.csproj", "{E60895E5-79C4-447D-88B7-85CB5BA336A4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Domain.Tests", "test\EasyAbp.EShop.Plugins.Domain.Tests\EasyAbp.EShop.Plugins.Domain.Tests.csproj", "{E60895E5-79C4-447D-88B7-85CB5BA336A4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Application.Tests", "test\EasyAbp.EShop.Baskets.Application.Tests\EasyAbp.EShop.Baskets.Application.Tests.csproj", "{90CB5DC4-C040-45C7-8900-9688B26405BC}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Application.Tests", "test\EasyAbp.EShop.Plugins.Application.Tests\EasyAbp.EShop.Plugins.Application.Tests.csproj", "{90CB5DC4-C040-45C7-8900-9688B26405BC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.HttpApi.Host", "host\EasyAbp.EShop.Baskets.HttpApi.Host\EasyAbp.EShop.Baskets.HttpApi.Host.csproj", "{37B135B0-DAFE-4616-B25C-1BDF32FC44A2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.HttpApi.Host", "host\EasyAbp.EShop.Plugins.HttpApi.Host\EasyAbp.EShop.Plugins.HttpApi.Host.csproj", "{37B135B0-DAFE-4616-B25C-1BDF32FC44A2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Web", "src\EasyAbp.EShop.Baskets.Web\EasyAbp.EShop.Baskets.Web.csproj", "{3B7B6317-1B85-4164-8E11-75574F80AE17}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Web", "src\EasyAbp.EShop.Plugins.Web\EasyAbp.EShop.Plugins.Web.csproj", "{3B7B6317-1B85-4164-8E11-75574F80AE17}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.HttpApi.Client.ConsoleTestApp", "test\EasyAbp.EShop.Baskets.HttpApi.Client.ConsoleTestApp\EasyAbp.EShop.Baskets.HttpApi.Client.ConsoleTestApp.csproj", "{1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.HttpApi.Client.ConsoleTestApp", "test\EasyAbp.EShop.Plugins.HttpApi.Client.ConsoleTestApp\EasyAbp.EShop.Plugins.HttpApi.Client.ConsoleTestApp.csproj", "{1EDCD6D4-DF3A-4E3B-ABB6-C0D0B373EAB8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Web.Host", "host\EasyAbp.EShop.Baskets.Web.Host\EasyAbp.EShop.Baskets.Web.Host.csproj", "{73513786-B6C6-4A21-89C5-0FBDD0A46107}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Web.Host", "host\EasyAbp.EShop.Plugins.Web.Host\EasyAbp.EShop.Plugins.Web.Host.csproj", "{73513786-B6C6-4A21-89C5-0FBDD0A46107}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.IdentityServer", "host\EasyAbp.EShop.Baskets.IdentityServer\EasyAbp.EShop.Baskets.IdentityServer.csproj", "{690203F4-3CD5-4569-88D9-EE831EEA5F5F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.IdentityServer", "host\EasyAbp.EShop.Plugins.IdentityServer\EasyAbp.EShop.Plugins.IdentityServer.csproj", "{690203F4-3CD5-4569-88D9-EE831EEA5F5F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Host.Shared", "host\EasyAbp.EShop.Baskets.Host.Shared\EasyAbp.EShop.Baskets.Host.Shared.csproj", "{F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Host.Shared", "host\EasyAbp.EShop.Plugins.Host.Shared\EasyAbp.EShop.Plugins.Host.Shared.csproj", "{F6AC8D4A-EDD7-4514-8E8A-5BCB019864DB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Baskets.Web.Unified", "host\EasyAbp.EShop.Baskets.Web.Unified\EasyAbp.EShop.Baskets.Web.Unified.csproj", "{3D872C41-E226-45C8-89C1-9D3DBD7C73F2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EasyAbp.EShop.Plugins.Web.Unified", "host\EasyAbp.EShop.Plugins.Web.Unified\EasyAbp.EShop.Plugins.Web.Unified.csproj", "{3D872C41-E226-45C8-89C1-9D3DBD7C73F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0
modules/EasyAbp.EShop.Baskets/EasyAbp.EShop.Baskets.sln.DotSettings → modules/EasyAbp.EShop.Plugins/EasyAbp.EShop.Plugins.sln.DotSettings

13
modules/EasyAbp.EShop.Plugins/docker-compose.migrations.yml

@ -0,0 +1,13 @@
version: '3.4'
services:
migrations:
build:
context: ../../
dockerfile: templates/service/database/Dockerfile
depends_on:
- sqlserver
environment:
- IdentityServer_DB=Plugins_Identity
- Plugins_DB=Plugins_ModuleDb
- SA_PASSWORD=yourStrong(!)Password

29
modules/EasyAbp.EShop.Plugins/docker-compose.override.yml

@ -0,0 +1,29 @@
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=Plugins_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__SqlServerCache=Server=sqlserver;Database=Plugins_Cache;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
ports:
- "51600:80"
plugins:
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionStrings__Default=Server=sqlserver;Database=Plugins_ModuleDb;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__AbpSettingManagement=Server=sqlserver;Database=Plugins_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__AbpPermissionManagement=Server=sqlserver;Database=Plugins_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__AbpAuditLogging=Server=sqlserver;Database=Plugins_Identity;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- ConnectionStrings__SqlServerCache=Server=sqlserver;Database=Plugins_Cache;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false
- AuthServer__Authority=http://identity-server
ports:
- "51601:80"

4
modules/EasyAbp.EShop.Baskets/docker-compose.yml → modules/EasyAbp.EShop.Plugins/docker-compose.yml

@ -13,10 +13,10 @@ services:
depends_on:
- sqlserver
baskets:
plugins:
build:
context: ../../
dockerfile: templates/service/host/EasyAbp.EShop.Baskets.Host/Dockerfile
dockerfile: templates/service/host/EasyAbp.EShop.Plugins.Host/Dockerfile
depends_on:
- sqlserver
- identity-server

0
modules/EasyAbp.EShop.Baskets/host/EasyAbp.EShop.Baskets.Host.Shared/EasyAbp.EShop.Baskets.Host.Shared.csproj → modules/EasyAbp.EShop.Plugins/host/EasyAbp.EShop.Plugins.Host.Shared/EasyAbp.EShop.Plugins.Host.Shared.csproj

19
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/Authorization/PluginsPermissionDefinitionProvider.cs

@ -0,0 +1,19 @@
using EasyAbp.EShop.Plugins.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;
namespace EasyAbp.EShop.Plugins.Authorization
{
public class PluginsPermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
//var moduleGroup = context.AddGroup(PluginsPermissions.GroupName, L("Permission:Plugins"));
}
private static LocalizableString L(string name)
{
return LocalizableString.Create<PluginsResource>(name);
}
}
}

14
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/Authorization/PluginsPermissions.cs

@ -0,0 +1,14 @@
using Volo.Abp.Reflection;
namespace EasyAbp.EShop.Plugins.Authorization
{
public class PluginsPermissions
{
public const string GroupName = "EasyAbp.EShop.Plugins";
public static string[] GetAll()
{
return ReflectionHelper.GetPublicConstantsRecursively(typeof(PluginsPermissions));
}
}
}

8
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application.Contracts/EShopBasketsApplicationContractsModule.cs → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/EShopPluginsApplicationContractsModule.cs

@ -3,20 +3,20 @@ using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using Volo.Abp.Authorization;
namespace EasyAbp.EShop.Baskets
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(EShopBasketsDomainSharedModule),
typeof(EShopPluginsDomainSharedModule),
typeof(AbpDddApplicationContractsModule),
typeof(AbpAuthorizationModule)
)]
public class EShopBasketsApplicationContractsModule : AbpModule
public class EShopPluginsApplicationContractsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<EShopBasketsApplicationContractsModule>("EasyAbp.EShop.Baskets");
options.FileSets.AddEmbedded<EShopPluginsApplicationContractsModule>("EasyAbp.EShop.Plugins");
});
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application.Contracts/EasyAbp.EShop.Baskets.Application.Contracts.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/EasyAbp.EShop.Plugins.Application.Contracts.csproj

@ -4,13 +4,13 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="3.0.1" />
<PackageReference Include="Volo.Abp.Authorization" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain.Shared\EasyAbp.EShop.Baskets.Domain.Shared.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Domain.Shared\EasyAbp.EShop.Plugins.Domain.Shared.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application.Contracts/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application.Contracts/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application.Contracts/FodyWeavers.xsd

12
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application/EShopBasketsApplicationModule.cs → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/EShopPluginsApplicationModule.cs

@ -3,22 +3,22 @@ using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.Application;
namespace EasyAbp.EShop.Baskets
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(EShopBasketsDomainModule),
typeof(EShopBasketsApplicationContractsModule),
typeof(EShopPluginsDomainModule),
typeof(EShopPluginsApplicationContractsModule),
typeof(AbpDddApplicationModule),
typeof(AbpAutoMapperModule)
)]
public class EShopBasketsApplicationModule : AbpModule
public class EShopPluginsApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<EShopBasketsApplicationModule>();
context.Services.AddAutoMapperObjectMapper<EShopPluginsApplicationModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<EShopBasketsApplicationModule>(validate: true);
options.AddMaps<EShopPluginsApplicationModule>(validate: true);
});
}
}

6
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application/EasyAbp.EShop.Baskets.Application.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/EasyAbp.EShop.Plugins.Application.csproj

@ -4,14 +4,14 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.AutoMapper" Version="3.0.1" />
<PackageReference Include="Volo.Abp.Ddd.Application" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Application.Contracts\EasyAbp.EShop.Baskets.Application.Contracts.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain\EasyAbp.EShop.Baskets.Domain.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Application.Contracts\EasyAbp.EShop.Plugins.Application.Contracts.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Domain\EasyAbp.EShop.Plugins.Domain.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Application/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/FodyWeavers.xsd

14
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/PluginsAppService.cs

@ -0,0 +1,14 @@
using EasyAbp.EShop.Plugins.Localization;
using Volo.Abp.Application.Services;
namespace EasyAbp.EShop.Plugins
{
public abstract class PluginsAppService : ApplicationService
{
protected PluginsAppService()
{
LocalizationResource = typeof(PluginsResource);
ObjectMapperContext = typeof(EShopPluginsApplicationModule);
}
}
}

14
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Application/PluginsApplicationAutoMapperProfile.cs

@ -0,0 +1,14 @@
using AutoMapper;
namespace EasyAbp.EShop.Plugins
{
public class PluginsApplicationAutoMapperProfile : Profile
{
public PluginsApplicationAutoMapperProfile()
{
/* You can configure your AutoMapper mapping configuration here.
* Alternatively, you can split your mapping configurations
* into multiple profile classes for a better organization. */
}
}
}

37
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/EShopPluginsDomainSharedModule.cs

@ -0,0 +1,37 @@
using Volo.Abp.Modularity;
using Volo.Abp.Localization;
using EasyAbp.EShop.Plugins.Localization;
using Volo.Abp.Localization.ExceptionHandling;
using Volo.Abp.Validation;
using Volo.Abp.Validation.Localization;
using Volo.Abp.VirtualFileSystem;
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(AbpValidationModule)
)]
public class EShopPluginsDomainSharedModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<EShopPluginsDomainSharedModule>("EasyAbp.EShop.Plugins");
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Add<PluginsResource>("en")
.AddBaseTypes(typeof(AbpValidationResource))
.AddVirtualJson("/Localization/Plugins");
});
Configure<AbpExceptionLocalizationOptions>(options =>
{
options.MapCodeNamespace("Plugins", typeof(PluginsResource));
});
}
}
}

6
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/EasyAbp.EShop.Baskets.Domain.Shared.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/EasyAbp.EShop.Plugins.Domain.Shared.csproj

@ -4,7 +4,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
@ -12,8 +12,8 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Localization\Baskets\*.json" />
<Content Remove="Localization\Baskets\*.json" />
<EmbeddedResource Include="Localization\Plugins\*.json" />
<Content Remove="Localization\Plugins\*.json" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/FodyWeavers.xsd

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/cs.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/cs.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/en.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/en.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/pl.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/pl.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/pt-BR.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/pt-BR.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/sl.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/sl.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/tr.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/tr.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/vi.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/vi.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/zh-Hans.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/zh-Hans.json

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain.Shared/Localization/Baskets/zh-Hant.json → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/Plugins/zh-Hant.json

10
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/Localization/PluginsResource.cs

@ -0,0 +1,10 @@
using Volo.Abp.Localization;
namespace EasyAbp.EShop.Plugins.Localization
{
[LocalizationResourceName("EasyAbpEShopPlugins")]
public class PluginsResource
{
}
}

7
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain.Shared/PluginsErrorCodes.cs

@ -0,0 +1,7 @@
namespace EasyAbp.EShop.Plugins
{
public static class PluginsErrorCodes
{
//Add your business exception error codes here...
}
}

12
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/EShopPluginsDomainModule.cs

@ -0,0 +1,12 @@
using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(EShopPluginsDomainSharedModule)
)]
public class EShopPluginsDomainModule : AbpModule
{
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/EasyAbp.EShop.Baskets.Domain.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/EasyAbp.EShop.Plugins.Domain.csproj

@ -4,12 +4,12 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain.Shared\EasyAbp.EShop.Baskets.Domain.Shared.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Domain.Shared\EasyAbp.EShop.Plugins.Domain.Shared.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Domain/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/FodyWeavers.xsd

11
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/PluginsDbProperties.cs

@ -0,0 +1,11 @@
namespace EasyAbp.EShop.Plugins
{
public static class PluginsDbProperties
{
public static string DbTablePrefix { get; set; } = "EShopPlugins";
public static string DbSchema { get; set; } = null;
public const string ConnectionStringName = "EShopPlugins";
}
}

14
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/Settings/PluginsSettingDefinitionProvider.cs

@ -0,0 +1,14 @@
using Volo.Abp.Settings;
namespace EasyAbp.EShop.Plugins.Settings
{
public class PluginsSettingDefinitionProvider : SettingDefinitionProvider
{
public override void Define(ISettingDefinitionContext context)
{
/* Define module settings here.
* Use names from PluginsSettings class.
*/
}
}
}

11
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Domain/Settings/PluginsSettings.cs

@ -0,0 +1,11 @@
namespace EasyAbp.EShop.Plugins.Settings
{
public static class PluginsSettings
{
public const string GroupName = "EasyAbp.EShop.Plugins";
/* Add constants for setting names. Example:
* public const string MySettingName = GroupName + ".MySettingName";
*/
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.EntityFrameworkCore/EasyAbp.EShop.Baskets.EntityFrameworkCore.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EasyAbp.EShop.Plugins.EntityFrameworkCore.csproj

@ -4,12 +4,12 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.EntityFrameworkCore" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain\EasyAbp.EShop.Baskets.Domain.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Domain\EasyAbp.EShop.Plugins.Domain.csproj" />
</ItemGroup>
</Project>

23
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/EShopPluginsEntityFrameworkCoreModule.cs

@ -0,0 +1,23 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Plugins.EntityFrameworkCore
{
[DependsOn(
typeof(EShopPluginsDomainModule),
typeof(AbpEntityFrameworkCoreModule)
)]
public class EShopPluginsEntityFrameworkCoreModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAbpDbContext<PluginsDbContext>(options =>
{
/* Add custom repositories here. Example:
* options.AddRepository<Question, EfCoreQuestionRepository>();
*/
});
}
}
}

13
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/IPluginsDbContext.cs

@ -0,0 +1,13 @@
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
namespace EasyAbp.EShop.Plugins.EntityFrameworkCore
{
[ConnectionStringName(PluginsDbProperties.ConnectionStringName)]
public interface IPluginsDbContext : IEfCoreDbContext
{
/* Add DbSet for each Aggregate Root here. Example:
* DbSet<Question> Questions { get; }
*/
}
}

27
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsDbContext.cs

@ -0,0 +1,27 @@
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
namespace EasyAbp.EShop.Plugins.EntityFrameworkCore
{
[ConnectionStringName(PluginsDbProperties.ConnectionStringName)]
public class PluginsDbContext : AbpDbContext<PluginsDbContext>, IPluginsDbContext
{
/* Add DbSet for each Aggregate Root here. Example:
* public DbSet<Question> Questions { get; set; }
*/
public PluginsDbContext(DbContextOptions<PluginsDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.ConfigureEShopPlugins();
}
}
}

43
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsDbContextModelCreatingExtensions.cs

@ -0,0 +1,43 @@
using System;
using Microsoft.EntityFrameworkCore;
using Volo.Abp;
namespace EasyAbp.EShop.Plugins.EntityFrameworkCore
{
public static class PluginsDbContextModelCreatingExtensions
{
public static void ConfigureEShopPlugins(
this ModelBuilder builder,
Action<PluginsModelBuilderConfigurationOptions> optionsAction = null)
{
Check.NotNull(builder, nameof(builder));
var options = new PluginsModelBuilderConfigurationOptions(
PluginsDbProperties.DbTablePrefix,
PluginsDbProperties.DbSchema
);
optionsAction?.Invoke(options);
/* Configure all entities here. Example:
builder.Entity<Question>(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);
});
*/
}
}
}

18
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/EntityFrameworkCore/PluginsModelBuilderConfigurationOptions.cs

@ -0,0 +1,18 @@
using JetBrains.Annotations;
using Volo.Abp.EntityFrameworkCore.Modeling;
namespace EasyAbp.EShop.Plugins.EntityFrameworkCore
{
public class PluginsModelBuilderConfigurationOptions : AbpModelBuilderConfigurationOptions
{
public PluginsModelBuilderConfigurationOptions(
[NotNull] string tablePrefix = "",
[CanBeNull] string schema = null)
: base(
tablePrefix,
schema)
{
}
}
}

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.EntityFrameworkCore/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.EntityFrameworkCore/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.EntityFrameworkCore/FodyWeavers.xsd

10
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi.Client/EShopBasketsHttpApiClientModule.cs → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/EShopPluginsHttpApiClientModule.cs

@ -2,19 +2,19 @@
using Volo.Abp.Http.Client;
using Volo.Abp.Modularity;
namespace EasyAbp.EShop.Baskets
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(EShopBasketsApplicationContractsModule),
typeof(EShopPluginsApplicationContractsModule),
typeof(AbpHttpClientModule))]
public class EShopBasketsHttpApiClientModule : AbpModule
public class EShopPluginsHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "EShopBaskets";
public const string RemoteServiceName = "EShopPlugins";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(EShopBasketsApplicationContractsModule).Assembly,
typeof(EShopPluginsApplicationContractsModule).Assembly,
RemoteServiceName
);
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi.Client/EasyAbp.EShop.Baskets.HttpApi.Client.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/EasyAbp.EShop.Plugins.HttpApi.Client.csproj

@ -4,12 +4,12 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Http.Client" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Application.Contracts\EasyAbp.EShop.Baskets.Application.Contracts.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Application.Contracts\EasyAbp.EShop.Plugins.Application.Contracts.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi.Client/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi.Client/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi.Client/FodyWeavers.xsd

33
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/EShopPluginsHttpApiModule.cs

@ -0,0 +1,33 @@
using Localization.Resources.AbpUi;
using EasyAbp.EShop.Plugins.Localization;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Microsoft.Extensions.DependencyInjection;
namespace EasyAbp.EShop.Plugins
{
[DependsOn(
typeof(EShopPluginsApplicationContractsModule),
typeof(AbpAspNetCoreMvcModule))]
public class EShopPluginsHttpApiModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(EShopPluginsHttpApiModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<PluginsResource>()
.AddBaseTypes(typeof(AbpUiResource));
});
}
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi/EasyAbp.EShop.Baskets.HttpApi.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/EasyAbp.EShop.Plugins.HttpApi.csproj

@ -4,12 +4,12 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Application.Contracts\EasyAbp.EShop.Baskets.Application.Contracts.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Application.Contracts\EasyAbp.EShop.Plugins.Application.Contracts.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.HttpApi/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/FodyWeavers.xsd

13
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.HttpApi/PluginsController.cs

@ -0,0 +1,13 @@
using EasyAbp.EShop.Plugins.Localization;
using Volo.Abp.AspNetCore.Mvc;
namespace EasyAbp.EShop.Plugins
{
public abstract class PluginsController : AbpController
{
protected PluginsController()
{
LocalizationResource = typeof(PluginsResource);
}
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.MongoDB/EasyAbp.EShop.Baskets.MongoDB.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/EasyAbp.EShop.Plugins.MongoDB.csproj

@ -4,12 +4,12 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>EasyAbp.EShop.Baskets</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.MongoDB" Version="3.0.1" />
<ProjectReference Include="..\EasyAbp.EShop.Baskets.Domain\EasyAbp.EShop.Baskets.Domain.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.Domain\EasyAbp.EShop.Plugins.Domain.csproj" />
</ItemGroup>
</Project>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.MongoDB/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.MongoDB/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/FodyWeavers.xsd

23
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/EShopPluginsMongoDbModule.cs

@ -0,0 +1,23 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.MongoDB;
namespace EasyAbp.EShop.Plugins.MongoDB
{
[DependsOn(
typeof(EShopPluginsDomainModule),
typeof(AbpMongoDbModule)
)]
public class EShopPluginsMongoDbModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddMongoDbContext<PluginsMongoDbContext>(options =>
{
/* Add custom repositories here. Example:
* options.AddRepository<Question, MongoQuestionRepository>();
*/
});
}
}
}

13
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/IPluginsMongoDbContext.cs

@ -0,0 +1,13 @@
using Volo.Abp.Data;
using Volo.Abp.MongoDB;
namespace EasyAbp.EShop.Plugins.MongoDB
{
[ConnectionStringName(PluginsDbProperties.ConnectionStringName)]
public interface IPluginsMongoDbContext : IAbpMongoDbContext
{
/* Define mongo collections here. Example:
* IMongoCollection<Question> Questions { get; }
*/
}
}

20
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoDbContext.cs

@ -0,0 +1,20 @@
using Volo.Abp.Data;
using Volo.Abp.MongoDB;
namespace EasyAbp.EShop.Plugins.MongoDB
{
[ConnectionStringName(PluginsDbProperties.ConnectionStringName)]
public class PluginsMongoDbContext : AbpMongoDbContext, IPluginsMongoDbContext
{
/* Add mongo collections here. Example:
* public IMongoCollection<Question> Questions => Collection<Question>();
*/
protected override void CreateModel(IMongoModelBuilder modelBuilder)
{
base.CreateModel(modelBuilder);
modelBuilder.ConfigureEShopPlugins();
}
}
}

22
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoDbContextExtensions.cs

@ -0,0 +1,22 @@
using System;
using Volo.Abp;
using Volo.Abp.MongoDB;
namespace EasyAbp.EShop.Plugins.MongoDB
{
public static class PluginsMongoDbContextExtensions
{
public static void ConfigureEShopPlugins(
this IMongoModelBuilder builder,
Action<AbpMongoModelBuilderConfigurationOptions> optionsAction = null)
{
Check.NotNull(builder, nameof(builder));
var options = new PluginsMongoModelBuilderConfigurationOptions(
PluginsDbProperties.DbTablePrefix
);
optionsAction?.Invoke(options);
}
}
}

14
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.MongoDB/MongoDB/PluginsMongoModelBuilderConfigurationOptions.cs

@ -0,0 +1,14 @@
using JetBrains.Annotations;
using Volo.Abp.MongoDB;
namespace EasyAbp.EShop.Plugins.MongoDB
{
public class PluginsMongoModelBuilderConfigurationOptions : AbpMongoModelBuilderConfigurationOptions
{
public PluginsMongoModelBuilderConfigurationOptions(
[NotNull] string collectionPrefix = "")
: base(collectionPrefix)
{
}
}
}

57
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/EShopPluginsWebModule.cs

@ -0,0 +1,57 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.DependencyInjection;
using EasyAbp.EShop.Plugins.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.Plugins.Web
{
[DependsOn(
typeof(EShopPluginsHttpApiModule),
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
typeof(AbpAutoMapperModule)
)]
public class EShopPluginsWebModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
{
options.AddAssemblyResource(typeof(PluginsResource), typeof(EShopPluginsWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(EShopPluginsWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpNavigationOptions>(options =>
{
options.MenuContributors.Add(new PluginsMenuContributor());
});
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<EShopPluginsWebModule>("EasyAbp.EShop.Plugins.Web");
});
context.Services.AddAutoMapperObjectMapper<EShopPluginsWebModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<EShopPluginsWebModule>(validate: true);
});
Configure<RazorPagesOptions>(options =>
{
//Configure authorization.
});
}
}
}

4
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/EasyAbp.EShop.Baskets.Web.csproj → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/EasyAbp.EShop.Plugins.Web.csproj

@ -7,7 +7,7 @@
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<IsPackable>true</IsPackable>
<OutputType>Library</OutputType>
<RootNamespace>EasyAbp.EShop.Baskets.Web</RootNamespace>
<RootNamespace>EasyAbp.EShop.Plugins.Web</RootNamespace>
</PropertyGroup>
<ItemGroup>
@ -16,7 +16,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EasyAbp.EShop.Baskets.HttpApi\EasyAbp.EShop.Baskets.HttpApi.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Plugins.HttpApi\EasyAbp.EShop.Plugins.HttpApi.csproj" />
</ItemGroup>
<ItemGroup>

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/FodyWeavers.xml → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/FodyWeavers.xml

0
modules/EasyAbp.EShop.Baskets/src/EasyAbp.EShop.Baskets.Web/FodyWeavers.xsd → modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/FodyWeavers.xsd

7
modules/EasyAbp.EShop.Plugins/src/EasyAbp.EShop.Plugins.Web/Pages/EShop/Plugins/Index.cshtml

@ -0,0 +1,7 @@
@page
@inherits EasyAbp.EShop.Plugins.Web.Pages.PluginsPage
@model EasyAbp.EShop.Plugins.Web.Pages.EShop.Plugins.IndexModel
@{
}
<h1>Plugins</h1>
<p>A sample page for the Plugins module.</p>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save