30 lines
669 B
Go
30 lines
669 B
Go
package auth
|
|
|
|
import "time"
|
|
|
|
type TokenResponse struct {
|
|
AccessToken string `json:"access_token"`
|
|
TokenType string `json:"token_type"`
|
|
ExpiresIn int64 `json:"expires_in"`
|
|
RefreshToken string `json:"refresh_token"`
|
|
Scope string `json:"scope"`
|
|
}
|
|
|
|
type User struct {
|
|
ID string `json:"id" gorm:"primaryKey"`
|
|
Username string `json:"username"`
|
|
Blacklisted bool
|
|
Email string `json:"email"`
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type AvatarDecorationData struct {
|
|
Asset string
|
|
SkuID string
|
|
}
|
|
|
|
type ExchangeCodeRequest struct {
|
|
GrantType string `json:"grant_type"`
|
|
Code string `json:"code"`
|
|
RedirectUri string `json:"redirect_uri"`
|
|
}
|