User list
This commit is contained in:
17
app/repository/dao.go
Normal file
17
app/repository/dao.go
Normal file
@ -0,0 +1,17 @@
|
||||
package repository
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type DAO struct {
|
||||
db *gorm.DB
|
||||
UsersRepository *UsersRepository
|
||||
}
|
||||
|
||||
var Dao DAO
|
||||
|
||||
func CreateDAO(db *gorm.DB) DAO {
|
||||
return DAO{
|
||||
db: db,
|
||||
UsersRepository: CreateUsersRepository(db),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user