using DkSdkCore.Response;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace DkSdkCore.Request
|
{
|
public class TkGetSuperGoodListRequest: BaseDkRequest<TkGetSuperGoodListResponse>
|
{
|
//搜索类型:0-综合结果,1-大淘客商品,2-联盟商品
|
public string type { get; set; }
|
|
public string pageId { get; set; }
|
|
public string pageSize { get; set; }
|
|
//关键词搜索
|
public string keyWords { get; set; }
|
|
//是否天猫商品:1-天猫商品,0-所有商品,不填默认为0
|
public string tmall { get; set; }
|
|
//排序字段信息 销量(total_sales) 价格(price),排序_des(降序),排序_asc(升序),示例:升序查询销量total_sales_asc 新增排序字段和排序方式,默认为0,0-综合排序,1-销量从高到低,2-销量从低到高,3-佣金比例从低到高,4-佣金比例从高到低,5-价格从高到低,6-价格从低到高
|
public string sort { get; set; }
|
|
//是否有券,1为有券,默认为全部
|
public string hasCoupon { get; set; }
|
public override string GetUrl()
|
{
|
return "https://openapi.dataoke.com/api/goods/list-super-goods";
|
}
|
|
public override ApiParameters GetParameters()
|
{
|
ApiParameters apiParameters = new ApiParameters();
|
apiParameters.Add("type", this.type);
|
apiParameters.Add("keyWords", this.keyWords);
|
apiParameters.Add("tmall", this.tmall);
|
apiParameters.Add("hasCoupon", this.hasCoupon);
|
apiParameters.Add("sort", this.sort);
|
apiParameters.Add("pageId", this.pageId);
|
apiParameters.Add("pageSize", this.pageSize);
|
return apiParameters;
|
}
|
}
|
}
|