feat 基础模块拆分为雪花和日志模块

This commit is contained in:
2026-02-07 13:13:02 +08:00
parent 5a0f4b71d4
commit 0ca8a0ccbb
6 changed files with 91 additions and 28 deletions

17
module/log.go Normal file
View File

@@ -0,0 +1,17 @@
package module
import (
"git.hlsq.asia/mmorpg/service-common/config"
"git.hlsq.asia/mmorpg/service-common/log"
)
// Log 日志模块
type Log struct {
DefaultModule
Cfg *config.LogConfig
}
func (m *Log) Init() error {
log.Init(m.Cfg)
return nil
}