using MediatR;

namespace MktZaloService.API.Application.Commands.Rules;

/// <summary>
/// EN: Command to delete a chatbot rule.
/// VI: Command để xóa quy tắc chatbot.
/// </summary>
public record DeleteChatbotRuleCommand(Guid RuleId) : IRequest<DeleteChatbotRuleResult>;

public record DeleteChatbotRuleResult(
    bool Success,
    string? Error = null
);

/// <summary>
/// EN: Command to toggle a chatbot rule active status.
/// VI: Command để bật/tắt trạng thái hoạt động của quy tắc chatbot.
/// </summary>
public record ToggleChatbotRuleCommand(Guid RuleId, bool Activate) : IRequest<ToggleChatbotRuleResult>;

public record ToggleChatbotRuleResult(
    bool Success,
    string? Error = null
);
