Documentation ¶
Index ¶
- type LoginHelper
- func (h *LoginHelper) GetQRCodeLoginResult(tokenId string) (*QRCodeLoginResult, error)
- func (h *LoginHelper) GetQRCodeLoginUrl(keyStr string) (*QRCodeUrlResult, error)
- func (h *LoginHelper) GetRefreshToken(tokenId string) (*QRCodeLoginResult, error)
- func (h *LoginHelper) ParseSecureRefreshToken(keyStr, secureRefreshToken string) (string, error)
- type LoginHttpResult
- type QRCodeLoginResult
- type QRCodeUrlResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginHelper ¶
type LoginHelper struct {
// contains filtered or unexported fields
}
func NewLoginHelper ¶
func NewLoginHelper(webHost string) *LoginHelper
func (*LoginHelper) GetQRCodeLoginResult ¶
func (h *LoginHelper) GetQRCodeLoginResult(tokenId string) (*QRCodeLoginResult, error)
GetQRCodeLoginResult 获取二维码登录结果
func (*LoginHelper) GetQRCodeLoginUrl ¶
func (h *LoginHelper) GetQRCodeLoginUrl(keyStr string) (*QRCodeUrlResult, error)
GetQRCodeLoginUrl 获取登录二维码链接
func (*LoginHelper) GetRefreshToken ¶
func (h *LoginHelper) GetRefreshToken(tokenId string) (*QRCodeLoginResult, error)
GetRefreshToken 获取Token
func (*LoginHelper) ParseSecureRefreshToken ¶
func (h *LoginHelper) ParseSecureRefreshToken(keyStr, secureRefreshToken string) (string, error)
ParseSecureRefreshToken 解密Token
type LoginHttpResult ¶
type QRCodeLoginResult ¶
type QRCodeLoginResult struct { QrCodeStatus string `json:"qrCodeStatus"` SecureRefreshToken string `json:"secureRefreshToken"` }
QRCodeLoginResult 二维码登录结果
type QRCodeUrlResult ¶
type QRCodeUrlResult struct { TokenId string `json:"tokenId"` TokenUrl string `json:"tokenUrl"` ExpiredTime int `json:"expiredTime"` }
QRCodeUrlResult 二维码登录页面
Click to show internal directories.
Click to hide internal directories.