router.go 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/check/updateMap/status", map_service.CheckUpdateMapStatus)
  19. r.GET("/map/download/oss", map_service.DownloadOSSFile)
  20. r.GET("/map/download/zip", map_service.DownloadMapZipFile)
  21. r.GET("/map/download/mapbag", map_service.DownloadMapBagFile)
  22. r.GET("/map/upload/map", map_service.UploadMapFile)
  23. r.POST("/map/upload/map", map_service.UploadMapFile)
  24. r.POST("/map/add/record", map_service.AddMapUpdateRecord)
  25. r.POST("/map/query/update/record", map_service.QueryMapUpdateRecord)
  26. r.POST("/map/upload/update/map", map_service.TestUploadUpdateMap)
  27. r.GET("/map/update/deviceMap/test", map_service.UpdateDeviceMapById)
  28. r.GET("/map/update/deviceMap/record", map_service.UpdateDeviceMap)
  29. r.GET("/map/update/originalMap/record", map_service.UpdateOriginalMap)
  30. r.GET("/map/update/pji/upload", map_service.UploadPjiMapAndNotify)
  31. r.GET("/map/upload/originalMap/oneRecord", map_service.UploadOriginalMapById)
  32. r.GET("/map/rescan/notify/add", map_service.AddMapRescanNotifyWithHttp)
  33. r.GET("/map/rescan/notify/list", map_service.QueryMapRescanNotifyList)
  34. r.POST("/map/rescan/notify/list", map_service.QueryMapRescanNotifyList)
  35. r.GET("/world/upload/world", world_service.UploadWorldFile)
  36. r.POST("/world/upload/world", world_service.UploadWorldFile)
  37. r.GET("/world/upload/stl", world_service.UploadStlFile)
  38. r.POST("/world/upload/stl", world_service.UploadStlFile)
  39. r.GET("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  40. r.POST("/simulation/upload/pdf", simulation_service.UploadPdfFile)
  41. r.GET("/simulation/upload/bag", simulation_service.UploadBagFile)
  42. r.POST("/simulation/upload/bag", simulation_service.UploadBagFile)
  43. r.GET("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  44. r.POST("/simulation/upload/pgm", simulation_service.UploadPgmFile)
  45. r.GET("/world/check/file/world/status", world_service.CheckWorldFileStatus)
  46. r.GET("/simulation/download/zip", simulation_service.DownloadSimulationZipFile)
  47. r.GET("/simulation/check/file/data/status", simulation_service.CheckDataFileStatus)
  48. r.POST("/simulation/add/record", simulation_service.AddSimulationRecord)
  49. r.POST("/simulation/query/test/record", simulation_service.QueryTestRecord)
  50. r.POST("/simulation/download/oss/key", simulation_service.DownloadFileByKeys)
  51. r.GET("/config/query/rescanReminderThreshold", config_service.QueryRescanReminderThreshold)
  52. r.GET("/config/update/rescanReminderThreshold", config_service.UpdateRescanReminderThreshold)
  53. }