router.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/mapbuf/consistency", map_service.CheckMapBufConsistency)
  16. r.GET("/map/download/oss", map_service.DownloadOSSFile)
  17. r.GET("/map/download/zip", map_service.DownloadMapZipFile)
  18. r.GET("/map/download/mapbag", map_service.DownloadMapBagFile)
  19. r.GET("/world/upload/world", world_service.UploadWorldFile)
  20. r.POST("/world/upload/world", world_service.UploadWorldFile)
  21. r.GET("/world/upload/stl", world_service.UploadStlFile)
  22. r.POST("/world/upload/stl", world_service.UploadStlFile)
  23. r.GET("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  24. r.POST("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  25. r.GET("/simulation/upload/bag", simulation_service.UploadBagFile)
  26. r.POST("/simulation/upload/bag", simulation_service.UploadBagFile)
  27. r.GET("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  28. r.POST("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  29. r.GET("/world/check/file/world/status", world_service.CheckWorldFileStatus)
  30. r.GET("/simulation/download/zip", simulation_service.DownloadSimulationZipFile)
  31. r.GET("/simulation/check/file/data/status", simulation_service.CheckDataFileStatus)
  32. r.POST("/simulation/add/record", simulation_service.AddSimulationRecord)
  33. r.POST("/simulation/query/test/record", simulation_service.QueryTestRecord)
  34. r.POST("/simulation/download/oss/key", simulation_service.DownloadFileByKeys)
  35. }