Add database and post service to app contexts
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
package internal
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"CatsOfMastodonBotGo/internal/services"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
type AppContext struct {
|
||||
Db *gorm.DB
|
||||
PostService *services.PostService
|
||||
}
|
||||
Reference in New Issue
Block a user