42 lines
920 B
Python
42 lines
920 B
Python
"""
|
|
Repository Layer - 資料存取抽象層
|
|
==================================
|
|
Phase 16 R3: 抽取 Repository 層
|
|
|
|
設計原則:
|
|
- Protocol 介面定義 (DI 用)
|
|
- CRUD 操作封裝
|
|
- Service 層不直接碰 DB/Redis
|
|
|
|
版本: v1.0
|
|
建立: 2026-03-26 (台北時區)
|
|
建立者: Claude Code (Phase 16 架構重構)
|
|
"""
|
|
|
|
from src.repositories.approval_repository import (
|
|
ApprovalDBRepository,
|
|
get_approval_repository,
|
|
)
|
|
from src.repositories.incident_repository import (
|
|
IncidentDBRepository,
|
|
get_incident_repository,
|
|
)
|
|
from src.repositories.interfaces import (
|
|
IApprovalRepository,
|
|
IIncidentRepository,
|
|
ITimelineRepository,
|
|
)
|
|
|
|
__all__ = [
|
|
# Interfaces
|
|
"IApprovalRepository",
|
|
"IIncidentRepository",
|
|
"ITimelineRepository",
|
|
# Implementations
|
|
"ApprovalDBRepository",
|
|
"IncidentDBRepository",
|
|
# Getters
|
|
"get_approval_repository",
|
|
"get_incident_repository",
|
|
]
|