1
wtt
3 天以前 db658b16ef882ddcd56c4fea35aae42d0473b57d
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
using System;
using System.Collections.Generic;
using Top.Api.Util;
 
namespace Top.Api.Security
{
 
    public class TopSecretGetRequest : BaseTopRequest<TopSecretGetResponse>
    {
        /// <summary>
        /// 伪随机码
        /// </summary>
        public string RandomNum { get; set; }
        /// <summary>
        /// 秘钥版本
        /// </summary>
        public Nullable<Int64> SecretVersion { get; set; }
        /// <summary>
        /// 自主账号id
        /// </summary>
        public Nullable<Int64> CustomerUserId { get; set; }
 
        public override string GetApiName()
        {
            return "taobao.top.secret.get";
        }
 
        public override void Validate()
        {
            RequestValidator.ValidateRequired("RandomNum", RandomNum);
        }
 
        public override IDictionary<string, string> GetParameters()
        {
            TopDictionary parameters = new TopDictionary();
            parameters.Add("random_num", this.RandomNum);
            parameters.Add("secret_version", this.SecretVersion);
            parameters.Add("customer_user_id", this.CustomerUserId);
 
            if (this.otherParams != null)
            {
                parameters.AddAll(otherParams);
            }
            return parameters;
        }
    }
}