You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
4.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 订阅的列表
/// </summary>
public class BillTraceSendReq
{
/// <summary>
/// 业务主键
/// </summary>
public string BusinessId { get; set; }
/// <summary>
/// 提单号ONEYTA3ZR0262300
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 场站名称,例:外运场站
/// </summary>
public string Yard { get; set; }
/// <summary>
/// 场站Id
/// </summary>
public long YardId { get; set; }
/// <summary>
/// 船公司Id
/// </summary>
public long CarrierId { get; set; }
/// <summary>
/// 船公司名称ONE
/// </summary>
public string Carrier { get; set; }
/// <summary>
/// 是否订阅港后的运踪默认为false
/// </summary>
public bool isBook { get; set; }
/// <summary>
/// 是否订阅港前运踪默认为true
/// </summary>
public bool IsFrontPort { get; set; }
}
/// <summary>
/// 订阅的列表
/// </summary>
public class BillTraceReq
{
/// <summary>
/// 业务主键
/// </summary>
public string BusinessId { get; set; }
/// <summary>
/// 提单号ONEYTA3ZR0262300
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 场站名称,例:外运场站
/// </summary>
public string YARD { get; set; }
/// <summary>
/// 场站代码,例WYCZ
/// </summary>
public string YardCode { get; set; }
/// <summary>
/// 船公司代号ONE
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司名称ONE
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 是否订阅港后的运踪默认为false
/// </summary>
public bool isBook { get; set; }
/// <summary>
/// 是否订阅港前运踪默认为true
/// </summary>
public bool IsFrontPort { get; set; }
}
public class BillTraceMain
{
/// <summary>
/// 接口调用授权Key用于运踪模块接口鉴权
/// </summary>
public string Key { get; set; }
/// <summary>
/// 接口调用授权密钥 (用于运踪模块接口鉴权)
/// </summary>
public string PWD { get; set; }
/// <summary>
/// 操作人员信息的主键
/// </summary>
public string Gid { get; set; }
/// <summary>
/// 运踪信息回推时的调用地址如http://40.147.147.147:22222/DataSync/AddBookingStatusLog
/// </summary>
public string url { get; set; }
/// <summary>
/// 订阅的列表
/// </summary>
public List<BillTraceReq> Children { get; set; }
/// <summary>
/// 运踪信息回推时的授权Key用于对接方接口鉴权
/// </summary>
public string PushBackKey { get; set; }
/// <summary>
/// 运踪信息回推时的授权Secret用于对接方接口鉴权
/// </summary>
public string PushBackSecret { get; set; }
}
/// <summary>
/// 运踪退订-调用大简云运踪模块的Dto类
/// </summary>
public class BillTraceUnsubscribeDto
{
public string Key { get; set; }
public string PWD { get; set; }
public string Gid { get; set; }
public List<BillTraceUnsubscribeList> Children { get; set; }
}
public class BillTraceUnsubscribeList
{
public BillTraceUnsubscribeList()
{ }
public BillTraceUnsubscribeList(string businessId, string mBLNO)
{
BusinessId = businessId;
MBLNO = mBLNO;
}
public string MBLNO { get; set; }
public string BusinessId { get; set; }
}
}