
- Set up project structure with FastAPI - Implement user and account management - Add send and receive money functionality - Set up transaction processing system - Add JWT authentication - Configure SQLAlchemy with SQLite - Set up Alembic for database migrations - Create comprehensive API documentation
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
from app.crud.user import get_user_by_id, get_user_by_email, get_users, create_user, update_user, delete_user, authenticate
|
|
from app.crud.account import get_account_by_id, get_account_by_number, get_user_accounts, create_account, update_account, delete_account, update_account_balance
|
|
from app.crud.transaction import get_transaction_by_id, get_transaction_by_reference, get_user_transactions, get_account_transactions, create_deposit, create_withdrawal, create_transfer, create_receive_money, create_send_money, update_transaction, process_transaction
|
|
|
|
# Define __all__ to make explicit what's exported from this module
|
|
__all__ = [
|
|
# User CRUD
|
|
"get_user_by_id",
|
|
"get_user_by_email",
|
|
"get_users",
|
|
"create_user",
|
|
"update_user",
|
|
"delete_user",
|
|
"authenticate",
|
|
|
|
# Account CRUD
|
|
"get_account_by_id",
|
|
"get_account_by_number",
|
|
"get_user_accounts",
|
|
"create_account",
|
|
"update_account",
|
|
"delete_account",
|
|
"update_account_balance",
|
|
|
|
# Transaction CRUD
|
|
"get_transaction_by_id",
|
|
"get_transaction_by_reference",
|
|
"get_user_transactions",
|
|
"get_account_transactions",
|
|
"create_deposit",
|
|
"create_withdrawal",
|
|
"create_transfer",
|
|
"create_receive_money",
|
|
"create_send_money",
|
|
"update_transaction",
|
|
"process_transaction",
|
|
] |