Files
TakeoutSaaS.TenantApi/src/Application/TakeoutSaaS.Application/App/Stores/Commands/ToggleBusinessStatusCommand.cs

32 lines
772 B
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 ToggleBusinessStatusCommand : IRequest<StoreDto>
{
/// <summary>
/// 门店 ID。
/// </summary>
public long StoreId { get; init; }
/// <summary>
/// 目标经营状态。
/// </summary>
public StoreBusinessStatus BusinessStatus { get; init; }
/// <summary>
/// 歇业原因。
/// </summary>
public StoreClosureReason? ClosureReason { get; init; }
/// <summary>
/// 歇业原因补充说明。
/// </summary>
public string? ClosureReasonText { get; init; }
}