docs: 标记自提档期完成

This commit is contained in:
2025-12-04 11:51:09 +08:00
parent 2022d1c377
commit 7d6b7d8760
29 changed files with 1165 additions and 2 deletions

View File

@@ -0,0 +1,50 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 创建自提档期命令。
/// </summary>
public sealed record CreateStorePickupSlotCommand : IRequest<StorePickupSlotDto>
{
/// <summary>
/// 门店 ID。
/// </summary>
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; } = 30;
/// <summary>
/// 容量。
/// </summary>
public int Capacity { get; init; }
/// <summary>
/// 适用星期。
/// </summary>
public string Weekdays { get; init; } = string.Empty;
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; init; } = true;
}

View File

@@ -0,0 +1,19 @@
using MediatR;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 删除自提档期命令。
/// </summary>
public sealed record DeleteStorePickupSlotCommand : IRequest<bool>
{
/// <summary>
/// 档期 ID。
/// </summary>
public long SlotId { get; init; }
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
}

View File

@@ -0,0 +1,55 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 更新自提档期命令。
/// </summary>
public sealed record UpdateStorePickupSlotCommand : IRequest<StorePickupSlotDto?>
{
/// <summary>
/// 档期 ID。
/// </summary>
public long SlotId { get; init; }
/// <summary>
/// 门店 ID。
/// </summary>
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 string Weekdays { get; init; } = string.Empty;
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; init; }
}

View File

@@ -0,0 +1,35 @@
using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 新增或更新自提配置命令。
/// </summary>
public sealed record UpsertStorePickupSettingCommand : IRequest<StorePickupSettingDto>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 是否允许当天。
/// </summary>
public bool AllowToday { get; init; } = true;
/// <summary>
/// 可预约天数。
/// </summary>
public int AllowDaysAhead { get; init; } = 3;
/// <summary>
/// 默认截单分钟。
/// </summary>
public int DefaultCutoffMinutes { get; init; } = 30;
/// <summary>
/// 单笔最大份数。
/// </summary>
public int? MaxQuantityPerOrder { get; init; }
}