feat 默认模块

This commit is contained in:
2026-01-20 12:07:18 +08:00
parent a47557920c
commit 1edebb439c
10 changed files with 98 additions and 33 deletions

View File

@@ -10,6 +10,7 @@ import (
// DB 数据库模块
type DB struct {
DefaultModule
cfg *config.DBConfig
}
@@ -35,10 +36,6 @@ func (m *DB) Init() error {
return nil
}
func (m *DB) Start() error {
return nil
}
func (m *DB) Stop() error {
if err := etcd.Close(); err != nil {
log.Errorf("close etcd failed: %v", err)