refactor all service dependency injection

This commit is contained in:
2026-08-10 11:35:48 +08:00
parent 007a7ba38a
commit c883cc52a2
152 changed files with 1030 additions and 223 deletions

View File

@@ -5,7 +5,13 @@ import (
"github.com/gin-gonic/gin"
)
func Expose(engine *gin.Engine) error {
routers.Register("logs", engine)
type ExposeOptions struct {
Dependencies
Engine *gin.Engine
}
func Expose(options ExposeOptions) error {
applyDependencies(options.Dependencies)
routers.Register("logs", options.Engine)
return nil
}