Automated Action a28e115e4f Implement simple cart system with FastAPI and SQLite
- Set up project structure with FastAPI and SQLite
- Create models for products and cart items
- Implement schemas for API request/response validation
- Add database migrations with Alembic
- Create service layer for business logic
- Implement API endpoints for cart operations
- Add health endpoint for monitoring
- Update documentation
- Fix linting issues
2025-05-18 23:36:40 +00:00

26 lines
941 B
Python

# Re-export service functions for easier imports elsewhere
from app.services.product_service import (
get_products as get_products,
get_product_by_id as get_product_by_id,
create_product as create_product,
update_product as update_product,
delete_product as delete_product,
get_product_count as get_product_count
)
from app.services.cart_service import (
get_active_cart as get_active_cart,
get_cart_with_items as get_cart_with_items,
get_cart_detail as get_cart_detail,
add_item_to_cart as add_item_to_cart,
update_cart_item as update_cart_item,
remove_cart_item as remove_cart_item,
clear_cart as clear_cart
)
__all__ = [
"get_products", "get_product_by_id", "create_product", "update_product",
"delete_product", "get_product_count", "get_active_cart", "get_cart_with_items",
"get_cart_detail", "add_item_to_cart", "update_cart_item", "remove_cart_item",
"clear_cart"
]