FEAT[BE] :add type filtering and validation to product warehouse services

This commit is contained in:
aguhh18
2026-02-04 09:59:15 +07:00
parent f59cdd821a
commit 90de167fcd
8 changed files with 70 additions and 36 deletions
@@ -32,6 +32,7 @@ func (u *ProductWarehouseController) GetAll(c *fiber.Ctx) error {
Flags: c.Query("flags", ""),
KandangId: uint(c.QueryInt("kandang_id", 0)),
TransferContext: c.Query(utils.TransferContextKey, ""),
Type: c.Query("type", ""),
}
if query.Page < 1 || query.Limit < 1 {