config.go 1.4 KB

12345678910111213141516171819202122232425262728293031
  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 RunMode, _ = beego.AppConfig.String("RunMode")
  6. var Sys_Name, _ = beego.AppConfig.String("Sys_Name")
  7. // Mysql
  8. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  9. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  10. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  11. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  12. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  13. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  14. // Redis
  15. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  16. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  17. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  18. var FilterExcludeURL, _ = beego.AppConfig.String("FilterExcludeURL")
  19. var FilterOnlyLoginCheckURL, _ = beego.AppConfig.String("FilterOnlyLoginCheckURL")
  20. // 消息通知
  21. var LeaveApprovalNewsUrl, _ = beego.AppConfig.String("LeaveApprovalNewsUrl")
  22. var MyLeaveNewsUrl, _ = beego.AppConfig.String("MyLeaveNewsUrl")
  23. var OvertimeApprovalNewsUrl, _ = beego.AppConfig.String("OvertimeApprovalNewsUrl")
  24. var MyOvertimeNewsUrl, _ = beego.AppConfig.String("MyOvertimeNewsUrl")