quota_reserve.go
7.75 KB
-
feat(audit): complete token and quota operation records · 3f8a50cf
Record successful and failed API token operations with safe target metadata. Capture quota adjustments in a transaction, synchronize committed cache differences, and correlate audit and top-up records. Show operation targets, changes, quota balances, and failure details consistently across audit and usage logs, with translations for all seven locales. Validated controller, middleware, and model tests; 78 frontend tests; typecheck and lint; real SQLite 3.50.4, MySQL 8.4.11, and PostgreSQL 16.15 with shared and separate log databases.
CaIon committed