feat: Finance API + тесты + CI/CD #1

Merged
daniil merged 11 commits from dev into main 2026-03-01 05:14:22 +00:00
Owner

Что сделано

Finance API (owner-only)

  • CRUD categories + auto-seed 16 дефолтных
  • CRUD transactions
  • Summary endpoint (баланс, по категориям, daily)
  • Analytics endpoint (тренды, сравнение месяцев)
  • Owner-only middleware (403 для других)

CI/CD

  • Gitea Actions pipeline (vet + test + build)
  • Dev окружение (:8081)

Тесты

  • Unit тесты handlers, services, repository
## Что сделано ### Finance API (owner-only) - CRUD categories + auto-seed 16 дефолтных - CRUD transactions - Summary endpoint (баланс, по категориям, daily) - Analytics endpoint (тренды, сравнение месяцев) - Owner-only middleware (403 для других) ### CI/CD - Gitea Actions pipeline (vet + test + build) - Dev окружение (:8081) ### Тесты - Unit тесты handlers, services, repository
daniil added 11 commits 2026-03-01 05:12:28 +00:00
ci: add Gitea Actions workflows and placeholder tests
Some checks failed
CI / ci (push) Failing after 47s
b91e67ac1d
ci: fix network
Some checks failed
CI / ci (push) Failing after 34s
b544a8c9a3
ci: add go mod tidy step
All checks were successful
CI / ci (push) Successful in 32s
8811a9078b
docs: add readme
All checks were successful
CI / ci (push) Successful in 9s
76d12f362a
test: webhook trigger
All checks were successful
CI / ci (push) Successful in 13s
d4bb0bdfb9
test: webhook 2
All checks were successful
CI / ci (push) Successful in 15s
edbd565ad3
ci: add deploy trigger via curl
All checks were successful
CI / ci (push) Successful in 15s
13b4435c45
ci: clean workflows (deploy via cron)
All checks were successful
CI / ci (push) Successful in 11s
2b4a6ce4c8
feat: add finance module (categories, transactions, summary, analytics)
All checks were successful
CI / ci (push) Successful in 12s
23939ccc92
- model/finance.go: FinanceCategory, FinanceTransaction, Summary, Analytics
- repository/finance.go: CRUD + summary/analytics queries
- service/finance.go: business logic with auto-seed default categories
- handler/finance.go: REST endpoints with owner-only check (user_id=1)
- db.go: finance_categories + finance_transactions migrations
- main.go: register /finance/* routes

Endpoints: GET/POST/PUT/DELETE /finance/categories, /finance/transactions
GET /finance/summary, /finance/analytics
test: add finance handler, service, repository tests
All checks were successful
CI / ci (push) Successful in 36s
e782367ef0
daniil merged commit ed14fba6ea into main 2026-03-01 05:14:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daniil/pulse-api#1