1
0
forked from baron/baron-sso

golangci-lint gofmt/gofumpt 적용

This commit is contained in:
2026-01-21 16:54:47 +09:00
parent 8894341f5a
commit 89cf9b58a7
8 changed files with 88 additions and 81 deletions

View File

@@ -1,12 +1,12 @@
package service
import (
"baron-sso-backend/internal/domain"
"context"
"fmt"
"log/slog"
"os"
"baron-sso-backend/internal/domain"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"

View File

@@ -1,6 +1,7 @@
package service
import (
"baron-sso-backend/internal/domain"
"bytes"
"crypto/hmac"
"crypto/sha256"
@@ -14,8 +15,6 @@ import (
"strconv"
"strings"
"time"
"baron-sso-backend/internal/domain"
)
type SmsServiceImpl struct {
@@ -96,8 +95,8 @@ func (s *SmsServiceImpl) SendSms(to, content string) error {
slog.Error("[SmsService] error response from naver cloud sms api", "body", string(respBody))
return fmt.Errorf("error sending sms: status code %d", resp.StatusCode)
}
slog.Info("[SmsService] sms sent successfully", "body", string(respBody))
slog.Info("[SmsService] sms sent successfully", "body", string(respBody))
return nil
}
@@ -113,4 +112,4 @@ func (s *SmsServiceImpl) makeSignature(method, url, timestamp string) (string, e
}
return base64.StdEncoding.EncodeToString(h.Sum(nil)), nil
}
}