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.

33 lines
1.2 KiB

2 years ago
using BBWYB.Common.Log;
using BBWYB.Common.Models;
2 years ago
using BBWYB.Server.Model.Dto;
using SDKAdapter;
using SDKAdapter.PurchasePlatform.Client;
using SDKAdapter.PurchasePlatform.Models;
2 years ago
using Yitter.IdGenerator;
namespace BBWYB.Server.Business
{
public class PurchaseOrderBusiness : BaseBusiness, IDenpendency
{
2 years ago
private PP_PlatformClientFactory ppPlatformClientFactory;
public PurchaseOrderBusiness(IFreeSql fsql, NLogManager nLogManager, IIdGenerator idGenerator, PP_PlatformClientFactory ppPlatformClientFactory) : base(fsql, nLogManager, idGenerator)
2 years ago
{
2 years ago
this.ppPlatformClientFactory = ppPlatformClientFactory;
2 years ago
}
2 years ago
public PreviewOrderResponse PreviewPurchaseOrder(PreviewOrderRequest previewOrderReuqest)
2 years ago
{
2 years ago
var response = ppPlatformClientFactory.GetClient((AdapterEnums.PlatformType)previewOrderReuqest.Platform)
.PreviewOrder(new PP_PreviewOrderRequest()
{
});
return new PreviewOrderResponse()
{
};
2 years ago
}
}
}