36 lines
835 B
Go
Executable File
36 lines
835 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"`
|
|
Name string `json:"name"`
|
|
FirstName string `json:"firstName"`
|
|
LastName string `json:"lastName"`
|
|
Phone string `json:"phone"`
|
|
Avatar string `json:"avatar"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
type UpdateProfileDTO struct {
|
|
Name string `json:"name" binding:"required"`
|
|
FirstName string `json:"firstName"`
|
|
LastName string `json:"lastName"`
|
|
Phone string `json:"phone"`
|
|
Avatar string `json:"avatar"`
|
|
}
|
|
|
|
type UserCredentials struct {
|
|
Id int
|
|
Password string
|
|
}
|