utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTimeout = 10 * time.Second
)
View Source
var LegalCurrencies = []string{`ALIPAY`, `WECHAT`}

LegalCurrencies 法币支付

Functions

func IsCryptoCurrency

func IsCryptoCurrency(payCurrency string) bool

IsCryptoCurrency 是否是加密货币支付

func Request

func Request(key string, contentType ...string) *resty.Request

func Resty

func Resty() *resty.Client

func URLQueryValueGetter

func URLQueryValueGetter(longURL string) func(string) string

Types

type ReqURL

type ReqURL string

func (ReqURL) Get

func (r ReqURL) Get(result interface{}, key string) (*resty.Response, error)

func (ReqURL) Post

func (r ReqURL) Post(result interface{}, body interface{}, key string) (*resty.Response, error)

func (ReqURL) String

func (r ReqURL) String() string

Jump to

Keyboard shortcuts

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