client

package
v0.0.0-...-e039532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTokenSSOv2

func GenTokenSSOv2(authorKey, userAgent, IP string) *sdk.APIResponse

GenTokenSSOv2 ...

func VerifySSOToken

func VerifySSOToken(token string) *sdk.APIResponse

func VerifySSOv2Token

func VerifySSOv2Token(token, userAgent, IP string) *sdk.APIResponse

Types

type GenTokenSSOv2Data

type GenTokenSSOv2Data struct {
	AccessToken string `json:"access_token"`
}

type GenTokenSSOv2Result

type GenTokenSSOv2Result struct {
	Code    int               `json:"code"`
	Message string            `json:"message"`
	Data    GenTokenSSOv2Data `json:"data"`
}

type SSOInfo

type SSOInfo struct {
	UserID   int    `json:"UserID"`
	Fullname string `json:"Fullname"`
	Phone    string `json:"Phone"`
}

type VerifyTokenSSOv2Data

type VerifyTokenSSOv2Data struct {
	UserID int    `json:"user_id"`
	Name   string `json:"name"`
	Phone  string `json:"phone"`
}

type VerifyTokenSSOv2Result

type VerifyTokenSSOv2Result struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    VerifyTokenSSOv2Data `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL