saveinmed/backend/internal/http/handler
Tiago Yamamoto 45d34f36c8 feat(pagination): add pagination to all list endpoints
Added pagination support to:
- ListCompanies: filter by role, search
- ListProducts: filter by seller, search
- ListOrders: filter by buyer, seller, status
- ListInventory: filter by expiring date, seller

New domain types:
- ProductFilter, ProductPage
- CompanyFilter, CompanyPage
- OrderFilter, OrderPage
- InventoryPage

All endpoints now return paginated responses with:
- items array
- total count
- current page
- page size

Updated MockRepository in both test files to match new signatures
2025-12-20 08:37:59 -03:00
..
cart_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
company_handler.go feat(pagination): add pagination to all list endpoints 2025-12-20 08:37:59 -03:00
dashboard_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
dto.go refactor(handler): extract DTOs and helpers to dto.go 2025-12-20 07:54:35 -03:00
handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
handler_test.go feat(pagination): add pagination to all list endpoints 2025-12-20 08:37:59 -03:00
order_handler.go feat(pagination): add pagination to all list endpoints 2025-12-20 08:37:59 -03:00
payment_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
product_handler.go feat(pagination): add pagination to all list endpoints 2025-12-20 08:37:59 -03:00
user_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00