emoticon_api/Infrastructure/Kuaidi100/Common/Request/QueryTrackParam.cs
2023-10-20 21:58:42 +08:00

47 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
namespace Common.Request
{
public class QueryTrackParam
{
/**
* 查询的快递公司的编码,一律用小写字母
*/
public string com {get; set;}
/**
* 查询的快递单号, 单号的最大长度是32个字符
*/
public string num {get; set;}
/**
* 收件人或寄件人的手机号或固话
*/
public string phone {get; set;}
/**
* 出发地城市,省-市-区
*/
public string from {get; set;}
/**
* 目的地城市,省-市-区
*/
public string to {get; set;}
/**
* 添加此字段表示开通行政区域解析功能。0关闭默认1开通行政区域解析功能2开通行政解析功能并且返回出发、目的及当前城市信息
*/
public string resultv2 {get; set;}
/**
* 返回数据格式。0json默认1xml2html3text
*/
public string show {get; set;}
/**
* 返回结果排序方式。desc降序默认asc升序
*/
public string order {get; set;}
public override string ToString()
{
return JsonConvert.SerializeObject(this,Formatting.Indented,new JsonSerializerSettings(){NullValueHandling = NullValueHandling.Ignore});
}
}
}