Feat: card_mark repo
This commit is contained in:
@ -18,6 +18,7 @@ type AllRepos interface {
|
||||
SessionsRepo
|
||||
WordCardsRepo
|
||||
SettingsRepo
|
||||
CardMarksRepo
|
||||
InitTx(ctx context.Context) (context.Context, *sqlx.Tx, error)
|
||||
}
|
||||
|
||||
@ -25,6 +26,7 @@ type RepoProvider struct {
|
||||
DB *sqlx.DB
|
||||
mu sync.RWMutex
|
||||
pathToDB string
|
||||
CardMarksRepo
|
||||
}
|
||||
|
||||
func NewRepoProvider(pathToDB string) *RepoProvider {
|
||||
@ -42,6 +44,7 @@ func NewRepoProvider(pathToDB string) *RepoProvider {
|
||||
rp := &RepoProvider{
|
||||
DB: db,
|
||||
pathToDB: pathToDB,
|
||||
CardMarksRepo: NewCardMarksRepo(db),
|
||||
}
|
||||
|
||||
go rp.pingLoop()
|
||||
|
Reference in New Issue
Block a user