using MediatR;
using System.ComponentModel.DataAnnotations;
using TakeoutSaaS.Application.App.Merchants.Dto;

namespace TakeoutSaaS.Application.App.Merchants.Commands;

/// <summary>
/// 新增商户类目。
/// </summary>
public sealed record CreateMerchantCategoryCommand(
    [property: Required, MaxLength(64)] string Name,
    int? DisplayOrder,
    bool IsActive = true) : IRequest<MerchantCategoryDto>;
