zhaojs
2023-09-27 74098f1401afe40f961d1d167bb18dd0a71c4d59
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using AlibabaSDK.Api;
using AlibabaSDK.Response;
using System;
using System.Collections.Generic;
using System.Text;
using CommonUtil;
namespace AlibabaSDK.Request
{
    public class PFTProductListRequest : IAlibabaApiRequest<PFTProductListResponse>
    {
        public object ErrorObj()
        {
            throw new NotImplementedException();
        }
 
        public string GetApiName()
        {
            return "/param2/1/com.alibaba.fenxiao/alibaba.pifatuan.product.list";
        }
 
        public Dictionary<string, object> GetParameters()
        {
            Dictionary<string, object> dic = new Dictionary<string, object>();
            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;
        }
 
        /// <summary>
        /// 选品规划id
        /// </summary>
        public string ruleId { get; set; }
        /// <summary>
        /// 1688类目id
        /// </summary>
        public string categoryId { get; set; }
        /// <summary>
        /// 商品关键词
        /// </summary>
        public string keywords { get; set; }
 
        /// <summary>
        /// 商品置顶,只会在第一页置顶,和分页大小相同最多50个
        /// </summary>
        public List<long> topOfferIds { get; set; }
        /// <summary>
        /// 非必填,默认为1
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 非必填,默认为20
        /// </summary>
        public int pageNo { get; set; }
 
        public void Validate()
        {
            throw new NotImplementedException();
        }
    }
}