|
package repo
|
|
|
|
import (
|
|
"ai_scheduler/internal/data/impl"
|
|
"ai_scheduler/utils"
|
|
)
|
|
|
|
// Repos 聚合所有 Repository
|
|
type Repos struct {
|
|
Session SessionRepo
|
|
}
|
|
|
|
func NewRepos(sessionImpl *impl.SessionImpl, rdb *utils.Rdb) *Repos {
|
|
return &Repos{
|
|
Session: NewSessionAdapter(sessionImpl),
|
|
}
|
|
}
|