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; } } }