using MediatR;
using TakeoutSaaS.Application.App.Subscriptions.Contracts;
using TakeoutSaaS.Domain.Tenants.Enums;

namespace TakeoutSaaS.Application.App.Subscriptions.Commands;

/// <summary>
/// 更新订阅状态命令。
/// </summary>
public sealed record UpdateStatusCommand : IRequest<SubscriptionListDto?>
{
    /// <summary>
    /// 订阅 ID。
    /// </summary>
    public long SubscriptionId { get; init; }

    /// <summary>
    /// 目标状态。
    /// </summary>
    public SubscriptionStatus Status { get; init; }

    /// <summary>
    /// 备注信息。
    /// </summary>
    public string? Notes { get; init; }
}
