package com.qqchen.deploy.backend.notification.entity.config;

import com.qqchen.deploy.backend.notification.enums.EmailContentTypeEnum;
import com.qqchen.deploy.backend.notification.enums.EmailPriorityEnum;
import com.qqchen.deploy.backend.notification.enums.NotificationChannelTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 邮件模板配置
 *
 * @author qqchen
 * @since 2025-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class EmailTemplateConfig extends BaseTemplateConfig {
    
    /**
     * 渠道类型（用于Jackson反序列化）
     */
    private final NotificationChannelTypeEnum channelType = NotificationChannelTypeEnum.EMAIL;
    
    /**
     * 内容类型
     */
    private EmailContentTypeEnum contentType = EmailContentTypeEnum.TEXT;
    
    /**
     * 邮件优先级
     */
    private EmailPriorityEnum priority = EmailPriorityEnum.NORMAL;
    
    @Override
    public NotificationChannelTypeEnum getChannelType() {
        return NotificationChannelTypeEnum.EMAIL;
    }
}
