36 lines
765 B
C#
36 lines
765 B
C#
using MediatR;
|
|
using TakeoutSaaS.Application.App.Stores.Dto;
|
|
|
|
namespace TakeoutSaaS.Application.App.Stores.Commands;
|
|
|
|
/// <summary>
|
|
/// 更新节假日配置命令。
|
|
/// </summary>
|
|
public sealed record UpdateStoreHolidayCommand : IRequest<StoreHolidayDto?>
|
|
{
|
|
/// <summary>
|
|
/// 节假日 ID。
|
|
/// </summary>
|
|
public long HolidayId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 门店 ID。
|
|
/// </summary>
|
|
public long StoreId { get; init; }
|
|
|
|
/// <summary>
|
|
/// 日期。
|
|
/// </summary>
|
|
public DateTime Date { get; init; }
|
|
|
|
/// <summary>
|
|
/// 是否闭店。
|
|
/// </summary>
|
|
public bool IsClosed { get; init; } = true;
|
|
|
|
/// <summary>
|
|
/// 说明。
|
|
/// </summary>
|
|
public string? Reason { get; init; }
|
|
}
|