mirror of https://github.com/EasyAbp/EShop.git
7 changed files with 112 additions and 11 deletions
@ -0,0 +1,24 @@ |
|||||
|
namespace EasyAbp.EShop.Plugins.Coupons.CouponTemplates |
||||
|
{ |
||||
|
public enum CouponType |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Discount once if the condition is met.
|
||||
|
/// e.g. arrange ConditionAmount = 300 and DiscountAmount = 20.
|
||||
|
/// If the price of a product is 300, the actual order price will be discounted by 20.
|
||||
|
/// </summary>
|
||||
|
Normal = 1, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Discount every time the condition is met.
|
||||
|
/// e.g. arrange ConditionAmount = 300 and DiscountAmount = 20.
|
||||
|
/// If the price of a product is 300, the actual order price will be discounted by 60.
|
||||
|
/// </summary>
|
||||
|
PerMeet = 2, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// A type of coupon with custom usage rules.
|
||||
|
/// </summary>
|
||||
|
Custom = 4 |
||||
|
} |
||||
|
} |
||||
@ -1,9 +0,0 @@ |
|||||
using System; |
|
||||
using Volo.Abp.Domain.Entities.Auditing; |
|
||||
|
|
||||
namespace EasyAbp.EShop.Plugins.Coupons.CouponTemplates |
|
||||
{ |
|
||||
public class CouponTemplateProduct : FullAuditedEntity<Guid> |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,21 @@ |
|||||
|
using System; |
||||
|
using EasyAbp.EShop.Stores.Stores; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
|
||||
|
namespace EasyAbp.EShop.Plugins.Coupons.CouponTemplates |
||||
|
{ |
||||
|
public class CouponTemplateScope : FullAuditedEntity<Guid>, IMultiStore |
||||
|
{ |
||||
|
public virtual Guid StoreId { get; protected set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// If this property is set to null, the coupon can be used for all products in the store.
|
||||
|
/// </summary>
|
||||
|
public virtual Guid? ProductId { get; protected set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// If this property is set to null, the coupon can be used for all SKUs in the product.
|
||||
|
/// </summary>
|
||||
|
public virtual Guid? ProductSkuId { get; protected set; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue