feat: 初始化gorm连接信息

This commit is contained in:
Blizzard
2025-04-26 00:05:31 +08:00
parent 689d26a055
commit 101a912652
7 changed files with 170 additions and 28 deletions
-2
View File
@@ -12,9 +12,7 @@ import (
func Viper() *viper.Viper {
config := getConfigPath()
fmt.Println("配置文件路径:", config)
v := viper.New()
v.AddConfigPath("../../config-dev.yaml")
v.SetConfigFile(config)
v.SetConfigType("yaml")