17 lines
430 B
Go
17 lines
430 B
Go
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:"refreh_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)
|
|
}
|