SJA工艺
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

3 years ago
3 years ago
3 years ago
  1. package conf
  2. var ExampleFile = "http://localhost:8090/public/uploadxlsx/example.xlsx"
  3. var Baseurl = "http://localhost:8090"
  4. var Confurl = "conf/config.yaml"
  5. type AppConf struct {
  6. DisablePathCorrection bool
  7. EnablePathEscape bool
  8. FireMethodNotAllowed bool
  9. DisableBodyConsumptionOnUnmarshal bool
  10. TimeFormat string
  11. Charset string
  12. Other Other
  13. PublicRute []string
  14. }
  15. type Other struct {
  16. IgnoreURLs []string
  17. JWTTimeout int64
  18. LogLevel string
  19. Secret string
  20. }
  21. var AppConfig AppConf = AppConf{
  22. DisablePathCorrection: false,
  23. EnablePathEscape: false,
  24. FireMethodNotAllowed: false,
  25. DisableBodyConsumptionOnUnmarshal: false,
  26. TimeFormat: "Mon, 01 Jan 2006 15:04:05 GMT",
  27. Charset: "UTF-8",
  28. Other: Other{
  29. IgnoreURLs: []string{"/", "/user/login", "/user/plants","/admin/tabnames/download","/user/getimg"},//免token验证路径
  30. JWTTimeout: 72000,
  31. LogLevel: "debug",
  32. //Secret: "LAPP_SJA_ONLINE_101146458",
  33. Secret: "LAPP_SJA_TEST_101146419",
  34. },
  35. PublicRute: []string{"/sysMenu","/user/getuserinfo","/user/pwd","/user/avatar","/user/profile","/user/getimg","/admin/tabnames/list","/admin/me_project/selectall","/admin/pln_forecast_landing/selectall"},//免权限检查路径
  36. }