Commit Graph

9 Commits

Author SHA1 Message Date
mwpn
4d36f02f32 feat: tambah endpoint frontend dan field camera di gate
- Tambah endpoint GET /tariffs (list tariffs)
- Tambah endpoint GET /locations/{code} (detail location)
- Tambah endpoint GET /gates/{location_code}/{gate_code} (detail gate)
- Tambah endpoint GET /tariffs/{location_code}/{gate_code}/{category} (detail tariff)
- Tambah endpoint GET /audit-logs (audit trail history)
- Tambah endpoint GET /entry-events (raw entry events)
- Tambah endpoint GET /realtime/events (realtime events list)
- Tambah field camera di gates (support HLS, RTSP, HTTP streaming)
- Migration 004: add camera column to gates table
- Update validasi dan service untuk support camera field
2025-12-18 06:36:49 +07:00
mwpn
1d5511ccbc Add location_code filter to streams endpoint for live camera filtering 2025-12-17 17:57:14 +07:00
mwpn
d2b4def127 Fix location_code filter in stream method: handle empty string and trim whitespace 2025-12-17 17:55:35 +07:00
mwpn
2760f1a8f7 Fix location_code filter: handle empty string and trim whitespace 2025-12-17 17:55:00 +07:00
mwpn
1aa462d9da Fix hourly summary: default to today for realtime updates, add hour parameter for efficient updates 2025-12-17 17:41:27 +07:00
mwpn
b10d590649 Fix: Remove created_at/updated_at from daily/hourly summary INSERT - Production database doesn't have these columns - Update DailySummaryService and HourlySummaryService - Add daily_summary and hourly_summary structure check to check_database.php 2025-12-17 13:38:36 +07:00
mwpn
ca3b1bd0d7 Fix: Change 'amount' to 'price' to match database schema - Database uses 'price' column, not 'amount' - Update all queries in DailySummaryService, HourlySummaryService - Update RetribusiWriteService (SELECT, INSERT, UPDATE) - Update Validator to use 'price' field - Update check_database.php and TROUBLESHOOTING.md 2025-12-17 13:36:29 +07:00
mwpn
533c22d3af Fix: Fix SQL GROUP BY error in daily/hourly summary aggregation - Use COALESCE in GROUP BY to handle NULL tariff amounts - Remove invalid is_active check on tariffs table 2025-12-17 13:32:31 +07:00
mwpn
39f23388a7 Initial commit: Slim Framework 4 API Retribusi dengan modular architecture 2025-12-17 10:43:03 +07:00