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,10 @@ func NewProductStockController(productStockService service.ProductStockService)
func (u *ProductStockController) 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", ""),
ProductCategoryID: uint(c.QueryInt("product_category_id", 0)),
}
if query.Page < 1 || query.Limit < 1 {