heyuntao
2023-05-04 fbd6a11a99051f425640bf352842f4a0ecaa7a4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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;
        }
    }
}