feat(panel): günlük harcama ve dönem istatistikleri uç noktaları

- GET /periods/{id}/daily: dönemin her günü için 4 grubun harcaması
- GET /stats/periods: son dönemlerin harcanabilir/harcanan tutarı + toplam birikim
- Faz 7 adım planı

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 23:37:05 +03:00
parent 861bfba85a
commit 30136ed1d3
12 changed files with 425 additions and 3 deletions
+3
View File
@@ -11,6 +11,7 @@ mod period;
mod plan;
mod review;
mod spa;
mod stats;
use axum::{
Router,
@@ -82,6 +83,8 @@ pub fn router(state: AppState) -> Router {
.route("/periods/{id}/notes", get(note::list).post(note::create))
.route("/periods/{id}/summary", get(budget::summary))
.route("/periods/{id}/review", get(review::get))
.route("/periods/{id}/daily", get(stats::daily))
.route("/stats/periods", get(stats::periods))
.route(
"/periods/{id}/budget",
get(budget::get).put(budget::set_monthly),