feat(#22): gamificação RPG — XP, quests, conquistas, cosméticos e personagem SVG pixel art
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -52,13 +52,17 @@ func main() {
|
||||
categorySvc := service.NewCategoryService(categoryRepo)
|
||||
categoryHandler := handler.NewCategoryHandler(categorySvc)
|
||||
|
||||
gameRepo := repository.NewGameRepository(pool)
|
||||
gameSvc := service.NewGameService(gameRepo)
|
||||
gameHandler := handler.NewGameHandler(gameSvc)
|
||||
|
||||
transactionRepo := repository.NewTransactionRepository(pool)
|
||||
importSvc := service.NewImportService(transactionRepo)
|
||||
importHandler := handler.NewImportHandler(importSvc)
|
||||
importHandler := handler.NewImportHandler(importSvc, gameSvc)
|
||||
|
||||
manualTxRepo := repository.NewManualTransactionRepository(pool)
|
||||
txSvc := service.NewTransactionService(manualTxRepo)
|
||||
txHandler := handler.NewTransactionHandler(txSvc)
|
||||
txHandler := handler.NewTransactionHandler(txSvc, gameSvc)
|
||||
|
||||
recurringRepo := repository.NewRecurringRepository(pool)
|
||||
recurringSvc := service.NewRecurringService(recurringRepo, manualTxRepo)
|
||||
@@ -102,6 +106,13 @@ func main() {
|
||||
r.Delete("/accounts/{id}", accountHandler.Delete)
|
||||
|
||||
r.Get("/dashboard", dashboardHandler.Get)
|
||||
|
||||
r.Get("/game/summary", gameHandler.Summary)
|
||||
r.Post("/game/xp", gameHandler.AwardXP)
|
||||
r.Post("/game/quests/{id}/claim", gameHandler.ClaimQuest)
|
||||
r.Get("/game/achievements", gameHandler.Achievements)
|
||||
r.Get("/game/cosmetics", gameHandler.Cosmetics)
|
||||
r.Post("/game/cosmetics/{id}/equip", gameHandler.EquipCosmetic)
|
||||
})
|
||||
|
||||
// Serve Vue SPA — non-API routes fall through to index.html
|
||||
|
||||
Reference in New Issue
Block a user