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

+8 -8
View File
@@ -3,23 +3,23 @@ package auth
import "time"
type LoginDTO struct {
Login string `json:"login" binding:"required"`
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
}
type ResLoginDTO struct {
Id int `json:"id"`
Password string `json:"-"`
}
type TokenReqBody struct {
type RefreshTokenDTO struct {
RefreshToken string `json:"refreshToken" binding:"required"`
}
type ResUserDTO struct {
type UserProfileDTO struct {
Id int `json:"id"`
FullName string `json:"fullName"`
PhoneNumber string `json:"phoneNumber"`
Avatar string `json:"avatar"`
CreatedAt time.Time `json:"createdAt"`
}
type UserCredentials struct {
Id int
Password string
}