refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,21 @@
package impl
import (
"os"
"bsm/full/module/ec/delivery/internal/models"
"git.apinb.com/bsm-sdk/engine/print"
"git.apinb.com/bsm-sdk/engine/vars"
)
func withModel() {
if Configure.DSN != "" {
err := models.New(Configure.DSN, nil)
if err != nil {
print.Fail("[Blocks Service] %s Model Error: %d", vars.ServiceKey, err.Error())
os.Exit(0)
}
print.Info("[Blocks Service] %s Database Source: %s", vars.ServiceKey, Configure.DSN)
}
}