服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
19 小时以前 a960900364d19bbf0ad7923a57989609e7fce798
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using Rhea.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Tiger.Business.WMS
{
    public class SrmParam
    {
        public CommonParam commonParam { get; set; }
        public CommonBody body { get; set; }
    }
 
    public class CommonParam
    {
        private string appSecret = "fa22acdfba598630affd68482a3587a1";//携客云提供的appSecret
        public string appKey { get; set; } = "5eecb183e85e67790fab3848f7ec0e34";//发放给用户的Key    
        public string version { get; set; } = "1.0";//接口版本
        public string ownerCompanyCode { get; set; } = "29087015";//数据所属公司编码,非集团公司默认赋值为操作公司
        public string operateCompanyCode { get; set; } = "29087015";//操作者所属公司编码
        public string sign { get; set; } = "";//签名
        public long timestamps { get; set; } = DateTime.Now.ToUnixTime() / 1000;//当前时间对应的时间戳(秒数)
        public object reserver { get; set; } = "";//扩展字段
 
        public string GetAppSecret()
        {
            return appSecret;
        }
    }
 
    public class GetSecret {
        public string secret = "325fd646c93241a496426373676878c5";
        public string key { get; set; } = "56954dc3";    
    }
 
    public interface CommonBody
    {
 
    }
 
    public class GetNoListBody : CommonBody
    {
        public long startDate { get; set; }//时间范围的开始时间
        public long endDate { get; set; }//时间范围的结束时间
        public string erpCode { get; set; }//请求者用户ERP帐号
        public string innerVendorCode { get; set; }//内部供应商编码
        public string profitCenterCode { get; set; }//收货部门编码
        public int[] status { get; set; } = new int[] { };//状态
 
    }
 
    public class GetDetailBody : CommonBody
    {
        public string erpCode { get; set; }//请求者用户ERP帐号
        public string deliveryNo { get; set; }//送货单号
        public int returnVerifyFlag { get; set; } = 1;//是否返回送检统计数量(送检量、允收量、拒收量、让步接收量)
    }
 
    public class ByDeliveryNoBody : CommonBody
    {
        public string erpCode { get; set; }//请求者用户ERP帐号
        public string deliveryNo { get; set; }//送货单号
    }
 
    public class GetSrmListBody : CommonBody
    {
        public string bus_account { get; set; }
        public string interface_code { get; set; }
        public body body { get; set; }
 
    }
 
    public class data
    {
        public string company { get; set; }
        public string startDate { get; set; }
        public string endDate { get; set; }
    }
 
    public class body
    {
        public data data { get; set; }
        public string busAccount { get; set; }
        public string simpleFlag { get; set; }
        public string interfaceCode { get; set; }
 
    }
}