track/src/TrackCenter.Application/Events/TrackDeleteEvent.cs
xiaolipro 5c7829bdbd
All checks were successful
Build and Deploy / deploy (push) Successful in 54s
feat: fake up
2026-10-27 16:32:14 +08:00

71 lines
1.8 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 Fake.Messaging;
using TrackCenter.Application.Dtos.ProvideServices;
namespace TrackCenter.Application.Events;
[Serializable]
[MessageRoute(nameof(TrackDeleteEvent))]
public class TrackDeleteEvent : Message
{
/// <summary>
/// 根据esId定位轨迹,优先级最高
/// </summary>
public string[] EsIds { get; set; } = Array.Empty<string>();
/// <summary>
/// 应用
/// </summary>
public string AppKey { get; set; }
/// <summary>
/// 订单ids
/// </summary>
public int[] OrderIds { get; set; } = Array.Empty<int>();
/// <summary>
/// 重复的情况下,用什么字段比较
/// </summary>
public string? CompareFields { get; set; }
/// <summary>
/// 重复的情况下,比较值
/// </summary>
public object? CompareValue { get; set; }
/// <summary>
/// 删除轨迹来源 1.外部服务商 2.内部系统 3.人工
/// </summary>
public int? Source { get; set; }
/// <summary>
/// 轨迹标识符
/// </summary>
public List<TrackIdentifierDto> TrackIdentifiers { get; set; } = new();
/// <summary>
/// 操作人
/// </summary>
public string? OperationMan { get; set; }
/// <summary>
/// 操作人id
/// </summary>
public int OperationManId { get; set; }
/// <summary>
/// 已经处理过的订单
/// </summary>
public List<int> Visited { get; set; } = new();
/// <summary>
/// 标记是否广播
/// </summary>
public bool IsToMq { get; set; }
public override string ToString()
{
return $"[TrackDelete by {OperationMan}] AppKey: {AppKey}, OrderIds: {string.Join(",",
OrderIds)}, TrackCodes: {string.Join(",", TrackIdentifiers.Select(x => x.TrackCode))}";
}
}