添加项目文件。
This commit is contained in:
72
SAL_OUTSTOCK/Request/BaseRequest.cs
Normal file
72
SAL_OUTSTOCK/Request/BaseRequest.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace SAL_OUTSTOCK.Request
|
||||
{
|
||||
public class BaseRequest
|
||||
{
|
||||
[JsonProperty(propertyName: "interface")]
|
||||
public Interface _interface { get; set; }
|
||||
|
||||
public class Interface
|
||||
{
|
||||
public Interface()
|
||||
{
|
||||
globalInfo = new Globalinfo();
|
||||
returnStateInfo = new Returnstateinfo();
|
||||
data = new Data();
|
||||
}
|
||||
|
||||
public Globalinfo globalInfo { get; set; }
|
||||
public Returnstateinfo returnStateInfo { get; set; }
|
||||
public Data data { get; set; }
|
||||
}
|
||||
|
||||
public class Globalinfo
|
||||
{
|
||||
public Globalinfo()
|
||||
{
|
||||
this.requestCode = "DZFPQZ";
|
||||
this.responseCode = "DS";
|
||||
}
|
||||
public string appId { get; set; }
|
||||
public string interfaceId { get; set; }
|
||||
public string interfaceCode { get; set; }
|
||||
public string requestCode { get; set; }
|
||||
public string requestTime { get; set; }
|
||||
public string responseCode { get; set; }
|
||||
public string dataExchangeId { get; set; }
|
||||
}
|
||||
|
||||
public class Returnstateinfo
|
||||
{
|
||||
public string returnCode { get; set; }
|
||||
public string returnMessage { get; set; }
|
||||
}
|
||||
|
||||
public class Data
|
||||
{
|
||||
public Data()
|
||||
{
|
||||
dataDescription = new Datadescription();
|
||||
}
|
||||
public Datadescription dataDescription { get; set; }
|
||||
public string content { get; set; }
|
||||
public string contentKey { get; set; }
|
||||
}
|
||||
|
||||
public class Datadescription
|
||||
{
|
||||
public Datadescription()
|
||||
{
|
||||
this.zipCode = "0";
|
||||
}
|
||||
|
||||
public string zipCode { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user