|
|
@ -10,20 +10,21 @@ namespace BBWYB.Client.APIServices |
|
|
|
{ |
|
|
|
public ProductService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { } |
|
|
|
|
|
|
|
public ApiResponse<ProductListResponse> GetProductList(string spu, string productName, string productItem, int pageIndex) |
|
|
|
public ApiResponse<ProductListResponse> GetProductList(string spu, string productName, string productItem, int pageIndex, int pageSize) |
|
|
|
{ |
|
|
|
return SendRequest<ProductListResponse>(globalContext.BBWYApiHost, |
|
|
|
"api/product/GetProductList", |
|
|
|
new |
|
|
|
{ |
|
|
|
Spu = spu, |
|
|
|
ProductName = productName, |
|
|
|
ProductItem = productItem, |
|
|
|
PageIndex = pageIndex, |
|
|
|
Platform = globalContext.User.Shop.Platform, |
|
|
|
AppKey = globalContext.User.Shop.AppKey, |
|
|
|
AppSecret = globalContext.User.Shop.AppSecret, |
|
|
|
AppToken = globalContext.User.Shop.AppToken |
|
|
|
spu, |
|
|
|
productName, |
|
|
|
productItem, |
|
|
|
pageIndex, |
|
|
|
pageSize, |
|
|
|
globalContext.User.Shop.Platform, |
|
|
|
globalContext.User.Shop.AppKey, |
|
|
|
globalContext.User.Shop.AppSecret, |
|
|
|
globalContext.User.Shop.AppToken |
|
|
|
}, |
|
|
|
null, |
|
|
|
HttpMethod.Post); |
|
|
@ -37,10 +38,10 @@ namespace BBWYB.Client.APIServices |
|
|
|
{ |
|
|
|
Spu = spu, |
|
|
|
Sku = sku, |
|
|
|
Platform = globalContext.User.Shop.Platform, |
|
|
|
AppKey = globalContext.User.Shop.AppKey, |
|
|
|
AppSecret = globalContext.User.Shop.AppSecret, |
|
|
|
AppToken = globalContext.User.Shop.AppToken |
|
|
|
globalContext.User.Shop.Platform, |
|
|
|
globalContext.User.Shop.AppKey, |
|
|
|
globalContext.User.Shop.AppSecret, |
|
|
|
globalContext.User.Shop.AppToken |
|
|
|
}, |
|
|
|
null, |
|
|
|
HttpMethod.Post); |
|
|
|