Compare commits
No commits in common. "cefb19584d9dec7edb6c648778f3fdc5cca8136a" and "6fecdd2317487a3f043647306486f5fe444d85d7" have entirely different histories.
cefb19584d
...
6fecdd2317
|
|
@ -1,29 +0,0 @@
|
||||||
using Mango.Nop.Core.Interfaces;
|
|
||||||
using Nop.Core.Domain.Catalog;
|
|
||||||
using Nop.Core.Domain.Orders;
|
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Dtos;
|
|
||||||
|
|
||||||
public abstract class MgOrderDto : ModelDtoBase<Order>, IMgOrderDto
|
|
||||||
{
|
|
||||||
public Guid OrderGuid { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public int StoreId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public int CustomerId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public int OrderStatusId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public int ShippingStatusId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public decimal OrderDiscount { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public decimal OrderTotal { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public DateTime CreatedOnUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public DateTime? PaidDateUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public string ShippingMethod { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public string CustomOrderNumber { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public string CustomValuesXml { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
public bool Deleted { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
|
|
||||||
|
|
||||||
protected MgOrderDto() :base()
|
|
||||||
{ }
|
|
||||||
protected MgOrderDto(int orderId) : base(orderId)
|
|
||||||
{ }
|
|
||||||
protected MgOrderDto(Order order) : base(order)
|
|
||||||
{ }
|
|
||||||
}
|
|
||||||
|
|
@ -5,7 +5,7 @@ using Nop.Core.Domain.Discounts;
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Dtos;
|
namespace Mango.Nop.Core.Dtos;
|
||||||
|
|
||||||
public abstract class MgProductDto : ModelDtoBase<Product>, IMgProductDto//, IDiscountSupported<DiscountProductMapping>
|
public class ProductDto : ModelDtoBase<Product>, IProductDto//, IDiscountSupported<DiscountProductMapping>
|
||||||
{
|
{
|
||||||
//public int Id { get; set; }
|
//public int Id { get; set; }
|
||||||
public int ProductTypeId { get; set; }
|
public int ProductTypeId { get; set; }
|
||||||
|
|
@ -25,11 +25,11 @@ public abstract class MgProductDto : ModelDtoBase<Product>, IMgProductDto//, IDi
|
||||||
|
|
||||||
public bool Deleted { get; set; }
|
public bool Deleted { get; set; }
|
||||||
|
|
||||||
protected MgProductDto() :base()
|
public ProductDto() :base()
|
||||||
{ }
|
{ }
|
||||||
protected MgProductDto(int productId) : base(productId)
|
public ProductDto(int productId) : base(productId)
|
||||||
{ }
|
{ }
|
||||||
protected MgProductDto(Product product) : base(product)
|
public ProductDto(Product product) : base(product)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public override void CopyDtoValuesToEntity(Product entity)
|
public override void CopyDtoValuesToEntity(Product entity)
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
using AyCode.Interfaces.Entities;
|
|
||||||
using Nop.Core.Domain.Common;
|
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Interfaces;
|
|
||||||
|
|
||||||
public interface IMgOrderDto : IEntityInt, ISoftDeletedEntity
|
|
||||||
{
|
|
||||||
public Guid OrderGuid { get; set; }
|
|
||||||
public int StoreId { get; set; }
|
|
||||||
|
|
||||||
public int CustomerId { get; set; }
|
|
||||||
|
|
||||||
public int OrderStatusId { get; set; }
|
|
||||||
//public OrderStatus OrderStatus
|
|
||||||
//{
|
|
||||||
// get => (OrderStatus)OrderStatusId;
|
|
||||||
// set => OrderStatusId = (int)value;
|
|
||||||
//}
|
|
||||||
|
|
||||||
public int ShippingStatusId { get; set; }
|
|
||||||
//public ShippingStatus ShippingStatus
|
|
||||||
//{
|
|
||||||
// get => (ShippingStatus)ShippingStatusId;
|
|
||||||
// set => ShippingStatusId = (int)value;
|
|
||||||
//}
|
|
||||||
|
|
||||||
public decimal OrderDiscount { get; set; }
|
|
||||||
|
|
||||||
public decimal OrderTotal { get; set; }
|
|
||||||
|
|
||||||
public DateTime CreatedOnUtc { get; set; }
|
|
||||||
public DateTime? PaidDateUtc { get; set; }
|
|
||||||
|
|
||||||
public string ShippingMethod { get; set; }
|
|
||||||
|
|
||||||
public string CustomOrderNumber { get; set; }
|
|
||||||
public string CustomValuesXml { get; set; }
|
|
||||||
|
|
||||||
public bool Deleted { get; set; }
|
|
||||||
}
|
|
||||||
|
|
@ -8,7 +8,7 @@ using Nop.Core.Domain.Stores;
|
||||||
|
|
||||||
namespace Mango.Nop.Core.Interfaces;
|
namespace Mango.Nop.Core.Interfaces;
|
||||||
|
|
||||||
public interface IMgProductDto : IEntityInt, ILocalizedEntity, ISlugSupported, IAclSupported, IStoreMappingSupported/*, IDiscountSupported<DiscountProductMapping>*/, ISoftDeletedEntity
|
public interface IProductDto : IEntityInt, ILocalizedEntity, ISlugSupported, IAclSupported, IStoreMappingSupported/*, IDiscountSupported<DiscountProductMapping>*/, ISoftDeletedEntity
|
||||||
{
|
{
|
||||||
int ProductTypeId { get; set; }
|
int ProductTypeId { get; set; }
|
||||||
int ParentGroupedProductId { get; set; }
|
int ParentGroupedProductId { get; set; }
|
||||||
|
|
@ -15,7 +15,6 @@ namespace Mango.Nop.Services;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MgEventConsumer(IHttpContextAccessor httpContextAccessor, IEnumerable<IAcLogWriterBase> logWriters) :
|
public class MgEventConsumer(IHttpContextAccessor httpContextAccessor, IEnumerable<IAcLogWriterBase> logWriters) :
|
||||||
IConsumer<EntityUpdatedEvent<Product>>,
|
IConsumer<EntityUpdatedEvent<Product>>,
|
||||||
IConsumer<EntityInsertedEvent<Product>>,
|
|
||||||
IConsumer<CustomerRegisteredEvent>,
|
IConsumer<CustomerRegisteredEvent>,
|
||||||
IConsumer<OrderPlacedEvent>,
|
IConsumer<OrderPlacedEvent>,
|
||||||
IConsumer<PageRenderingEvent>,
|
IConsumer<PageRenderingEvent>,
|
||||||
|
|
@ -27,25 +26,27 @@ public class MgEventConsumer(IHttpContextAccessor httpContextAccessor, IEnumerab
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
protected ILogger Logger { get; } = new Logger<MgEventConsumer>(logWriters.ToArray());
|
protected ILogger Logger { get; } = new Logger<MgEventConsumer>(logWriters.ToArray());
|
||||||
protected readonly IHttpContextAccessor HttpContextAccessor = httpContextAccessor;
|
private readonly IHttpContextAccessor _httpContextAccessor = httpContextAccessor;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public virtual async Task HandleEventAsync(EntityUpdatedEvent<Product> eventMessage)
|
public virtual async Task HandleEventAsync(EntityUpdatedEvent<Product> eventMessage)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
public virtual async Task HandleEventAsync(EntityInsertedEvent<Product> eventMessage)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
public virtual async Task HandleEventAsync(CustomerRegisteredEvent eventMessage)
|
public virtual async Task HandleEventAsync(CustomerRegisteredEvent eventMessage)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual async Task HandleEventAsync(OrderPlacedEvent eventMessage)
|
public virtual async Task HandleEventAsync(OrderPlacedEvent eventMessage)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual async Task HandleEventAsync(PageRenderingEvent eventMessage)
|
public virtual async Task HandleEventAsync(PageRenderingEvent eventMessage)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual async Task HandleEventAsync(ProductSearchEvent eventMessage)
|
public virtual async Task HandleEventAsync(ProductSearchEvent eventMessage)
|
||||||
{ }
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue