app

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDeveloperProxyURL = "http://open.ishansong.com/openapi/developer/v5/"

可配置测试环境: http://open.s.bingex.com/openapi/developer/v5/

View Source
const DefaultFileProxyURL = "http://open.ishansong.com/openapi/file/v5/"

可配置测试环境: http://open.s.bingex.com/openapi/file/v5/

View Source
const DefaultMerchantProxyURL = "http://open.ishansong.com/openapi/merchantRegister/v5/"

可配置测试环境: http://open.s.bingex.com/openapi/merchantRegister/v5/

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ShansongAppAuthBaseURL       string
	ShansongAppTokenURL          string
	ShansongAppRefreshTokenURL   string
	ShansongAppConfigLifeSpan    gokits.Duration
	ShansongAppTokenLifeSpan     gokits.Duration
	ShansongAppTokenTempLifeSpan gokits.Duration
	ShansongAppDeveloperProxyURL string
	ShansongAppMerchantProxyURL  string
	ShansongAppFileProxyURL      string
}

type QueryShansongAppToken

type QueryShansongAppToken struct {
	ShansongAppToken
	Updated      string
	ExpireTime   int64
	RefreshToken string
}

func (*QueryShansongAppToken) GetExpireTime

func (q *QueryShansongAppToken) GetExpireTime() int64

func (*QueryShansongAppToken) GetUpdated

func (q *QueryShansongAppToken) GetUpdated() string

type Response

type Response struct {
	Status int          `json:"status"`
	Msg    string       `json:"msg"`
	Data   ResponseData `json:"data"`
}

type ResponseData

type ResponseData struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int    `json:"expires_in"`
}

type ShansongAppConfig

type ShansongAppConfig struct {
	AppId       string
	AppSecret   string
	RedirectURL string
	CallbackURL string
}

type ShansongAppToken

type ShansongAppToken struct {
	AppId        string `json:"appId"`
	MerchantCode string `json:"merchantCode"`
	AccessToken  string `json:"token"`
}

type ShansongAppTokenKey

type ShansongAppTokenKey struct {
	CodeName     string
	MerchantCode string
}

Jump to

Keyboard shortcuts

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