config.go 1.5 KB

1234567891011121314151617181920212223242526272829303132
  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. // 消息通知
  22. var LeaveApprovalNewsUrl, _ = beego.AppConfig.String("LeaveApprovalNewsUrl")
  23. var MyLeaveNewsUrl, _ = beego.AppConfig.String("MyLeaveNewsUrl")
  24. var OvertimeApprovalNewsUrl, _ = beego.AppConfig.String("OvertimeApprovalNewsUrl")
  25. var MyOvertimeNewsUrl, _ = beego.AppConfig.String("MyOvertimeNewsUrl")