change product list to retrieve its data from product outlets

This commit is contained in:
2026-05-13 23:15:09 +07:00
parent 3b62504798
commit 5f379faf17
6 changed files with 49 additions and 3 deletions
+3
View File
@@ -85,6 +85,9 @@ func (s *ProductServiceImpl) ListProducts(ctx context.Context, req *contract.Lis
if req.OrganizationID != nil {
filters["organization_id"] = *req.OrganizationID
}
if req.OutletID != nil {
filters["outlet_id"] = *req.OutletID
}
if req.CategoryID != nil {
filters["category_id"] = *req.CategoryID
}