types

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_NOT_READY = iota
	STATUS_READY
	STATUS_LOGINED
)
View Source
const DateLayout = "2006-01-02"
View Source
const TimeLayout = "2006-01-02 15:04:05"

Variables

View Source
var (
	ErrNotReady    = errors.New("sdk not ready")
	ErrMaxErrTimes = errors.New("network error, max retry times")
)

Functions

This section is empty.

Types

type AuthLoginVO

type AuthLoginVO struct {
	UserId              uint32     `json:"userId"`
	Account             string     `json:"account"`
	TrueName            string     `json:"trueName"`
	Mobile              string     `json:"mobile"`
	IDentity            int32      `json:"status"`
	LastLogin           *time.Time `json:"lastLogin"`
	ThisLogin           *time.Time `json:"thisLogin"`
	AccessKey           string     `json:"accessKey"`
	AccessToken         string     `json:"accessToken"`
	AccessTokenExpires  int64      `json:"accessTokenExpires"`
	RefreshToken        string     `json:"refreshToken"`
	RefreshTokenExpires int64      `json:"refreshTokenExpires"`
}

type RefreshTokenData

type RefreshTokenData struct {
	AccessKey          string `json:"accessKey"`
	AccessToken        string `json:"accessToken"`
	AccessTokenExpires int64  `json:"accessTokenExpires"`
}

Jump to

Keyboard shortcuts

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