admin/src/Oms.Application/Dtos/Channels/AutoTriggerTestInput.cs
zzh 43563b727f feat: 自动触发公式引擎与查价运输方式分组接口
实现中文公式预报前拦截、规则测试 API 及按销售产品分组返回查价运输方式选项。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 18:36:17 +08:00

50 lines
1.2 KiB
C#

namespace Oms.Application.Dtos.Channels;
public class AutoTriggerTestInput
{
/// <summary>
/// 公式正文(与 TriggerCondition 二选一)。
/// </summary>
public string? Expression { get; set; }
/// <summary>
/// 完整触发条件(纯公式或 JSON 包装)。
/// </summary>
public string? TriggerCondition { get; set; }
/// <summary>
/// 使用已有订单作为评估上下文。
/// </summary>
public int? OrderId { get; set; }
/// <summary>
/// 使用样例数据作为预报前评估上下文。
/// </summary>
public AutoTriggerTestSampleInput? Sample { get; set; }
}
public class AutoTriggerTestSampleInput
{
public string? ProductCode { get; set; }
public string? ChannelCode { get; set; }
public string? ConsigneeCountry { get; set; }
public string? ConsigneeCountryName { get; set; }
public int? CustomerId { get; set; }
public string? CustomerName { get; set; }
public string? ClientNo { get; set; }
public decimal? Length { get; set; }
public decimal? Width { get; set; }
public decimal? Height { get; set; }
public decimal? ActualWeight { get; set; }
}