增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Store.Product.Models.PublishParameters.Price
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class PriceStrategyFactory
|
||||
{
|
||||
public static PriceConfigBase GetPriceStrategy(PriceStrategyType strategyType)
|
||||
{
|
||||
PriceConfigBase priceConfig;
|
||||
switch (strategyType)
|
||||
{
|
||||
case PriceStrategyType.常规价格:
|
||||
priceConfig = new MultiplesPrice();
|
||||
break;
|
||||
case PriceStrategyType.高低价格:
|
||||
priceConfig = new HighLowPrice();
|
||||
break;
|
||||
case PriceStrategyType.分段价格:
|
||||
priceConfig = new SectionPrice();
|
||||
break;
|
||||
default:
|
||||
priceConfig = null;
|
||||
break;
|
||||
}
|
||||
return priceConfig;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user