调整SetOptions的方式
This commit is contained in:
+4
-4
@@ -19,7 +19,7 @@ func TestSMTPEnhanced(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
// 测试配置验证
|
||||
_, err := smtpClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
err := smtpClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Smtp = &interfaces.EmailConfigDataSmtp{
|
||||
Host: "smtp.example.com",
|
||||
Port: "587",
|
||||
@@ -53,7 +53,7 @@ func TestAliyunEnhanced(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
// 测试配置验证
|
||||
_, err := aliyunClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
err := aliyunClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Aliyun = &interfaces.EmialConfigDataAliyun{
|
||||
AccessId: "test-access-id",
|
||||
AccessKey: "test-access-key",
|
||||
@@ -74,7 +74,7 @@ func TestAWSEnhanced(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
// 测试配置验证
|
||||
_, err := awsClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
err := awsClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Aws = &interfaces.EmailConfigDataAws{
|
||||
AccessId: "test-access-id",
|
||||
AccessSecret: "test-access-secret",
|
||||
@@ -95,7 +95,7 @@ func TestMailgunEnhanced(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
|
||||
// 测试配置验证
|
||||
_, err := mailgunClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
err := mailgunClient.SetOption(ctx, func(opt *interfaces.Options) {
|
||||
opt.Mailgun = &interfaces.EmialConfigDataMailgun{
|
||||
ApiKey: "test-api-key",
|
||||
Domain: "example.com",
|
||||
|
||||
Reference in New Issue
Block a user