using BBWYB.Client.Models; using BBWYB.Common.Http; using BBWYB.Common.Models; using System.Collections.Generic; using System.Net.Http; namespace BBWYB.Client.APIServices { public class ProductService : BaseApiService, IDenpendency { public ProductService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { } public ApiResponse GetProductList(string spu, string productName, string productItem, int pageIndex) { return SendRequest(globalContext.BBYWApiHost, "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 }, null, HttpMethod.Post); } public ApiResponse> GetProductSkuList(string spu, string sku) { return SendRequest>(globalContext.BBYWApiHost, "api/product/GetProductSkuList", new { Spu = spu, Sku = sku, Platform = globalContext.User.Shop.Platform, AppKey = globalContext.User.Shop.AppKey, AppSecret = globalContext.User.Shop.AppSecret, AppToken = globalContext.User.Shop.AppToken }, null, HttpMethod.Post); } } }