using MediatR;
using System.ComponentModel.DataAnnotations;
using TakeoutSaaS.Application.App.Subscriptions.Dto;
namespace TakeoutSaaS.Application.App.Subscriptions.Commands;
///
/// 更新订阅基础信息命令。
///
public sealed record UpdateSubscriptionCommand : IRequest
{
///
/// 订阅 ID(从路由参数绑定)。
///
[Required]
public long SubscriptionId { get; init; }
///
/// 是否自动续费。
///
public bool? AutoRenew { get; init; }
///
/// 运营备注信息。
///
[MaxLength(500)]
public string? Notes { get; init; }
}