提交 afe84e5b 编写于 作者: J Jason

上级 0a732696
...@@ -7,11 +7,10 @@ import ( ...@@ -7,11 +7,10 @@ import (
"os" "os"
) )
type _database struct { type _storage struct {
Desc string `yaml:"desc"` Desc string `yaml:"desc"`
Type string `yaml:"type"` Path string `yaml:"path"`
Url string `yaml:"url"` Debug bool `yaml:"debug"`
ShowSQL bool `yaml:"showSQL"`
} }
type _http struct { type _http struct {
...@@ -22,19 +21,18 @@ type _http struct { ...@@ -22,19 +21,18 @@ type _http struct {
} }
type _config struct { type _config struct {
Database _database `yaml:"database"` Storage _storage `yaml:"storage"`
Http _http `yaml:"http"` Http _http `yaml:"http"`
} }
var Config = _config{ var Config = _config{
_database{ _storage{
"数据库配置", "数据库配置",
"mysql", ".",
"root:root@tcp(127.0.0.1:3306)/dtu?charset=utf8",
false, false,
}, },
_http{ _http{
"HTTP服务配置,API接口", "HTTP服务配置",
":8080", ":8080",
false, false,
false, false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册