Revert "增加sqlite数据库的初始化"

This commit is contained in:
奇淼(piexlmax
2021-06-11 11:14:17 +08:00
committed by GitHub
parent 8ec0eb5166
commit 6bf4a9943c
9 changed files with 100 additions and 207 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ type Server struct {
// auto
AutoCode Autocode `mapstructure:"autoCode" json:"autoCode" yaml:"autoCode"`
// gorm
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
Sqlite Sqlite `mapstructure:"sqlite" json:"sqlite" yaml:"sqlite"`
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
// oss
Local Local `mapstructure:"local" json:"local" yaml:"local"`
Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`
-6
View File
@@ -1,11 +1,5 @@
package config
type Sqlite struct {
Path string `mapstructure:"path" json:"path" yaml:"path"` // 数据库路径
Config string `mapstructure:"config" json:"config" yaml:"config"` // 高级配置
Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"` // 数据库名
}
type Mysql struct {
Path string `mapstructure:"path" json:"path" yaml:"path"` // 服务器地址:端口
Config string `mapstructure:"config" json:"config" yaml:"config"` // 高级配置