refactor: update module imports to use module locations

Update all module files to import from canonical module locations
instead of legacy re-export files:
- checkout, orders, customers routes: use module schemas
- catalog, marketplace schemas: use inventory module schemas
- marketplace, customers, inventory, analytics services: use module models

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 08:35:01 +01:00
parent 88a4184564
commit d48dc85d5f
72 changed files with 69 additions and 13 deletions

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1 @@
{}

View File

@@ -38,7 +38,7 @@ from models.schema.auth import (
PasswordResetResponse,
UserLogin,
)
from models.schema.customer import (
from app.modules.customers.schemas import (
CustomerAddressCreate,
CustomerAddressListResponse,
CustomerAddressResponse,

View File

@@ -0,0 +1,4 @@
# Page routes will be added here
# TODO: Add HTML page routes for admin/vendor dashboards
__all__ = []

View File

@@ -329,7 +329,7 @@ class CustomerService:
Raises:
CustomerNotFoundException: If customer not found
"""
from models.database.order import Order
from app.modules.orders.models import Order
# Verify customer belongs to vendor
self.get_customer(db, vendor_id, customer_id)
@@ -365,7 +365,7 @@ class CustomerService:
"""
from sqlalchemy import func
from models.database.order import Order
from app.modules.orders.models import Order
customer = self.get_customer(db, vendor_id, customer_id)

View File