63 lines
1.4 KiB
C#
63 lines
1.4 KiB
C#
using System.Text.Json.Serialization;
|
||
using TakeoutSaaS.Shared.Abstractions.Serialization;
|
||
|
||
namespace TakeoutSaaS.Application.App.Stores.Dto;
|
||
|
||
/// <summary>
|
||
/// 自提档期 DTO。
|
||
/// </summary>
|
||
public sealed record StorePickupSlotDto
|
||
{
|
||
/// <summary>
|
||
/// 档期 ID。
|
||
/// </summary>
|
||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||
public long Id { get; init; }
|
||
|
||
/// <summary>
|
||
/// 门店 ID。
|
||
/// </summary>
|
||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||
public long StoreId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 名称。
|
||
/// </summary>
|
||
public string Name { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 开始时间。
|
||
/// </summary>
|
||
public TimeSpan StartTime { get; init; }
|
||
|
||
/// <summary>
|
||
/// 结束时间。
|
||
/// </summary>
|
||
public TimeSpan EndTime { get; init; }
|
||
|
||
/// <summary>
|
||
/// 截单分钟。
|
||
/// </summary>
|
||
public int CutoffMinutes { get; init; }
|
||
|
||
/// <summary>
|
||
/// 容量。
|
||
/// </summary>
|
||
public int Capacity { get; init; }
|
||
|
||
/// <summary>
|
||
/// 已占用。
|
||
/// </summary>
|
||
public int ReservedCount { get; init; }
|
||
|
||
/// <summary>
|
||
/// 适用星期(1-7)。
|
||
/// </summary>
|
||
public string Weekdays { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 是否启用。
|
||
/// </summary>
|
||
public bool IsEnabled { get; init; }
|
||
}
|