blob: 6e2ab9be608ba218504e05d9420e3694c5863679 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package controllers
import (
"gitrepo.ru/neonxp/gorum/repository"
)
type Router struct {
userRepo *repository.User
postRepo *repository.Post
topicRepo *repository.Topic
}
func NewRouter(userRepo *repository.User, nodeRepo *repository.Post, topicRepo *repository.Topic) *Router {
return &Router{
userRepo: userRepo,
postRepo: nodeRepo,
topicRepo: topicRepo,
}
}
|