domain

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppAuthResponse

type AppAuthResponse struct {
	ErrorCode    int    `json:"errorCode"`
	ErrorMessage string `json:"errorMessage"`
	AuthApp
}

AppAuthResponse represents the response of App authentication from fenxiang open api.

type AuthApp

type AuthApp struct {
	AppID           string `json:"appId"`
	CorpAccessToken string `json:"corpAccessToken"`
	CorpID          string `json:"corpId"`
	ExpiresIn       int    `json:"expiresIn"`
}

AuthApp represents authentication object for application.

func (*AuthApp) Auth

func (auth *AuthApp) Auth() error

Auth get corperation access token and ID from AppAuthResponse object.

func (*AuthApp) GetAuth

func (auth *AuthApp) GetAuth() error

GetAuth get corperation access token and ID from database.

type Authentication

type Authentication interface {
	Auth() error
	GetAuth() error
}

Authentication represents the methods for the fenxiang OpenAPI authentication.

type InvalidPtrError

type InvalidPtrError struct {
	Type reflect.Type
}

An InvalidPtrError describes an invalid argument passed to Unmarshal. (The argument to Unmarshal must be a non-nil pointer.)

func (*InvalidPtrError) Error

func (e *InvalidPtrError) Error() string

Jump to

Keyboard shortcuts

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