router.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Code generated by hertz generator.
  2. package main
  3. import (
  4. "github.com/cloudwego/hertz/pkg/app/server"
  5. handler "pji_desktop_http/biz/handler"
  6. "pji_desktop_http/biz/handler/map_service"
  7. "pji_desktop_http/biz/handler/simulation_service"
  8. "pji_desktop_http/biz/handler/user_service"
  9. "pji_desktop_http/biz/handler/world_service"
  10. )
  11. // customizeRegister registers customize routers.
  12. func customizedRegister(r *server.Hertz) {
  13. r.GET("/ping", handler.Ping)
  14. r.GET("/test/query/user", user_service.TestQueryUser)
  15. r.POST("/map/check/mapbufconsistency", map_service.CheckMapBufConsistency)
  16. r.GET("/map/download/ossfile", map_service.DownloadOSSFile)
  17. r.GET("/map/download/zipfile", map_service.DownloadMapZipFile)
  18. r.GET("/map/download/mapbagfile", map_service.DownloadMapBagFile)
  19. r.GET("/world/upload/worldfile", world_service.UploadWorldFile)
  20. r.POST("/world/upload/worldfile", world_service.UploadWorldFile)
  21. r.GET("/world/upload/stlfile", world_service.UploadSTLFile)
  22. r.POST("/world/upload/stlfile", world_service.UploadSTLFile)
  23. r.GET("/world/check/file/world/status", world_service.CheckWorldFileStatus)
  24. r.GET("/simulation/download/zipfile", simulation_service.DownloadSimulationZipFile)
  25. r.GET("/simulation/check/file/data/status", simulation_service.CheckDataFileStatus)
  26. }