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.

28 lines
1.0 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_SearchProductRequest request)
{
return opPlatformClientFactory.GetClient(request.Platform).GetProductList(request);
}
public OP_ProductSkuListResponse GetProductSkuList(OP_SearchProductSkuRequest request)
{
return opPlatformClientFactory.GetClient(request.Platform).GetProductSkuList(request);
}
}
}