using System.Text.Json.Serialization;
using TakeoutSaaS.Shared.Abstractions.Serialization;
namespace TakeoutSaaS.Application.App.Stores.Dto;
///
/// 配送范围检测结果。
///
public sealed record StoreDeliveryCheckResultDto
{
///
/// 是否在范围内。
///
public bool InRange { get; init; }
///
/// 距离(公里)。
///
public decimal? Distance { get; init; }
///
/// 命中的配送区域 ID。
///
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long? DeliveryZoneId { get; init; }
///
/// 命中的配送区域名称。
///
public string? DeliveryZoneName { get; init; }
}