赛思维服务调研
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.

46 lines
1.6 KiB

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