2026-08-10 10:03:46 +08:00
|
|
|
package service
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"bsm/full/module/base/logs/internal/routers"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
2026-08-10 11:35:48 +08:00
|
|
|
type ExposeOptions struct {
|
|
|
|
|
Dependencies
|
|
|
|
|
Engine *gin.Engine
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func Expose(options ExposeOptions) error {
|
|
|
|
|
applyDependencies(options.Dependencies)
|
|
|
|
|
routers.Register("logs", options.Engine)
|
2026-08-10 10:03:46 +08:00
|
|
|
return nil
|
|
|
|
|
}
|