Browse Source

Upgrade PaymentService module to version 1.1.0

Add a string property CancellationReason to Order aggregate root
Add an unimplemented IOrderAppService.CancelAsync() method
Resolve #61
pull/96/head
gdlcf88 6 years ago
parent
commit
903e1d1c88
  1. 10
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/CancelOrderInput.cs
  2. 9
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/CompleteOrderInput.cs
  3. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/OrderDto.cs
  4. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/IOrderAppService.cs
  5. 5
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application/EasyAbp/EShop/Orders/Orders/OrderAppService.cs
  6. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain.Shared/EasyAbp/EShop/Orders/Orders/IOrder.cs
  7. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain.Shared/EasyAbp/EShop/Orders/Orders/OrderEto.cs
  8. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp.EShop.Orders.Domain.csproj
  9. 9
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/Order.cs
  10. 8
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.HttpApi/EasyAbp/EShop/Orders/Orders/OrderController.cs
  11. 1
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Application.Contracts/EasyAbp.EShop.Payments.Application.Contracts.csproj
  12. 5
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Application.Contracts/EasyAbp/EShop/Payments/EShopPaymentsApplicationContractsModule.cs
  13. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp.EShop.Payments.Domain.csproj
  14. 11
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp/EShop/Payments/Refunds/Refund.cs
  15. 34
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp/EShop/Payments/Refunds/RefundItem.cs
  16. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSample.Application.Contracts.csproj
  17. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSample.Application.csproj
  18. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSample.Domain.Shared.csproj
  19. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSample.Domain.csproj
  20. 3930
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.Designer.cs
  21. 110
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.cs
  22. 83
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/EShopSampleMigrationsDbContextModelSnapshot.cs
  23. 4
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj
  24. 4
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSample.HttpApi.Client.csproj
  25. 4
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSample.HttpApi.csproj
  26. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj

10
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/CancelOrderInput.cs

@ -0,0 +1,10 @@
using System;
namespace EasyAbp.EShop.Orders.Orders.Dtos
{
[Serializable]
public class CancelOrderInput
{
public string CancellationReason { get; set; }
}
}

9
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/CompleteOrderInput.cs

@ -1,9 +0,0 @@
using System;
namespace EasyAbp.EShop.Orders.Orders.Dtos
{
public class CompleteOrderInput
{
public Guid OrderId { get; set; }
}
}

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/Dtos/OrderDto.cs

@ -36,6 +36,8 @@ namespace EasyAbp.EShop.Orders.Orders.Dtos
public DateTime? CanceledTime { get; set; }
public string CancellationReason { get; set; }
public DateTime? ReducedInventoryAfterPlacingTime { get; set; }
public DateTime? ReducedInventoryAfterPaymentTime { get; set; }

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application.Contracts/EasyAbp/EShop/Orders/Orders/IOrderAppService.cs

@ -15,5 +15,7 @@ namespace EasyAbp.EShop.Orders.Orders
Task<OrderDto> GetByOrderNumberAsync(string orderNumber);
Task<OrderDto> CompleteAsync(Guid id);
Task<OrderDto> CancelAsync(Guid id, CancelOrderInput input);
}
}

5
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Application/EasyAbp/EShop/Orders/Orders/OrderAppService.cs

@ -173,5 +173,10 @@ namespace EasyAbp.EShop.Orders.Orders
return MapToGetOutputDto(order);
}
public virtual Task<OrderDto> CancelAsync(Guid id, CancelOrderInput input)
{
throw new NotImplementedException();
}
}
}

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain.Shared/EasyAbp/EShop/Orders/Orders/IOrder.cs

@ -33,6 +33,8 @@ namespace EasyAbp.EShop.Orders.Orders
DateTime? CanceledTime { get; }
string CancellationReason { get; }
DateTime? ReducedInventoryAfterPlacingTime { get; }
DateTime? ReducedInventoryAfterPaymentTime { get; }

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain.Shared/EasyAbp/EShop/Orders/Orders/OrderEto.cs

@ -41,6 +41,8 @@ namespace EasyAbp.EShop.Orders.Orders
public DateTime? CanceledTime { get; set; }
public string CancellationReason { get; set; }
public DateTime? ReducedInventoryAfterPlacingTime { get; set; }
public DateTime? ReducedInventoryAfterPaymentTime { get; set; }

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp.EShop.Orders.Domain.csproj

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.1.0" />
<PackageReference Include="Volo.Abp.AutoMapper" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="3.0.4" />
<ProjectReference Include="..\..\..\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.Domain.Shared\EasyAbp.EShop.Payments.Domain.Shared.csproj" />

9
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/Order.cs

@ -44,6 +44,9 @@ namespace EasyAbp.EShop.Orders.Orders
public virtual DateTime? CanceledTime { get; protected set; }
[CanBeNull]
public virtual string CancellationReason { get; protected set; }
public virtual DateTime? ReducedInventoryAfterPlacingTime { get; protected set; }
public virtual DateTime? ReducedInventoryAfterPaymentTime { get; protected set; }
@ -120,5 +123,11 @@ namespace EasyAbp.EShop.Orders.Orders
{
CompletionTime = completionTime;
}
public void Cancel(DateTime canceledTime, [CanBeNull] string reason)
{
CanceledTime = canceledTime;
CancellationReason = reason;
}
}
}

8
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.HttpApi/EasyAbp/EShop/Orders/Orders/OrderController.cs

@ -66,5 +66,13 @@ namespace EasyAbp.EShop.Orders.Orders
{
return _service.CompleteAsync(id);
}
[HttpPost]
[Route("{id}/cancel")]
public Task<OrderDto> CancelAsync(Guid id, CancelOrderInput input)
{
return _service.CancelAsync(id, input);
}
}
}

1
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Application.Contracts/EasyAbp.EShop.Payments.Application.Contracts.csproj

@ -8,6 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.1.0" />
<PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Authorization" Version="3.0.4" />
<ProjectReference Include="..\EasyAbp.EShop.Payments.Domain.Shared\EasyAbp.EShop.Payments.Domain.Shared.csproj" />

5
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Application.Contracts/EasyAbp/EShop/Payments/EShopPaymentsApplicationContractsModule.cs

@ -1,12 +1,13 @@
using Volo.Abp.Application;
using EasyAbp.PaymentService;
using Volo.Abp.Application;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using Volo.Abp.Authorization;
namespace EasyAbp.EShop.Payments
{
[DependsOn(
typeof(EShopPaymentsDomainSharedModule),
typeof(PaymentServiceDomainSharedModule),
typeof(AbpDddApplicationContractsModule),
typeof(AbpAuthorizationModule)
)]

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp.EShop.Payments.Domain.csproj

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.1.0" />
<PackageReference Include="Volo.Abp.AutoMapper" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="3.0.4" />
<ProjectReference Include="..\..\..\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain.Shared\EasyAbp.EShop.Stores.Domain.Shared.csproj" />

11
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp/EShop/Payments/Refunds/Refund.cs

@ -13,8 +13,6 @@ namespace EasyAbp.EShop.Payments.Refunds
public virtual Guid PaymentId { get; protected set; }
public virtual Guid PaymentItemId { get; protected set; }
[NotNull]
public virtual string RefundPaymentMethod { get; protected set; }
@ -25,6 +23,8 @@ namespace EasyAbp.EShop.Payments.Refunds
public virtual string Currency { get; protected set; }
public virtual decimal RefundAmount { get; protected set; }
public virtual string DisplayReason { get; protected set; }
[CanBeNull]
public virtual string CustomerRemark { get; protected set; }
@ -38,16 +38,9 @@ namespace EasyAbp.EShop.Payments.Refunds
#endregion
public virtual Guid? StoreId { get; protected set; }
private Refund()
{
}
public void SetStoreId(Guid? storeId)
{
StoreId = storeId;
}
}
}

34
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp/EShop/Payments/Refunds/RefundItem.cs

@ -0,0 +1,34 @@
using System;
using EasyAbp.PaymentService.Refunds;
using JetBrains.Annotations;
using Volo.Abp.Domain.Entities.Auditing;
namespace EasyAbp.EShop.Payments.Refunds
{
public class RefundItem : FullAuditedEntity<Guid>, IRefundItem
{
#region Base properties
public virtual Guid PaymentItemId { get; protected set; }
public virtual decimal RefundAmount { get; protected set; }
public virtual string CustomerRemark { get; protected set; }
public virtual string StaffRemark { get; protected set; }
#endregion
public virtual Guid? StoreId { get; protected set; }
private RefundItem()
{
}
public void SetStoreId(Guid? storeId)
{
StoreId = storeId;
}
}
}

4
samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSample.Application.Contracts.csproj

@ -14,8 +14,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Application.Contracts" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application.Contracts" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Application.Contracts" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application.Contracts" Version="1.1.0" />
<PackageReference Include="Volo.Abp.ObjectExtending" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSample.Application.csproj

@ -15,8 +15,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Application" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Application" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application" Version="1.1.0" />
<PackageReference Include="Volo.Abp.Account.Application" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Identity.Application" Version="3.0.4" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSample.Domain.Shared.csproj

@ -9,8 +9,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain.Shared" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain.Shared" Version="1.1.0" />
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="3.0.4" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="3.0.4" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSample.Domain.csproj

@ -14,8 +14,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.Domain" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Domain" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" Version="2.2.0" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="3.0.4" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="3.0.4" />

3930
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.Designer.cs

File diff suppressed because it is too large

110
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.cs

@ -0,0 +1,110 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class UpgradedPaymentServiceTo1_1_0 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PaymentItemId",
table: "EasyAbpPaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "PaymentItemId",
table: "EasyAbpEShopPaymentsRefunds");
migrationBuilder.DropColumn(
name: "StoreId",
table: "EasyAbpEShopPaymentsRefunds");
migrationBuilder.AddColumn<string>(
name: "DisplayReason",
table: "EasyAbpPaymentServiceRefunds",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "DisplayReason",
table: "EasyAbpEShopPaymentsRefunds",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CancellationReason",
table: "EasyAbpEShopOrdersOrders",
nullable: true);
migrationBuilder.CreateTable(
name: "EasyAbpPaymentServiceRefundItems",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
PaymentItemId = table.Column<Guid>(nullable: false),
RefundAmount = table.Column<decimal>(type: "decimal(20,8)", nullable: false),
CustomerRemark = table.Column<string>(nullable: true),
StaffRemark = table.Column<string>(nullable: true),
RefundId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpPaymentServiceRefundItems", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpPaymentServiceRefundItems_EasyAbpPaymentServiceRefunds_RefundId",
column: x => x.RefundId,
principalTable: "EasyAbpPaymentServiceRefunds",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_EasyAbpPaymentServiceRefundItems_RefundId",
table: "EasyAbpPaymentServiceRefundItems",
column: "RefundId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpPaymentServiceRefundItems");
migrationBuilder.DropColumn(
name: "DisplayReason",
table: "EasyAbpPaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "DisplayReason",
table: "EasyAbpEShopPaymentsRefunds");
migrationBuilder.DropColumn(
name: "CancellationReason",
table: "EasyAbpEShopOrdersOrders");
migrationBuilder.AddColumn<Guid>(
name: "PaymentItemId",
table: "EasyAbpPaymentServiceRefunds",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<Guid>(
name: "PaymentItemId",
table: "EasyAbpEShopPaymentsRefunds",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "EasyAbpEShopPaymentsRefunds",
type: "uniqueidentifier",
nullable: true);
}
}
}

83
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/EShopSampleMigrationsDbContextModelSnapshot.cs

@ -30,6 +30,9 @@ namespace EShopSample.Migrations
b.Property<DateTime?>("CanceledTime")
.HasColumnType("datetime2");
b.Property<string>("CancellationReason")
.HasColumnType("nvarchar(max)");
b.Property<DateTime?>("CompletionTime")
.HasColumnType("datetime2");
@ -430,6 +433,9 @@ namespace EShopSample.Migrations
.HasColumnName("DeletionTime")
.HasColumnType("datetime2");
b.Property<string>("DisplayReason")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExternalTradingCode")
.HasColumnType("nvarchar(max)");
@ -454,9 +460,6 @@ namespace EShopSample.Migrations
b.Property<Guid>("PaymentId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PaymentItemId")
.HasColumnType("uniqueidentifier");
b.Property<decimal>("RefundAmount")
.HasColumnType("decimal(20,8)");
@ -466,9 +469,6 @@ namespace EShopSample.Migrations
b.Property<string>("StaffRemark")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("StoreId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier");
@ -1610,6 +1610,9 @@ namespace EShopSample.Migrations
.HasColumnName("DeletionTime")
.HasColumnType("datetime2");
b.Property<string>("DisplayReason")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExternalTradingCode")
.HasColumnType("nvarchar(max)");
@ -1634,9 +1637,6 @@ namespace EShopSample.Migrations
b.Property<Guid>("PaymentId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PaymentItemId")
.HasColumnType("uniqueidentifier");
b.Property<decimal>("RefundAmount")
.HasColumnType("decimal(20,8)");
@ -1655,6 +1655,64 @@ namespace EShopSample.Migrations
b.ToTable("EasyAbpPaymentServiceRefunds");
});
modelBuilder.Entity("EasyAbp.PaymentService.Refunds.RefundItem", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime2");
b.Property<Guid?>("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("uniqueidentifier");
b.Property<string>("CustomerRemark")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime2");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<DateTime?>("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime2");
b.Property<Guid?>("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PaymentItemId")
.HasColumnType("uniqueidentifier");
b.Property<decimal>("RefundAmount")
.HasColumnType("decimal(20,8)");
b.Property<Guid?>("RefundId")
.HasColumnType("uniqueidentifier");
b.Property<string>("StaffRemark")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("RefundId");
b.ToTable("EasyAbpPaymentServiceRefundItems");
});
modelBuilder.Entity("EasyAbp.PaymentService.WeChatPay.PaymentRecords.PaymentRecord", b =>
{
b.Property<Guid>("Id")
@ -3608,6 +3666,13 @@ namespace EShopSample.Migrations
.HasForeignKey("PaymentId");
});
modelBuilder.Entity("EasyAbp.PaymentService.Refunds.RefundItem", b =>
{
b.HasOne("EasyAbp.PaymentService.Refunds.Refund", null)
.WithMany("RefundItems")
.HasForeignKey("RefundId");
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{
b.HasOne("Volo.Abp.AuditLogging.AuditLog", null)

4
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj

@ -11,8 +11,8 @@
<ProjectReference Include="..\..\..\..\..\integration\EasyAbp.EShop\src\EasyAbp.EShop.EntityFrameworkCore\EasyAbp.EShop.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\..\..\..\..\plugins\Baskets\src\EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore\EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore.csproj" />
<ProjectReference Include="..\EShopSample.Domain\EShopSample.Domain.csproj" />
<PackageReference Include="EasyAbp.PaymentService.EntityFrameworkCore" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.EntityFrameworkCore" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore" Version="1.1.0" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="3.0.4" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="3.0.4" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSample.HttpApi.Client.csproj

@ -14,8 +14,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.HttpApi.Client" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi.Client" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.HttpApi.Client" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi.Client" Version="1.1.0" />
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="3.0.4" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSample.HttpApi.csproj

@ -14,8 +14,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EasyAbp.PaymentService.HttpApi" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.HttpApi" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi" Version="1.1.0" />
<PackageReference Include="Volo.Abp.Account.HttpApi" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Identity.HttpApi" Version="3.0.4" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="3.0.4" />

4
samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj

@ -46,8 +46,8 @@
<ProjectReference Include="..\EShopSample.Application\EShopSample.Application.csproj" />
<ProjectReference Include="..\EShopSample.HttpApi\EShopSample.HttpApi.csproj" />
<ProjectReference Include="..\EShopSample.EntityFrameworkCore.DbMigrations\EShopSample.EntityFrameworkCore.DbMigrations.csproj" />
<PackageReference Include="EasyAbp.PaymentService.Web" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Web" Version="1.0.0" />
<PackageReference Include="EasyAbp.PaymentService.Web" Version="1.1.0" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Web" Version="1.1.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="3.0.4" />
<PackageReference Include="Volo.Abp.Autofac" Version="3.0.4" />
<PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="3.0.4" />

Loading…
Cancel
Save