All checks were successful
Build and Deploy / deploy (push) Successful in 1m21s
合并迁移脚本含 BlacklistAreaId 与应付计重字段;规则发布钉包,LIVE 即时加载。 Co-authored-by: Cursor <cursoragent@cursor.com>
59 lines
2.2 KiB
C#
59 lines
2.2 KiB
C#
using System.Text.Json.Serialization;
|
||
using Oms.Application.Dtos.Orders;
|
||
|
||
namespace Oms.Application.Dtos.Channels;
|
||
|
||
/// <summary>
|
||
/// 服务渠道规则发布快照(与 t_service_channel_publish_record Content 同构)。
|
||
/// </summary>
|
||
public class ServiceChannelRulesPublishSnapshotDto
|
||
{
|
||
public ServiceChannelSaveInput? Channel { get; set; }
|
||
|
||
public ServiceChannelDownstreamSnapshotDto? Downstream { get; set; }
|
||
|
||
/// <summary>偏远分区 ID。</summary>
|
||
public int? RemoteAreaId { get; set; }
|
||
|
||
/// <summary>偏远分区名称。</summary>
|
||
public string? RemoteAreaName { get; set; }
|
||
|
||
/// <summary>偏远分区包引用(规则发布时钉包)。</summary>
|
||
public KpiAreaPackRefDto? RemoteAreaRef { get; set; }
|
||
|
||
/// <summary>运行时 hydrate / LIVE 用,不落发布 JSON。</summary>
|
||
[JsonIgnore]
|
||
public List<KpiAreaSnapshotRuleDto> RemoteAreaInfos { get; set; } = [];
|
||
|
||
/// <summary>黑名单分区 ID。</summary>
|
||
public int? BlacklistAreaId { get; set; }
|
||
|
||
/// <summary>黑名单分区名称。</summary>
|
||
public string? BlacklistAreaName { get; set; }
|
||
|
||
/// <summary>黑名单分区包引用(规则发布时钉包)。</summary>
|
||
public KpiAreaPackRefDto? BlacklistAreaRef { get; set; }
|
||
|
||
/// <summary>运行时 hydrate / LIVE 用,不落发布 JSON。</summary>
|
||
[JsonIgnore]
|
||
public List<KpiAreaSnapshotRuleDto> BlacklistAreaInfos { get; set; } = [];
|
||
|
||
/// <summary>计重规则 ID(应付,发布时固化)。</summary>
|
||
public int? WeightRuleId { get; set; }
|
||
|
||
/// <summary>计重规则名称。</summary>
|
||
public string? WeightRuleName { get; set; }
|
||
|
||
/// <summary>计重规则明细,发布时从 t_weight_rule_info 固化。</summary>
|
||
public List<WeightRuleSnapshotRuleDto> WeightRuleInfos { get; set; } = [];
|
||
|
||
/// <summary>计重进位 ID(应付,发布时固化)。</summary>
|
||
public int? WeightRoundingId { get; set; }
|
||
|
||
/// <summary>计重进位名称。</summary>
|
||
public string? WeightRoundingName { get; set; }
|
||
|
||
/// <summary>计重进位区间,发布时从 t_weight_rounding_info 固化。</summary>
|
||
public List<WeightRoundingSnapshotRangeDto> WeightRoundingInfos { get; set; } = [];
|
||
}
|