26 lines
566 B
Go
Executable File
26 lines
566 B
Go
Executable File
package auth
|
|
|
|
import "time"
|
|
|
|
type LoginDTO struct {
|
|
Login string `json:"login" binding:"required"`
|
|
Password string `json:"password" binding:"required"`
|
|
}
|
|
|
|
type ResLoginDTO struct {
|
|
Id int `json:"id"`
|
|
Password string `json:"-"`
|
|
}
|
|
|
|
type TokenReqBody struct {
|
|
RefreshToken string `json:"refreshToken" binding:"required"`
|
|
}
|
|
|
|
type ResUserDTO struct {
|
|
Id int `json:"id"`
|
|
FullName string `json:"fullName"`
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
Avatar string `json:"avatar"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|