19 lines
368 B
Go
19 lines
368 B
Go
package app
|
|
|
|
import (
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/db"
|
|
"gitea.neur0tx.site/Neur0toxine/vegapokerbot/internal/handler/fsm/fsmcontract"
|
|
)
|
|
|
|
type DBWrapper struct {
|
|
r *db.Repositories
|
|
}
|
|
|
|
func (w *DBWrapper) ForUser() fsmcontract.UserRepository {
|
|
return w.r.User
|
|
}
|
|
|
|
func (w *DBWrapper) ForChat() fsmcontract.ChatRepository {
|
|
return w.r.Chat
|
|
}
|