升级配置文件类型定义

This commit is contained in:
2024-11-25 17:39:43 +08:00
parent 27a522fbeb
commit a4cbda626d
4 changed files with 85 additions and 29 deletions

View File

@ -7,6 +7,8 @@
// Date : 2021-03-01 9:27 下午
package define
import "git.zhangdeman.cn/zhangdeman/consts"
// DBConfig 数据库连接的配置
//
// Author : go_developer@163.com<白茶清欢>
@ -28,10 +30,10 @@ type DBConfig struct {
//
// Date : 14:47 2022/6/9
type CfgFile struct {
Flag string `json:"flag"` // 数据库标识
Path string `json:"path"` // 配置文件路径
Type string `json:"type"` // 配置文件类型
Config *Database `json:"config"` // 解析之后的配置文件
Flag string `json:"flag"` // 数据库标识
Path string `json:"path"` // 配置文件路径
Type consts.FileType `json:"type"` // 配置文件类型
Config *Database `json:"config"` // 解析之后的配置文件
}
// Database 数据库配置