9 Commits

Author SHA1 Message Date
f1337706f0 swagger: document the ?lang= query parameter on every admin endpoint
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
appresult.Localize applies to all /api/admin routes, so each handler's
godoc now declares lang (tm, ru, en, all; default tm) and Swagger UI
offers it as a dropdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:08:32 +05:00
323e131216 changed role permission
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
2026-09-26 16:34:28 +05:00
d1a6fcaadc ch some
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
2026-09-04 19:33:26 +05:00
28509eb4ca Add backups, currencies and dashboard APIs, and scope access by guard_name.
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
Web users may only CRUD their own records, operators stay in assigned branches, and admin/manager/superadmin keep full access.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 18:14:47 +05:00
0d000f9af6 Harden loan-order create validation and cover gin JSON binding.
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
Reject zero loanType/branchId/dates before insert, and assert mobile-style payloads bind through gin required tags.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 13:13:38 +05:00
6683826662 Accept flexible loan payloads and nest related info on lending responses.
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
Widen loan_orders.region in the init migration and share common relation helpers across loan APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 13:06:06 +05:00
1fd0abbcb2 Bind permissions to roles and scope operator access by branch.
Replace permission_user with permission_role, enforce RBAC on admin routes, and limit operators to their assigned branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 18:24:43 +05:00
427d5b4e07 Add GET /loan-orders/mobile to list loan orders created from the mobile app.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 18:37:31 +05:00
585ba63bc2 changed arhitecture 2026-07-15 18:08:19 +05:00