25 lines
412 B
Go
25 lines
412 B
Go
package models
|
|
|
|
type Tokens struct {
|
|
AccessToken string `json:"access_token"`
|
|
RefreshToken string `json:"refresh_token"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
TOTP *string `json:"totp"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Tokens
|
|
}
|
|
|
|
type RefreshRequest struct {
|
|
RefreshToken string `json:"refresh_token"`
|
|
}
|
|
|
|
type RefreshResponse struct {
|
|
Tokens
|
|
}
|