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>
26 lines
551 B
Go
Executable File
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
|
|
}
|