Documentation
¶
Index ¶
- func CheckSignMd5(data interface{}, signName, key string) (string, bool)
- func GetTLSConfig(certpath, keypath, capath string) (*tls.Config, error)
- func IsEmptyValue(v reflect.Value) bool
- func Param(urlBase string, P map[string]string) string
- func RandomStr(size int, Random int) string
- func Requset(req *http.Request) ([]byte, error)
- func RequsetJSON(req *http.Request, tflag int) ([]byte, error)
- func RequsetXML(req *http.Request, tflag int, isXML ...bool) ([]byte, error)
- func SignSha1(data map[string]interface{}) string
- func XMLSignMd5(data interface{}, key string) string
- type JSONError
- type XMLError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignMd5 ¶
CheckSignMd5 检查数据的MD5是否正确
func GetTLSConfig ¶
GetTLSConfig 获取TLS Config
func RandomStr ¶
RandomStr 随机字符串 Random = 0 // 纯数字 Random = 1 // 小写字母 Random = 2 // 大写字母 Random = 3 // 数字、大小写字母
func RequsetJSON ¶
RequsetJSON 发送微信请求
func RequsetXML ¶
RequsetXML 发送微信请求
Types ¶
type XMLError ¶
type XMLError struct {
XMLName xml.Name `xml:"xml"`
ReturnCode string `xml:"return_code,omitempty"`
ReturnMsg string `xml:"return_msg,omitempty"`
ResultCode string `xml:"result_code,omitempty"`
ErrCode string `xml:"err_code,omitempty"`
ErrCodeDes string `xml:"err_code_des,omitempty"`
}
XMLError 微信错误
Click to show internal directories.
Click to hide internal directories.