Documentation ¶
Index ¶
- Variables
- type ApiCode
- type ContentType
- type MethodType
- type NotifyStatusType
- type NotifyType
- type ReturnGetFieldType
- type ReturnType
- type ScriptMethodType
- type TaskGroupType
- type TaskStatusType
- type TaskType
- type TimeFormat
- type TrackStatusDeliveredType
- type TrackStatusProblemPieceType
- type TrackStatusTransitType
- type TrackStatusType
- type UserStatusType
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgentList = []string{"Mozilla/5.0 (compatible, MSIE 10.0, Windows NT, DigExt)",
"Mozilla/4.0 (compatible, MSIE 7.0, Windows NT 5.1, 360SE)",
"Mozilla/4.0 (compatible, MSIE 8.0, Windows NT 6.0, Trident/4.0)",
"Mozilla/5.0 (compatible, MSIE 9.0, Windows NT 6.1, Trident/5.0,",
"Opera/9.80 (Windows NT 6.1, U, en) Presto/2.8.131 Version/11.11",
"Mozilla/4.0 (compatible, MSIE 7.0, Windows NT 5.1, TencentTraveler 4.0)",
"Mozilla/5.0 (Windows, U, Windows NT 6.1, en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
"Mozilla/5.0 (Macintosh, Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
"Mozilla/5.0 (Macintosh, U, Intel Mac OS X 10_6_8, en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
"Mozilla/5.0 (Linux, U, Android 3.0, en-us, Xoom Build/HRI39) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13",
"Mozilla/5.0 (iPad, U, CPU OS 4_3_3 like Mac OS X, en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5",
"Mozilla/4.0 (compatible, MSIE 7.0, Windows NT 5.1, Trident/4.0, SE 2.X MetaSr 1.0, SE 2.X MetaSr 1.0, .NET CLR 2.0.50727, SE 2.X MetaSr 1.0)",
"Mozilla/5.0 (iPhone, U, CPU iPhone OS 4_3_3 like Mac OS X, en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5",
"MQQBrowser/26 Mozilla/5.0 (Linux, U, Android 2.3.7, zh-cn, MB200 Build/GRJ22, CyanogenMod-7) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
}
Functions ¶
This section is empty.
Types ¶
type ApiCode ¶
type ApiCode int
轨迹代码种类
const ( Service_Code_DHL ApiCode = 1 // DHL Service_Code_FEDEX ApiCode = 2 // FedEx Service_Code_UPS ApiCode = 3 // UPS Service_Code_TNT ApiCode = 4 // TNT Service_Code_ARAMEX ApiCode = 5 // Aramex Service_Code_DPDUK ApiCode = 6 // DPDUK Service_Code_DPD ApiCode = 7 // DPD Service_Code_HUALEIHTML ApiCode = 8 // 华磊HTML Service_Code_RTB ApiCode = 9 // 软通宝 Service_Code_ZHEMENG ApiCode = 10 // 哲盟 Service_Code_K5 ApiCode = 11 // ETY-API Service_Code_EC ApiCode = 12 // 易仓 Service_Code_EMS ApiCode = 13 // ems Service_Code_SAGAWA ApiCode = 14 // Sagawa_cn http://www.sagawa-cn.cn Service_Code_EMMISS ApiCode = 15 // emmis 钮门 Service_Code_KINGTRANSSHUNZE ApiCode = 16 // ETY-HTML Service_Code_YUTENG_HTML ApiCode = 17 // 宇腾HTML Service_Code_GLSGROUP ApiCode = 18 // glsgroup https://gls-group.eu Service_Code_QUANNIANDA ApiCode = 19 // 全年达 http://www.shqnd.com Service_Code_NGTRACKCARGO ApiCode = 22 // ng-track-cargo http://ng-track-cargo.com Service_Code_CDEK ApiCode = 24 // cdek Service_Code_SAGAWAEXPCOJP ApiCode = 25 // Sagawa_jp Service_Code_GESWL ApiCode = 26 // geswl Service_Code_HUALEIAPI ApiCode = 28 // 华磊API Service_Code_51YORKY ApiCode = 30 // https://www.51yorky.com Service_Code_CSERU ApiCode = 31 // https://www.cse.ru Service_Code_ITDIDA ApiCode = 32 // 易抵达 Service_Code_EASTWIND ApiCode = 33 // 东风航运 http://61.216.149.45/ Service_Code_XINCHENG ApiCode = 34 // 鑫成软件 Service_Code_JIEDE ApiCode = 35 // 捷德供应链 Service_Code_EMSWECHAT ApiCode = 111 // ems_WeChat(暂不启用) )
type ContentType ¶
type ContentType string
Content-type
const ( Content_Type_Urlencoded ContentType = "application/x-www-form-urlencoded; charset=utf-8" Content_Type_Json ContentType = "application/json; charset=utf-8" Content_Type_FormData ContentType = "text/html;charset=UTF-8" )
type MethodType ¶
type MethodType string
Method
const ( Method_Type_Get MethodType = "GET" Method_Type_Post MethodType = "POST" )
type NotifyStatusType ¶
type NotifyStatusType int
通知类型
const ( Notify_Status_Not NotifyStatusType = 0 // 不通知 Notify_Status_Fail NotifyStatusType = 1 // 失败通知 Notify_Status_Finished NotifyStatusType = 2 // 成功通知 )
type NotifyType ¶
type NotifyType int
通知方式
const ( Notify_Status_NOT NotifyType = 0 // 无 Notify_Status_Email NotifyType = 1 // 邮件 Notify_Status_Wechat NotifyType = 2 // 微信 Notify_Status_DingDing NotifyType = 3 // 钉钉 )
type ReturnGetFieldType ¶
type ReturnGetFieldType int
ReturnGetField
const ( Return_Get_Field_Time ReturnGetFieldType = 1 Return_Get_Field_Date ReturnGetFieldType = 2 Return_Get_Field_DateTime ReturnGetFieldType = 3 Return_Get_Field_Location ReturnGetFieldType = 4 Return_Get_Field_Description ReturnGetFieldType = 5 Return_Get_Field_Remark ReturnGetFieldType = 6 Return_Get_Field_HeaderValue ReturnGetFieldType = 7 Return_Get_Field_AgainUrl ReturnGetFieldType = 8 Return_Get_Field_AgainPost ReturnGetFieldType = 9 Return_Get_Field_AgainHeader ReturnGetFieldType = 10 )
type ReturnType ¶
type ReturnType int
Return
const ( Return_Type_HTML ReturnType = 1 Return_Type_JSON ReturnType = 2 )
type ScriptMethodType ¶
type ScriptMethodType int
Method
const ( Script_Method_Type_Get ScriptMethodType = 1 Script_Method_Type_Post ScriptMethodType = 2 )
type TaskGroupType ¶
type TaskGroupType int
任务分组类型
const ( Task_Group_System TaskGroupType = 1 // 系统 Task_Group_Default TaskGroupType = 2 // 默认 )
type TaskStatusType ¶
type TaskStatusType int
任务状态
const ( Task_Status_Disabled TaskStatusType = 1 // 禁用 Task_Status_Fail TaskStatusType = 2 // 执行失败 Task_Status_Enabled TaskStatusType = 3 // 正常 Task_Status_Running TaskStatusType = 4 // 执行中 Task_Status_Finished TaskStatusType = 5 // 执行完毕 Task_Status_Canceled TaskStatusType = 6 // 任务取消 )
type TimeFormat ¶
func (TimeFormat) MarshalJSON ¶
func (t TimeFormat) MarshalJSON() ([]byte, error)
type TrackStatusDeliveredType ¶
type TrackStatusDeliveredType int
已签收
const ( Track_Status_NormalDelivered TrackStatusDeliveredType = 401 // 正常签收 Track_Status_PartDelivered TrackStatusDeliveredType = 402 // 部分签收 )
type TrackStatusProblemPieceType ¶
type TrackStatusProblemPieceType int
问题件
500:递送例外情况; 501:快件状态待确认; 502:派送不成功; 504:资料信息不全; 505:退回; 506:延误; 507:损坏; 508:可能丢失; 509:清关异常; 510:拒收; 511:危险品; 512:暂扣; 513:放弃包裹;
const ( Track_Status_DeliveryException TrackStatusProblemPieceType = 500 // 递送例外情况 Track_Status_Undelivered TrackStatusProblemPieceType = 501 // 快件状态待确认 Track_Status_SendingUnsuccessful TrackStatusProblemPieceType = 502 // 派送不成功 Track_Status_Lackofinformation TrackStatusProblemPieceType = 504 // 资料信息不全 Track_Status_Refund TrackStatusProblemPieceType = 505 // 退回 Track_Status_Loss TrackStatusProblemPieceType = 506 // 延误 Track_Status_Damage TrackStatusProblemPieceType = 507 // 损坏 Track_Status_Maybelost TrackStatusProblemPieceType = 508 // 可能丢失 Track_Status_CustomsClearanceFail TrackStatusProblemPieceType = 509 // 清关异常 Track_Status_SignatureDenied TrackStatusProblemPieceType = 510 // 拒收 Track_Status_DangerousGoods TrackStatusProblemPieceType = 511 // 危险品 Track_Status_Withhold TrackStatusProblemPieceType = 512 // 暂扣 Track_Status_GiveUp TrackStatusProblemPieceType = 513 // 放弃包裹 )
type TrackStatusTransitType ¶
type TrackStatusTransitType int
运输中
const ( Track_Status_WaitCustomsClearance TrackStatusTransitType = 301 // 待清关 Track_Status_CustomsClearanceing TrackStatusTransitType = 302 // 清关中 Track_Status_CustomsClearanced TrackStatusTransitType = 303 // 已清关 Track_Status_Deliverying TrackStatusTransitType = 304 // 派送中 Track_Status_WaitDelivered TrackStatusTransitType = 305 // 到达待取 Track_Status_Switching TrackStatusTransitType = 306 // 第三方派送 )
type TrackStatusType ¶
type TrackStatusType int
物流轨迹状态
0 查询不到 1 待揽收 2 已揽收 3 运输中 301: 待清关; 302: 清关中; 303: 已清关; 304:派送中; 305: 到达待取; 306:第三方派送; 4 已签收 401:正常签收; 402:部分签收;
const ( Track_Status_NotFound TrackStatusType = 0 // 查询不到 Track_Status_WaitCollected TrackStatusType = 1 // 待揽收 Track_Status_Collected TrackStatusType = 2 // 已揽收 Track_Status_Transit TrackStatusType = 3 // 运输中 Track_Status_Delivered TrackStatusType = 4 // 已签收 )
type UserStatusType ¶
type UserStatusType int
账号状态
const ( User_Status_Disable UserStatusType = 0 // 禁用 User_Status_Enabled UserStatusType = 1 // 正常 )
Click to show internal directories.
Click to hide internal directories.