向宁 b9b5838938 chore: add Kratos, Watermill, GORM, Wire dependencies for migration
Add new framework dependencies needed for the Gin-to-Kratos migration:
- go-kratos/kratos/v2 (HTTP/gRPC transport, config, middleware, JWT auth)
- google/wire (compile-time dependency injection)
- ThreeDotsLabs/watermill + watermill-sql/v2 (event-driven CQRS)
- gorm.io/gorm + gorm.io/driver/postgres (PostgreSQL ORM)

The old Gin/Swagger deps remain as direct deps since existing code still
imports them. They will be removed in later migration tasks when code is
rewritten. Blank imports in internal/deps.go ensure go mod tidy keeps
the new deps until actual code imports them directly.
2026-05-25 12:51:26 +08:00

32 lines
1.1 KiB
Go

// Package internal contains dependency blank imports for the Kratos migration.
// These ensure go mod tidy keeps the required packages until the migration
// is complete and actual code imports them directly.
// This file will be removed after the migration is finished.
package internal
import (
// Kratos framework - core, transports, config, logging
_ "github.com/go-kratos/kratos/v2"
_ "github.com/go-kratos/kratos/v2/config"
_ "github.com/go-kratos/kratos/v2/config/file"
_ "github.com/go-kratos/kratos/v2/log"
_ "github.com/go-kratos/kratos/v2/middleware/auth/jwt"
_ "github.com/go-kratos/kratos/v2/middleware/logging"
_ "github.com/go-kratos/kratos/v2/middleware/recovery"
_ "github.com/go-kratos/kratos/v2/middleware/tracing"
_ "github.com/go-kratos/kratos/v2/middleware/validate"
_ "github.com/go-kratos/kratos/v2/transport/grpc"
_ "github.com/go-kratos/kratos/v2/transport/http"
// Wire DI
_ "github.com/google/wire"
// Watermill - event-driven CQRS
_ "github.com/ThreeDotsLabs/watermill"
_ "github.com/ThreeDotsLabs/watermill-sql/v2/pkg/sql"
// GORM - ORM for PostgreSQL
_ "gorm.io/driver/postgres"
_ "gorm.io/gorm"
)