//
// Copyright (C) 2024 veypi <i@veypi.com>
// 2025-03-04 16:08:06
// Distributed under terms of the MIT license.
//

package sms

import (
	"fmt"
)

// TencentProvider 腾讯云短信
type TencentProvider struct {
	accessKey    string
	accessSecret string
	signName     string
	templateCode string
}

// NewTencentProvider 创建腾讯云短信提供商
func NewTencentProvider(accessKey, accessSecret, signName, templateCode string) (*TencentProvider, error) {
	return &TencentProvider{
		accessKey:    accessKey,
		accessSecret: accessSecret,
		signName:     signName,
		templateCode: templateCode,
	}, nil
}

// Send 发送短信
func (p *TencentProvider) Send(phone, code string) error {
	// TODO: 实现腾讯云短信发送逻辑
	// 这里简化处理，实际应调用腾讯云 SDK
	fmt.Printf("[TencentSMS] Send code %s to %s\n", code, phone)
	return nil
}
