Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func GenWeChatPaySign(m map[string]string, payKey string) (string, error)
- func GetBillNo(prefix string, length int) string
- func GetTradeNO(prefix string) string
- func NewRequest(method, url string, data []byte) (body []byte, err error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandomLenNum(length int) string
- func RandomNum(min int64, max int64) int64
- func RandomNumString(min int64, max int64) string
- func RandomString(length int) string
- func Struct2Map(r interface{}) (s map[string]string, err error)
- func ToStringE(i interface{}) (string, error)
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenWeChatPaySign ¶
GenWeChatPaySign 生成微信签名
func NewRequest ¶
NewRequest 请求包装
func PKCS7Padding ¶
PKCS7Padding Aes 加密 PKCS7填充
func Struct2Map ¶
Struct2Map struct to map,依赖 json tab
Types ¶
Click to show internal directories.
Click to hide internal directories.