Files
Repuestera/back/dto/auth.go

21 lines
440 B
Go

package dto
type TokenResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
}
type RegisterResponse struct {
ID uint `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
}
type MeResponse struct {
ID uint `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
}