gorm update

This commit is contained in:
2025-05-07 15:32:05 +08:00
parent 68606c76f9
commit 38ee553cf3
18 changed files with 283 additions and 301 deletions

View File

@@ -40,7 +40,7 @@ var erpCmd = &cobra.Command{
}
func runErp() error {
config, err := config.New(configPath)
conf, err := config.New(configPath)
if err != nil {
return err
}
@@ -50,14 +50,14 @@ func runErp() error {
return err
}
mux, fn, err := erpserver.NewWire(config, l)
mux, fn, err := erpserver.NewWire(conf, l)
if err != nil {
return err
}
defer fn()
address := fmt.Sprintf("%s:%d", config.App.Host, config.App.Port)
address := fmt.Sprintf("%s:%d", conf.App.Host, conf.App.Port)
log.Printf("Starting manage server on %s", address)
if runtime.GOOS == "windows" {