mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-13 02:56:39 +07:00
Aurum — a self-hosted personal finance operating system: cash flow, net worth tracking, budgets, goals, recurring payments, reports, proactive alerts, and a compound-interest returns calculator, all bilingual (RU/EN) and mobile-first. Ships as a three-container Docker Compose stack (Postgres + FastAPI + nginx-served React frontend). See README.md for setup and CONTRIBUTING.md for development.
16 lines
413 B
Python
16 lines
413 B
Python
from typing import Literal
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AdviceItem(BaseModel):
|
|
key: str
|
|
tone: Literal["positive", "neutral", "warning"]
|
|
# Frontend-translated by key — same key+params pattern as FinancialAlert,
|
|
# extended to allow string params (category names) alongside numbers.
|
|
params: dict[str, str | int | float]
|
|
|
|
|
|
class AdviceResponse(BaseModel):
|
|
items: list[AdviceItem]
|