service backend
This commit is contained in:
14
api/ledger/storage/repository.go
Normal file
14
api/ledger/storage/repository.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package storage
|
||||
|
||||
import "context"
|
||||
|
||||
// Repository defines the main storage interface for ledger operations.
|
||||
// It follows the fx/storage pattern with separate store interfaces for each collection.
|
||||
type Repository interface {
|
||||
Ping(ctx context.Context) error
|
||||
Accounts() AccountsStore
|
||||
JournalEntries() JournalEntriesStore
|
||||
PostingLines() PostingLinesStore
|
||||
Balances() BalancesStore
|
||||
Outbox() OutboxStore
|
||||
}
|
||||
Reference in New Issue
Block a user