config.go 365 B

123456789101112131415
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. // Nats
  6. var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
  7. var HTTPPort, _ = beego.AppConfig.String("HTTPPort")
  8. var AppName, _ = beego.AppConfig.String("appname")
  9. // WX
  10. var WX_appid, _ = beego.AppConfig.String("WX_appid")
  11. var WX_secret, _ = beego.AppConfig.String("WX_secret")