Files
GateDge2023_ljy/SAL_OUTSTOCK/Request/BaseRequest.cs
2023-12-08 23:53:07 +08:00

73 lines
1.9 KiB
C#

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