Private
Public Access
23 lines
541 B
Go
23 lines
541 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"`
|
|
Permissions []uint `json:"permissions"`
|
|
}
|
|
|
|
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"`
|
|
Permissions []uint `json:"permissions"`
|
|
}
|