ai_scheduler/internal/domain/repo/repos.go

18 lines
294 B
Go

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),
}
}