router.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/config_service"
  7. "pji_desktop_http/biz/handler/map_service"
  8. "pji_desktop_http/biz/handler/simulation_service"
  9. "pji_desktop_http/biz/handler/user_service"
  10. "pji_desktop_http/biz/handler/world_service"
  11. )
  12. // customizeRegister registers customize routers.
  13. func customizedRegister(r *server.Hertz) {
  14. r.GET("/ping", handler.Ping)
  15. r.GET("/test/query/user", user_service.TestQueryUser)
  16. r.POST("/map/check/mapbuf/consistency", map_service.CheckMapBufConsistency)
  17. r.GET("/map/check/deviceMap/status", map_service.CheckDeviceMapStatus)
  18. r.GET("/map/download/oss", map_service.DownloadOSSFile)
  19. r.GET("/map/download/zip", map_service.DownloadMapZipFile)
  20. r.GET("/map/download/mapbag", map_service.DownloadMapBagFile)
  21. r.GET("/map/upload/map", map_service.UploadMapFile)
  22. r.POST("/map/upload/map", map_service.UploadMapFile)
  23. r.POST("/map/add/record", map_service.AddMapUpdateRecord)
  24. r.POST("/map/query/update/record", map_service.QueryMapUpdateRecord)
  25. r.POST("/map/upload/update/map", map_service.TestUploadUpdateMap)
  26. r.GET("/map/update/deviceMap/test", map_service.UpdateDeviceMapById)
  27. r.GET("/map/update/deviceMap/record", map_service.UpdateDeviceMap)
  28. r.GET("/map/update/pji/upload", map_service.UploadPjiMapAndNotify)
  29. r.GET("/map/rescan/notify/add", map_service.AddMapRescanNotifyWithHttp)
  30. r.GET("/map/rescan/notify/list", map_service.QueryMapRescanNotifyList)
  31. r.POST("/map/rescan/notify/list", map_service.QueryMapRescanNotifyList)
  32. r.GET("/world/upload/world", world_service.UploadWorldFile)
  33. r.POST("/world/upload/world", world_service.UploadWorldFile)
  34. r.GET("/world/upload/stl", world_service.UploadStlFile)
  35. r.POST("/world/upload/stl", world_service.UploadStlFile)
  36. r.GET("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  37. r.POST("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  38. r.GET("/simulation/upload/bag", simulation_service.UploadBagFile)
  39. r.POST("/simulation/upload/bag", simulation_service.UploadBagFile)
  40. r.GET("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  41. r.POST("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  42. r.GET("/world/check/file/world/status", world_service.CheckWorldFileStatus)
  43. r.GET("/simulation/download/zip", simulation_service.DownloadSimulationZipFile)
  44. r.GET("/simulation/check/file/data/status", simulation_service.CheckDataFileStatus)
  45. r.POST("/simulation/add/record", simulation_service.AddSimulationRecord)
  46. r.POST("/simulation/query/test/record", simulation_service.QueryTestRecord)
  47. r.POST("/simulation/download/oss/key", simulation_service.DownloadFileByKeys)
  48. r.GET("/config/query/rescanReminderThreshold", config_service.QueryRescanReminderThreshold)
  49. r.GET("/config/update/rescanReminderThreshold", config_service.UpdateRescanReminderThreshold)
  50. }