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
33 lines
1.2 KiB
using BBWYB.Common.Log;
|
|
using BBWYB.Common.Models;
|
|
using SDKAdapter.OperationPlatform.Client;
|
|
using SDKAdapter.OperationPlatform.Models;
|
|
using Yitter.IdGenerator;
|
|
|
|
namespace BBWYB.Server.Business
|
|
{
|
|
public class ProductBusiness : BaseBusiness, IDenpendency
|
|
{
|
|
private OP_PlatformClientFactory opPlatformClientFactory;
|
|
|
|
public ProductBusiness(IFreeSql fsql, NLogManager nLogManager, IIdGenerator idGenerator, OP_PlatformClientFactory opPlatformClientFactory) : base(fsql, nLogManager, idGenerator)
|
|
{
|
|
this.opPlatformClientFactory = opPlatformClientFactory;
|
|
}
|
|
|
|
public OP_ProductListResponse GetProductList(OP_QueryProductRequest request)
|
|
{
|
|
return opPlatformClientFactory.GetClient(request.Platform).GetProductList(request);
|
|
}
|
|
|
|
public OP_ProductSkuListResponse GetProductSkuList(OP_QueryProductSkuRequest request)
|
|
{
|
|
return opPlatformClientFactory.GetClient(request.Platform).GetProductSkuList(request);
|
|
}
|
|
|
|
public void EditProductPrice(OP_EditProductPriceRequest request)
|
|
{
|
|
opPlatformClientFactory.GetClient(request.Platform).EditProductPrice(request);
|
|
}
|
|
}
|
|
}
|
|
|