Commit ca5f275b by 朱继来

添加配置

parent dbb8547f
Showing with 7 additions and 2 deletions
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
type Config struct{ type Config struct{
Liexin_databases *LiexinMysqlConfig Liexin_databases *LiexinMysqlConfig
Rabbitmq_ichunt *RabbitmqIchunt Rabbitmq_ichunt *RabbitmqIchunt
Crm_domain *SendMail
} }
...@@ -24,6 +25,10 @@ type RabbitmqIchunt struct { ...@@ -24,6 +25,10 @@ type RabbitmqIchunt struct {
Dns string `toml:"dns"` Dns string `toml:"dns"`
} }
type SendMail struct{
SendMailUrl string `toml:"send_mail"`
}
var Configs *Config =new (Config) var Configs *Config =new (Config)
func Init(){ func Init(){
...@@ -31,6 +36,6 @@ func Init(){ ...@@ -31,6 +36,6 @@ func Init(){
if err!=nil{ if err!=nil{
fmt.Println(err) fmt.Println(err)
} }
//fmt.Printf("%+v",Configs.Liexin_databases) fmt.Printf("%+v",Configs.Crm_domain)
//fmt.Printf("%+v",Configs.Rabbitmq_ichunt) fmt.Printf("%+v",Configs.Rabbitmq_ichunt)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment