public static WeSubCategoryList QueryAllSubCategories(string cateId) { TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", null); string url = WeUtil.GetUrl(WeShopConst.ALL_SUB_CATE_URL); WeCategoryId request = new WeCategoryId(cateId); var result = WeUtil.PostToUri(url, request.WriteJson(), new WeSubCategoryList()); return result; }
public static WeSubCategoryList QueryAllSubCategories(string cateId) { TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", null); string url = WeUtil.GetUrl(WeShopConst.ALL_SUB_CATE_URL); WeCategoryId request = new WeCategoryId(cateId); var result = WeUtil.PostToUri(url, request.WriteJson(), new WeSubCategoryList()); return(result); }
public WeSkuList QueryAllProperties(string cateId) { TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", this); string url = WeUtil.GetUrl(WeShopConst.ALL_PROPERTY_URL); WeCategoryId request = new WeCategoryId(cateId); var result = WeUtil.PostToUri(url, WeShopConst.LIST_NAME_MODEL, request.WriteJson(), new WeSkuList()); SkuTable = result.SkuTable; return this; }
public WeSkuList QueryAllSku(string cateId) { TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", this); string url = WeUtil.GetUrl(WeShopConst.ALL_SKU_URL); WeCategoryId request = new WeCategoryId(cateId); var result = WeUtil.PostToUri(url, request.WriteJson(), new WeSkuList()); SkuTable = result.SkuTable; return(this); }