mirror of https://github.com/EasyAbp/EShop.git
33 changed files with 5406 additions and 69 deletions
@ -1,10 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
[Serializable] |
|||
public class OrderCanceledEto |
|||
public class OrderCanceledEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public OrderEto Order { get; set; } |
|||
|
|||
public OrderCanceledEto(OrderEto order) |
|||
{ |
|||
TenantId = order.TenantId; |
|||
Order = order; |
|||
} |
|||
} |
|||
} |
|||
@ -1,10 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
[Serializable] |
|||
public class OrderCompletedEto |
|||
public class OrderCompletedEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public OrderEto Order { get; set; } |
|||
|
|||
public OrderCompletedEto(OrderEto order) |
|||
{ |
|||
TenantId = order.TenantId; |
|||
Order = order; |
|||
} |
|||
} |
|||
} |
|||
@ -1,14 +1,25 @@ |
|||
using System; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
[Serializable] |
|||
public class OrderPaidEto |
|||
public class OrderPaidEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public OrderEto Order { get; set; } |
|||
|
|||
public Guid PaymentId { get; set; } |
|||
|
|||
public Guid PaymentItemId { get; set; } |
|||
|
|||
public OrderPaidEto(OrderEto order, Guid paymentId, Guid paymentItemId) |
|||
{ |
|||
TenantId = order.TenantId; |
|||
Order = order; |
|||
PaymentId = paymentId; |
|||
PaymentItemId = paymentItemId; |
|||
} |
|||
} |
|||
} |
|||
@ -1,13 +1,23 @@ |
|||
using System; |
|||
using EasyAbp.EShop.Payments.Refunds; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Orders.Orders |
|||
{ |
|||
[Serializable] |
|||
public class OrderRefundedEto |
|||
public class OrderRefundedEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public OrderEto Order { get; set; } |
|||
|
|||
public EShopRefundEto Refund { get; set; } |
|||
|
|||
public OrderRefundedEto(OrderEto order, EShopRefundEto refund) |
|||
{ |
|||
TenantId = order.TenantId; |
|||
Order = order; |
|||
Refund = refund; |
|||
} |
|||
} |
|||
} |
|||
@ -1,10 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Payments.Payments |
|||
{ |
|||
[Serializable] |
|||
public class EShopPaymentCanceledEto |
|||
public class EShopPaymentCanceledEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public EShopPaymentEto Payment { get; set; } |
|||
|
|||
public EShopPaymentCanceledEto(EShopPaymentEto payment) |
|||
{ |
|||
TenantId = payment.TenantId; |
|||
Payment = payment; |
|||
} |
|||
} |
|||
} |
|||
@ -1,10 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Payments.Payments |
|||
{ |
|||
[Serializable] |
|||
public class EShopPaymentCompletedEto |
|||
public class EShopPaymentCompletedEto : IMultiTenant |
|||
{ |
|||
public Guid? TenantId { get; set; } |
|||
|
|||
public EShopPaymentEto Payment { get; set; } |
|||
|
|||
public EShopPaymentCompletedEto(EShopPaymentEto payment) |
|||
{ |
|||
TenantId = payment.TenantId; |
|||
Payment = payment; |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,84 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class MadeAggregateRootsMultiTenant : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductViews", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProducts", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductInventories", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductHistories", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductDetails", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductDetailHistories", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopPluginsBasketsProductUpdates", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductViews"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProducts"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductDetails"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EasyAbpEShopPluginsBasketsProductUpdates"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue