config.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. var Page_size = 10
  6. var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
  7. var NatsSubj_Prefix, _ = beego.AppConfig.String("NatsSubj_Prefix")
  8. var RunMode, _ = beego.AppConfig.String("RunMode")
  9. // Mysql
  10. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  11. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  12. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  13. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  14. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  15. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  16. // Redis
  17. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  18. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  19. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  20. // Qiniu
  21. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  22. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  23. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  24. var OssQiniu, _ = beego.AppConfig.String("OssQiniu")
  25. var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
  26. var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
  27. var ERP_Sys, _ = beego.AppConfig.String("Sys")
  28. var ERP_ACCOUNT_Sys = "ERP_ACCOUNT"