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 ShansongAppConfig ¶
type ShansongAppToken ¶
type ShansongAppTokenKey ¶
Click to show internal directories.
Click to hide internal directories.