package services import ( "database/sql" "git.jamestombleson.com/jtom38/newsbot-api/internal/repository" ) type RepositoryService struct { Articles repository.ArticlesRepo DiscordWebHooks repository.DiscordWebHookRepo Sources repository.Sources Users repository.Users RefreshTokens repository.RefreshToken } func NewRepositoryService(conn *sql.DB) RepositoryService { return RepositoryService{ Articles: repository.NewArticleRepository(conn), DiscordWebHooks: repository.NewDiscordWebHookRepository(conn), Sources: repository.NewSourceRepository(conn), Users: repository.NewUserRepository(conn), RefreshTokens: repository.NewRefreshTokenRepository(conn), } }