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

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

/**
 * 企业微信模板配置
 *
 * @author qqchen
 * @since 2025-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WeworkTemplateConfig extends BaseTemplateConfig {
    
    /**
     * 渠道类型（用于Jackson反序列化）
     */
    private final NotificationChannelTypeEnum channelType = NotificationChannelTypeEnum.WEWORK;
    
    /**
     * 消息类型
     */
    private WeworkMessageTypeEnum messageType = WeworkMessageTypeEnum.TEXT;
    
    @Override
    public NotificationChannelTypeEnum getChannelType() {
        return NotificationChannelTypeEnum.WEWORK;
    }
}
