feat: 添加系统配置信息:运行端口,dbType

This commit is contained in:
Blizzard
2025-04-26 00:02:03 +08:00
parent 72d0decbd8
commit 704e6db4be
6 changed files with 82 additions and 32 deletions
+13
View File
@@ -0,0 +1,13 @@
package config
import (
"path/filepath"
)
type Sqlite struct {
GeneralDB `yaml:",inline" mapstructure:",squash"`
}
func (s *Sqlite) Dsn() string {
return filepath.Join(s.Host, s.Dbname+".db")
}