using DkSdkCore.Response;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace DkSdkCore.Request
|
{
|
public class TkGetTiktokGoodListRequest:BaseDkRequest<TkGetTiktokGoodListResponse>
|
{
|
/// <summary>
|
/// 结果排序条件,0默认排序1历史销量排序2价格排序3佣金金额排序4佣金比例排序;
|
/// </summary>
|
public string searchType { get; set; }
|
|
/// <summary>
|
/// 排序顺序(0升序1降序)
|
/// </summary>
|
public string sortType { get; set; }
|
|
public string page { get; set; }
|
|
public string pageSize { get; set; }
|
|
/// <summary>
|
/// 关键词
|
/// </summary>
|
public string title { get; set; }
|
|
|
public override string GetUrl()
|
{
|
return "https://openapiv2.dataoke.com/tiktok/tiktok-materials-products-search";
|
}
|
|
public override ApiParameters GetParameters()
|
{
|
ApiParameters apiParameters = new ApiParameters();
|
apiParameters.Add("searchType", this.searchType);
|
apiParameters.Add("sortType", this.sortType);
|
apiParameters.Add("page", this.page);
|
apiParameters.Add("pageSize", this.pageSize);
|
if(!string.IsNullOrEmpty(this.title))
|
apiParameters.Add("title", this.title);
|
return apiParameters;
|
}
|
}
|
}
|