mirror of https://github.com/EasyAbp/EShop.git
16 changed files with 131 additions and 10 deletions
@ -0,0 +1,9 @@ |
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public enum InventoryStrategy |
|||
{ |
|||
NoNeed = 1, |
|||
ReduceAfterPlacing = 2, |
|||
ReduceAfterPayment = 4 |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
using System; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
[Serializable] |
|||
public class ProductInventoryReductionFailedEto |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -1,10 +1,20 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
using Volo.Abp.MultiTenancy; |
|||
|
|||
namespace EasyAbp.EShop.Products.ProductTypes |
|||
{ |
|||
public class ProductType : FullAuditedAggregateRoot<Guid> |
|||
{ |
|||
public virtual string Name { get; protected set; } |
|||
|
|||
[NotNull] |
|||
public virtual string DisplayName { get; protected set; } |
|||
|
|||
[CanBeNull] |
|||
public virtual string Description { get; protected set; } |
|||
|
|||
public virtual MultiTenancySides MultiTenancySide { get; protected set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public interface IProductInventoryManager |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public interface IProductPriceProvider |
|||
{ |
|||
|
|||
} |
|||
} |
|||
@ -1,10 +1,15 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class ProductAttribute : FullAuditedEntity<Guid> |
|||
{ |
|||
[NotNull] |
|||
public virtual string DisplayName { get; protected set; } |
|||
|
|||
[CanBeNull] |
|||
public virtual string Description { get; protected set; } |
|||
} |
|||
} |
|||
@ -1,10 +1,15 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class ProductAttributeOption : FullAuditedEntity<Guid> |
|||
{ |
|||
[NotNull] |
|||
public virtual string DisplayName { get; protected set; } |
|||
|
|||
[CanBeNull] |
|||
public virtual string Description { get; protected set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class ProductDetail : Entity |
|||
{ |
|||
public virtual Guid ProductId { get; protected set; } |
|||
|
|||
[CanBeNull] |
|||
public virtual string Description { get; protected set; } |
|||
|
|||
public override object[] GetKeys() |
|||
{ |
|||
return new object[] {ProductId}; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace EasyAbp.EShop.Products.Products |
|||
{ |
|||
public class ProductSku : FullAuditedEntity<Guid> |
|||
{ |
|||
public virtual string SerializedAttributeOptionIds { get; protected set; } |
|||
|
|||
public virtual decimal OriginalPrice { get; protected set; } |
|||
|
|||
public virtual decimal Price { get; protected set; } |
|||
|
|||
public virtual int Inventory { get; protected set; } |
|||
|
|||
public virtual int OrderMinQuantity { get; protected set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue