add story service

This commit is contained in:
2026-03-07 04:34:58 +07:00
parent 9e0a19d25a
commit 645f6a7246
5 changed files with 80 additions and 46 deletions
+4 -1
View File
@@ -13,6 +13,7 @@ import (
"evening_detective/internal/services/link"
"evening_detective/internal/services/pdf"
"evening_detective/internal/services/story_service"
"evening_detective/internal/services/story_storage"
proto "evening_detective/proto"
"io/fs"
"log"
@@ -54,7 +55,9 @@ func main() {
storyFilepath := config.GetStoryFilepath()
storyService, err := story_service.NewStoryService(cleaner, formatter, storyFilepath)
storyStorage := story_storage.NewStoryStorage(storyFilepath)
storyService, err := story_service.NewStoryService(cleaner, formatter, storyStorage)
if err != nil {
log.Fatalln(err)
}