FloorVisualizer/internal/handler/api.go
dindang cb7e595c27 Fix lint warnings and code cleanup
- Remove duplicate calc structs, use model.CalcXxx
- Replace log.Printf with logger in recommend handler
- Remove dead code (unused var, dummy imports)
- Clean up response helpers
- Add api/ package with route registration

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-16 10:29:11 +08:00

16 lines
281 B
Go

package handler
import (
"database/sql"
"floorvisualizer/internal/openrouter"
"floorvisualizer/internal/service"
)
// API holds all handler dependencies, injected once at startup.
type API struct {
DB *sql.DB
Client *openrouter.Client
AuthSvc *service.AuthService
}