This commit is contained in:
2026-08-10 11:16:02 +08:00
parent f994b2de9c
commit 007a7ba38a
26 changed files with 469 additions and 142 deletions

View File

@@ -1,11 +1,17 @@
package service
import (
"bsm/full/module/base/mgt/internal/config"
"bsm/full/module/base/mgt/internal/routers"
"github.com/gin-gonic/gin"
)
func Expose(engine *gin.Engine) error {
type Config = config.SrvConfig
func Expose(engine *gin.Engine, cfg *Config) error {
if cfg != nil {
config.Spec = *cfg
}
routers.Register("mgt", engine)
return nil
}