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