config.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. var MysqlMqtt_UrlPort, _ = beego.AppConfig.String("MysqlMqtt_UrlPort")
  16. var MysqlMqtt_Database, _ = beego.AppConfig.String("MysqlMqtt_Database")
  17. var MysqlMqtt_Username, _ = beego.AppConfig.String("MysqlMqtt_Username")
  18. var MysqlMqtt_Password, _ = beego.AppConfig.String("MysqlMqtt_Password")
  19. var MysqlMqtt_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlMqtt_MaxIdleConnections")
  20. var MysqlMqtt_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlMqtt_MaxOpenConnections")
  21. // Redis
  22. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  23. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  24. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  25. var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
  26. var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
  27. // Qiniu
  28. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  29. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  30. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  31. var OssQiniu, _ = beego.AppConfig.String("OssQiniu")
  32. // 消息通知前端页面跳转url
  33. var ContractApprovalUrl, _ = beego.AppConfig.String("ContractApprovalUrl")
  34. var VerifyContractUrl, _ = beego.AppConfig.String("VerifyContractUrl")
  35. var PercentageApprovalUrl, _ = beego.AppConfig.String("PercentageApprovalUrl")
  36. var MyPercentageUrl, _ = beego.AppConfig.String("MyPercentageUrl")
  37. var ContractReviewAuditUrl, _ = beego.AppConfig.String("ContractReviewAuditUrl")
  38. var FinanceUuid, _ = beego.AppConfig.String("FinanceUuid")