핸들러 및 서비스 테스트 리팩토링

This commit is contained in:
kyy
2026-02-10 09:07:47 +09:00
parent f16cb9a344
commit 15a27a6620
4 changed files with 164 additions and 5 deletions
+10
View File
@@ -32,3 +32,13 @@ type AuditCursor struct {
Timestamp time.Time
EventID string
}
// RedisRepository defines interface for KV storage (Redis)
type RedisRepository interface {
Set(key string, value string, expiration time.Duration) error
Get(key string) (string, error)
Delete(key string) error
StoreVerificationCode(phone, code string) error
GetVerificationCode(phone string) (string, error)
DeleteVerificationCode(phone string) error
}