feat/order-things: adjust procedure-room-order

This commit is contained in:
2025-12-04 10:32:51 +07:00
parent 2fdb5fc9e0
commit b79c36ed0e
5 changed files with 90 additions and 4 deletions
@@ -273,7 +273,14 @@ func SetRoutes() http.Handler {
"PATCH /{id}/complete": materialorder.O.Complete,
})
hc.RegCrud(r, "/v1/procedure-room", procedureroom.O)
hc.RegCrud(r, "/v1/procedure-room-order", procedureroomorder.O)
hk.GroupRoutes("/v1/procedure-room-order", r, auth.GuardMW, hk.MapHandlerFunc{
"GET /": procedureroomorder.O.GetList,
"GET /{id}": procedureroomorder.O.GetDetail,
"POST /": procedureroomorder.O.Create,
"PATCH /{id}": procedureroomorder.O.Update,
"DELETE /{id}": procedureroomorder.O.Delete,
"PATCH /{id}/submit": procedureroomorder.O.Submit,
})
hc.RegCrud(r, "/v1/procedure-room-order-item", procedureroomorderitem.O)
hk.GroupRoutes("/v1/consultation", r, auth.GuardMW, hk.MapHandlerFunc{
"GET /": consultation.O.GetList,