Documentation ¶
Index ¶
- func Checks2sSign(timestamp, nonce, sign, secret string) bool
- func Sha1Sign(params ...string) string
- func WxPaySign(params map[string]string, signType string, PayKey string) (sign, str string, err error)
- type Apisign01
- type UrlGetSign
- func (u *UrlGetSign) AutoSpellUrlParam() string
- func (u *UrlGetSign) GetNonce() string
- func (u *UrlGetSign) GetSecret() string
- func (u *UrlGetSign) GetSign() string
- func (u *UrlGetSign) GetTimestamp() string
- func (u *UrlGetSign) SetNonce(s_nonce string) *UrlGetSign
- func (u *UrlGetSign) SetSecret(s string) *UrlGetSign
- func (u *UrlGetSign) SetTimestamp(s_timestamp string) *UrlGetSign
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checks2sSign ¶
Types ¶
type Apisign01 ¶
type Apisign01 struct {
// contains filtered or unexported fields
}
签名算法1
func NewApiSign01 ¶
func NewApiSign01() *Apisign01
func (*Apisign01) AppendParam ¶
func (Apisign01) GetSignString ¶
type UrlGetSign ¶
type UrlGetSign struct {
// contains filtered or unexported fields
}
func NewUrlGetSign ¶
func NewUrlGetSign() *UrlGetSign
sign.NewUrlGetSign().SetSecret("cjsJellySecret123456").AutoSpellUrlParam
func (*UrlGetSign) GetNonce ¶
func (u *UrlGetSign) GetNonce() string
func (*UrlGetSign) GetSecret ¶
func (u *UrlGetSign) GetSecret() string
func (*UrlGetSign) GetSign ¶
func (u *UrlGetSign) GetSign() string
func (*UrlGetSign) GetTimestamp ¶
func (u *UrlGetSign) GetTimestamp() string
func (*UrlGetSign) SetNonce ¶
func (u *UrlGetSign) SetNonce(s_nonce string) *UrlGetSign
func (*UrlGetSign) SetSecret ¶
func (u *UrlGetSign) SetSecret(s string) *UrlGetSign
func (*UrlGetSign) SetTimestamp ¶
func (u *UrlGetSign) SetTimestamp(s_timestamp string) *UrlGetSign
Click to show internal directories.
Click to hide internal directories.