Files
online-backend/internal/admin/auth/dto.go
GuwandykA 82e1aad016 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>
2026-07-06 14:09:45 +05:00

26 lines
551 B
Go
Executable File

package auth
import "time"
type LoginDTO struct {
Email string `json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
}
type RefreshTokenDTO struct {
RefreshToken string `json:"refreshToken" binding:"required"`
}
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
}