Align schema, API routes, and auth with updated admin domain model.

Rename users table fields and loan documents table, expand branch billing credentials, switch to /api/admin prefix, refactor auth endpoints, replace PATCH with PUT for status updates, remove file upload APIs, and regenerate Swagger with ordered tags.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
guwandykandCursor committed 2026-07-06 14:09:45 +05:00
1 parent 0c717101da
commit 82e1aad016
22 files changed
+4248 -418

No files matched your search

+7 -4
View File
@@ -7,14 +7,17 @@ type LocalizedTitle struct {
}
type ProvinceDTO struct {
Id int64 `json:"id"`
Title LocalizedTitle `json:"title"`
Id int64 `json:"id"`
Title LocalizedTitle `json:"title"`
Status bool `json:"status"`
}
type CreateProvinceDTO struct {
Title LocalizedTitle `json:"title" binding:"required"`
Title LocalizedTitle `json:"title" binding:"required"`
Status *bool `json:"status"`
}
type UpdateProvinceDTO struct {
Title LocalizedTitle `json:"title" binding:"required"`
Title LocalizedTitle `json:"title" binding:"required"`
Status bool `json:"status"`
}