using AlibabaSDK.Api; using AlibabaSDK.Response; using System; using System.Collections.Generic; using System.Text; using CommonUtil; namespace AlibabaSDK.Request { public class PFTProductListRequest : IAlibabaApiRequest { public object ErrorObj() { throw new NotImplementedException(); } public string GetApiName() { return "/param2/1/com.alibaba.fenxiao/alibaba.pifatuan.product.list"; } public Dictionary GetParameters() { Dictionary dic = new Dictionary(); if (!ruleId.IsNullOrEmpty()) { dic.Add("ruleId", ruleId); } if (!categoryId.IsNullOrEmpty()) { dic.Add("categoryId", categoryId); } if (!keywords.IsNullOrEmpty()) { dic.Add("keywords", keywords); } dic.Add("pageSize", pageSize.ToString()); dic.Add("pageNo", pageNo.ToString()); return dic; } /// /// 选品规划id /// public string ruleId { get; set; } /// /// 1688类目id /// public string categoryId { get; set; } /// /// 商品关键词 /// public string keywords { get; set; } /// /// 商品置顶,只会在第一页置顶,和分页大小相同最多50个 /// public List topOfferIds { get; set; } /// /// 非必填,默认为1 /// public int pageSize { get; set; } /// /// 非必填,默认为20 /// public int pageNo { get; set; } public void Validate() { throw new NotImplementedException(); } } }