You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using BBWYB.Common.Log;
|
|
|
|
using BBWYB.Common.Models;
|
|
|
|
using BBWYB.Server.Model.Dto;
|
|
|
|
using SDKAdapter;
|
|
|
|
using SDKAdapter.PurchasePlatform.Client;
|
|
|
|
using SDKAdapter.PurchasePlatform.Models;
|
|
|
|
using Yitter.IdGenerator;
|
|
|
|
|
|
|
|
namespace BBWYB.Server.Business
|
|
|
|
{
|
|
|
|
public class PurchaseOrderBusiness : BaseBusiness, IDenpendency
|
|
|
|
{
|
|
|
|
private PP_PlatformClientFactory ppPlatformClientFactory;
|
|
|
|
public PurchaseOrderBusiness(IFreeSql fsql, NLogManager nLogManager, IIdGenerator idGenerator, PP_PlatformClientFactory ppPlatformClientFactory) : base(fsql, nLogManager, idGenerator)
|
|
|
|
{
|
|
|
|
this.ppPlatformClientFactory = ppPlatformClientFactory;
|
|
|
|
}
|
|
|
|
|
|
|
|
public PreviewOrderResponse PreviewPurchaseOrder(PreviewOrderRequest previewOrderReuqest)
|
|
|
|
{
|
|
|
|
var response = ppPlatformClientFactory.GetClient((AdapterEnums.PlatformType)previewOrderReuqest.Platform)
|
|
|
|
.PreviewOrder(new PP_PreviewOrderRequest()
|
|
|
|
{
|
|
|
|
|
|
|
|
});
|
|
|
|
return new PreviewOrderResponse()
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|