using MediatR;
using TakeoutSaaS.Application.App.Stores.Dto;

namespace TakeoutSaaS.Application.App.Stores.Commands;

/// <summary>
/// 批量更新营业时段命令。
/// </summary>
public sealed record BatchUpdateBusinessHoursCommand : IRequest<IReadOnlyList<StoreBusinessHourDto>>
{
    /// <summary>
    /// 门店 ID。
    /// </summary>
    public long StoreId { get; init; }

    /// <summary>
    /// 营业时段集合。
    /// </summary>
    public IReadOnlyList<StoreBusinessHourInputDto> Items { get; init; } = [];
}
