using System.ComponentModel.DataAnnotations;
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
public class GetTrackInput
{
///
/// 订单类型
///
[Required]
[Range(1, int.MaxValue)]
public int OrderType { get; set; }
///
/// 订单号
///
public List OrderNos { get; set; } = new();
///
/// 时区 +8 +8.25 -8.5 -9
/// 不传默认+8
///
private float? _timeZone;
public float? TimeZone
{
get => _timeZone ?? 8;
set => _timeZone = value;
}
///
/// 排序方式
///
[Required]
public SortMethod SortMethod { get; set; }
}
public enum SortMethod
{
///
/// 按轨迹发生时间排序
///
ByTrackTime,
///
/// 按轨迹发生时间降序
///
ByTrackTimeDesc,
///
/// 按订单模板排序
///
ByTemplate
}