optz.
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"bsm/full/module/base/fts/internal/config"
|
||||
"bsm/full/module/base/fts/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("fts", engine)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user