Remove debug APIs and transport scan Hangfire; move Upsert to Order/Upsert*; keep original response shapes and put result+reason only in exception messages. Co-authored-by: Cursor <cursoragent@cursor.com>
84 lines
2.0 KiB
C#
84 lines
2.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
||
|
||
namespace TrackCenter.Application.Dtos.ProvideServices;
|
||
|
||
public class BatchUpsertTrackInput : OrderNosInfo
|
||
{
|
||
/// <summary>
|
||
/// true新增,false更新
|
||
/// </summary>
|
||
public bool IsAdd { get; set; }
|
||
|
||
/// <summary>
|
||
/// 轨迹内容代码
|
||
/// </summary>
|
||
[Required]
|
||
[MaxLength(50)]
|
||
public string TrackCode { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 轨迹发生地
|
||
/// </summary>
|
||
[Required]
|
||
[MaxLength(200)]
|
||
public string TrackPlace { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 轨迹发生时间
|
||
/// </summary>
|
||
[Required]
|
||
public DateTime TrackTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 轨迹发生时区
|
||
/// </summary>
|
||
public float? TrackTimeZone { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否对外(可选的)
|
||
/// 如果未填则按照【轨迹内容】中的【是否可见】做为默认值
|
||
/// </summary>
|
||
public bool? IsExternal { get; set; }
|
||
|
||
/// <summary>
|
||
/// 数据来源:1外部服务商创建,2内部系统创建,3人工创建
|
||
/// </summary>
|
||
[Required]
|
||
public int Source { get; set; }
|
||
|
||
/// <summary>
|
||
/// 轨迹备注
|
||
/// </summary>
|
||
public string? Remarks { get; set; }
|
||
|
||
/// <summary>
|
||
/// 附件集合
|
||
/// </summary>
|
||
public List<FileItemDto>? Files { get; set; }
|
||
|
||
/// <summary>
|
||
/// 轨迹内容,若为空则取轨迹内容表中该轨迹Code对应的轨迹内容
|
||
/// </summary>
|
||
public string? Content { get; set; }
|
||
|
||
/// <summary>
|
||
/// 轨迹内容英文,若为空则取轨迹内容表中该轨迹Code对应的轨迹英文内容
|
||
/// </summary>
|
||
public string? EnStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 扩展信息字段,用于轨迹推送的附加字段
|
||
/// </summary>
|
||
public string? Extra { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否强制推送
|
||
/// </summary>
|
||
public bool ForcedPush { get; set; }
|
||
|
||
/// <summary>
|
||
/// 指定是否推送
|
||
/// </summary>
|
||
public bool IsToMq { get; set; }
|
||
}
|