Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Stores/Commands/UpdateStoreBusinessHourCommand.cs
2026-02-17 12:12:01 +08:00

52 lines
1.1 KiB
C#

using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;
using TakeoutSaaS.Domain.Stores.Enums;
namespace TakeoutSaaS.Application.App.Stores.Commands;
/// <summary>
/// 更新营业时段命令。
/// </summary>
public sealed record UpdateStoreBusinessHourCommand : IRequest<StoreBusinessHourDto?>
{
/// <summary>
/// 营业时段 ID。
/// </summary>
public long BusinessHourId { get; init; }
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 星期几。
/// </summary>
public DayOfWeek DayOfWeek { get; init; }
/// <summary>
/// 时段类型。
/// </summary>
public BusinessHourType HourType { get; init; } = BusinessHourType.Normal;
/// <summary>
/// 开始时间。
/// </summary>
public TimeSpan StartTime { get; init; }
/// <summary>
/// 结束时间。
/// </summary>
public TimeSpan EndTime { get; init; }
/// <summary>
/// 容量限制。
/// </summary>
public int? CapacityLimit { get; init; }
/// <summary>
/// 备注。
/// </summary>
public string? Notes { get; init; }
}