1
0
forked from baron/baron-sso

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

This commit is contained in:
2026-02-09 16:27:13 +09:00
parent f16cb9a344
commit 15a27a6620
4 changed files with 164 additions and 5 deletions

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
}