Files
TakeoutSaaS.AdminApi/src/Application/TakeoutSaaS.Application/App/Stores/Dto/StoreDeliveryCheckResultDto.cs

32 lines
778 B
C#

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