package com.qqchen.deploy.backend.notification.service;

import com.qqchen.deploy.backend.framework.service.IBaseService;
import com.qqchen.deploy.backend.notification.dto.NotificationChannelDTO;
import com.qqchen.deploy.backend.notification.dto.NotificationChannelQuery;
import com.qqchen.deploy.backend.notification.entity.NotificationChannel;

/**
 * 通知渠道Service接口
 *
 * @author qqchen
 * @since 2025-10-22
 */
public interface INotificationChannelService extends IBaseService<NotificationChannel, NotificationChannelDTO, NotificationChannelQuery, Long> {
    
    /**
     * 测试通知渠道连接
     *
     * @param id 渠道ID
     * @return 测试结果
     */
    boolean testConnection(Long id);
    
    /**
     * 启用渠道
     *
     * @param id 渠道ID
     */
    void enable(Long id);
    
    /**
     * 禁用渠道
     *
     * @param id 渠道ID
     */
    void disable(Long id);
}

