完成门店管理后端接口与任务
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user