feat: use db

This commit is contained in:
Rogee
2024-09-02 18:01:38 +08:00
parent 472fe2ffaf
commit 98cd1a0365
18 changed files with 477 additions and 136 deletions

View File

@@ -37,6 +37,9 @@ func InitClient(cfg *config.Config) error {
func Close() error {
_ = logger.Sync()
if db != nil {
db.Close()
}
return nil
}