feat: implement geometry and project management modules with associated controllers, services, and routes

This commit is contained in:
2026-05-24 19:34:46 +07:00
parent ff56ba3d32
commit 2fa420492c
11 changed files with 382 additions and 3 deletions

View File

@@ -10,5 +10,6 @@ func GeometryRoutes(router fiber.Router, geometryController *controllers.Geometr
geometry := router.Group("/geometries")
geometry.Get("/", geometryController.SearchGeometries)
geometry.Get("/entity", geometryController.SearchGeometriesByEntityName)
geometry.Get("/bound-with/:bound_with", geometryController.GetGeometriesByBoundWith)
geometry.Get("/:id", geometryController.GetGeometryById)
}

View File

@@ -66,6 +66,24 @@ func ProjectRoutes(
controller.ChangeOwner,
)
route.Post(
"/:id/lock",
middlewares.JwtAccess(userRepo),
controller.LockProject,
)
route.Post(
"/:id/unlock",
middlewares.JwtAccess(userRepo),
controller.UnlockProject,
)
route.Post(
"/:id/heartbeat",
middlewares.JwtAccess(userRepo),
controller.HeartbeatProject,
)
route.Get(
"/:id",
middlewares.JwtAccess(userRepo),