config.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package conf
  2. import beego "github.com/beego/beego/v2/server/web"
  3. var Page_size = 10
  4. var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
  5. var NatsSubj_Prefix, _ = beego.AppConfig.String("NatsSubj_Prefix")
  6. var RunMode, _ = beego.AppConfig.String("RunMode")
  7. var Sys_Name, _ = beego.AppConfig.String("Sys_Name")
  8. // Mysql
  9. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  10. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  11. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  12. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  13. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  14. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  15. // Redis
  16. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  17. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  18. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  19. var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
  20. var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
  21. // Qiniu
  22. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  23. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  24. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  25. var OssQiniu, _ = beego.AppConfig.String("OssQiniu")
  26. // 消息通知路由
  27. var MySalaryNewsUrl, _ = beego.AppConfig.String("MySalaryNewsUrl")
  28. var ReimburseApprovalUrl, _ = beego.AppConfig.String("ReimburseApprovalUrl")
  29. var MyReimburseUrl, _ = beego.AppConfig.String("MyReimburseUrl")
  30. var FinanceUuid, _ = beego.AppConfig.String("FinanceUuid")