feat: add more filters

This commit is contained in:
Adnan Zahir
2026-04-25 12:15:55 +07:00
parent 28394ee727
commit e79fde2408
6 changed files with 27 additions and 12 deletions
@@ -25,9 +25,11 @@ func NewTransferController(transferService service.TransferService) *TransferCon
func (u *TransferController) GetAll(c *fiber.Ctx) error {
query := &validation.Query{
Page: c.QueryInt("page", 1),
Limit: c.QueryInt("limit", 10),
Search: c.Query("search", ""),
Page: c.QueryInt("page", 1),
Limit: c.QueryInt("limit", 10),
Search: c.Query("search", ""),
ProductID: uint(c.QueryInt("product_id", 0)),
WarehouseID: uint(c.QueryInt("warehouse_id", 0)),
}
result, totalResults, err := u.TransferService.GetAll(c, query)