refactor(db): 重命名Init为InitDB并集中初始化日志

This commit is contained in:
unclesam committed 2026-07-07 23:50:38 +08:00
1 parent 1bca4808e9
commit 17d6669acb
5 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ func Run() {
// 注册路由
router.RegisterRoutes(r)
port := global.Config.Server.Port
global.Log.Info(fmt.Sprintf("Server is running on port %d", port))
global.Log.Info(fmt.Sprintf("服务运行在端口 %d", port))
if err := r.Run(fmt.Sprintf(":%d", port)); err != nil {
global.Log.Fatal("Web 服务启动失败", zap.Error(err))
}