Refactor app context setup and move API fetch logic to PostService

This commit is contained in:
2025-05-13 17:32:29 +03:30
parent 99e385889a
commit 117fe3dd34
5 changed files with 97 additions and 76 deletions

View File

@@ -10,4 +10,6 @@ import (
type AppContext struct {
Db *gorm.DB
PostService *services.PostService
Instance string
Tag string
}