Documentation
¶
Index ¶
- type AccessTokenReqBody
- type AccessTokenReqCall
- type AccessTokenResult
- type AuthenService
- func (authens *AuthenService) AccessToken(ctx *core.Context, body *AccessTokenReqBody, optFns ...request.OptFn) *AccessTokenReqCall
- func (authens *AuthenService) RefreshAccessToken(ctx *core.Context, body *RefreshAccessTokenReqBody, optFns ...request.OptFn) *RefreshAccessTokenReqCall
- func (authens *AuthenService) UserInfo(ctx *core.Context, optFns ...request.OptFn) *UserInfoReqCall
- type RefreshAccessTokenReqBody
- type RefreshAccessTokenReqCall
- type Service
- type UserInfoReqCall
- type UserInfoResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenReqBody ¶
type AccessTokenReqCall ¶
type AccessTokenReqCall struct {
// contains filtered or unexported fields
}
func (*AccessTokenReqCall) Do ¶
func (rc *AccessTokenReqCall) Do() (*AccessTokenResult, error)
type AccessTokenResult ¶
type AccessTokenResult struct { AccessToken string `json:"access_token"` AvatarUrl string `json:"avatar_url"` AvatarThumb string `json:"avatar_thumb"` AvatarMiddle string `json:"avatar_middle"` AvatarBig string `json:"avatar_big"` ExpiresIn int `json:"expires_in"` Name string `json:"name"` EnName string `json:"en_name"` OpenID string `json:"open_id"` UnionID string `json:"union_id"` UserID string `json:"user_id"` TenantKey string `json:"tenant_key"` RefreshExpiresIn int `json:"refresh_expires_in"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` }
type AuthenService ¶
type AuthenService struct {
// contains filtered or unexported fields
}
func (*AuthenService) AccessToken ¶
func (authens *AuthenService) AccessToken(ctx *core.Context, body *AccessTokenReqBody, optFns ...request.OptFn) *AccessTokenReqCall
func (*AuthenService) RefreshAccessToken ¶
func (authens *AuthenService) RefreshAccessToken(ctx *core.Context, body *RefreshAccessTokenReqBody, optFns ...request.OptFn) *RefreshAccessTokenReqCall
func (*AuthenService) UserInfo ¶
func (authens *AuthenService) UserInfo(ctx *core.Context, optFns ...request.OptFn) *UserInfoReqCall
type RefreshAccessTokenReqCall ¶
type RefreshAccessTokenReqCall struct {
// contains filtered or unexported fields
}
func (*RefreshAccessTokenReqCall) Do ¶
func (rc *RefreshAccessTokenReqCall) Do() (*AccessTokenResult, error)
type Service ¶
type Service struct { Authens *AuthenService // contains filtered or unexported fields }
func NewService ¶
type UserInfoReqCall ¶
type UserInfoReqCall struct {
// contains filtered or unexported fields
}
func (*UserInfoReqCall) Do ¶
func (rc *UserInfoReqCall) Do() (*UserInfoResult, error)
type UserInfoResult ¶
type UserInfoResult struct { Name string `json:"name"` AvatarUrl string `json:"avatar_url"` AvatarThumb string `json:"avatar_thumb"` AvatarMiddle string `json:"avatar_middle"` AvatarBig string `json:"avatar_big"` Email string `json:"email"` OpenID string `json:"open_id"` UnionID string `json:"union_id"` UserID string `json:"user_id"` Mobile string `json:"mobile"` }
Click to show internal directories.
Click to hide internal directories.