corrections typo parametre du flow oauth2

This commit is contained in:
2021-01-29 00:53:05 +01:00
parent 29c7e70cc9
commit cf9e02efcb
3 changed files with 17 additions and 16 deletions

View File

@@ -3,14 +3,14 @@ package model
import "fmt"
type Oauth struct {
ID int64 `db:"id"`
AccessToken string `db:"access_token"`
TokenType string `db:"token_type"`
ExpireIN int `db:"expire_in"`
RefreshToken string `db:"refresh_token"`
ID int64 `db:"id"`
AccessToken string `db:"access_token"`
TokenType string `db:"token_type"`
ExpiresIN float64 `db:"expires_in"`
RefreshToken string `db:"refresh_token"`
}
func (o Oauth) String() string {
return fmt.Sprintf("id=%v, accessToken=%v, tokenType=%v, expireIN=%v, refreshToken=%v",
o.ID, o.AccessToken, o.TokenType, o.ExpireIN, o.RefreshToken)
return fmt.Sprintf("id=%v, accessToken=%v, tokenType=%v, expiresIN=%v, refreshToken=%v",
o.ID, o.AccessToken, o.TokenType, o.ExpiresIN, o.RefreshToken)
}