material, device-order required doctor_id, infra search and parent,childrens

This commit is contained in:
dpurbosakti
2025-10-03 10:53:06 +07:00
parent c23df03d0e
commit 39efdf4d57
15 changed files with 166 additions and 6 deletions
@@ -193,7 +193,7 @@ func SetRoutes() http.Handler {
"PATCH /{id}/consume": medicationitemdist.O.Consume,
})
hk.GroupRoutes("/v1/device-order", r, hk.MapHandlerFunc{
hk.GroupRoutes("/v1/device-order", r, auth.GuardMW, hk.MapHandlerFunc{
"GET /": deviceorder.O.GetList,
"GET /{id}": deviceorder.O.GetDetail,
"POST /": deviceorder.O.Create,
@@ -202,7 +202,7 @@ func SetRoutes() http.Handler {
"PATCH /{id}/complete": deviceorder.O.Complete,
})
hk.GroupRoutes("/v1/material-order", r, hk.MapHandlerFunc{
hk.GroupRoutes("/v1/material-order", r, auth.GuardMW, hk.MapHandlerFunc{
"GET /": materialorder.O.GetList,
"GET /{id}": materialorder.O.GetDetail,
"POST /": materialorder.O.Create,