-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommom.go
32 lines (23 loc) · 805 Bytes
/
commom.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package wxgamevp
import (
jsoniter "github.com/json-iterator/go"
)
const (
wechatDomain = "https://api.weixin.qq.com"
getBalanceURI = "/cgi-bin/midas/getbalance"
getSandboxBalanceURI = "/cgi-bin/midas/sandbox/getbalance"
getCancelPayURI = "/cgi-bin/midas/cancelpay"
getSandboxCancelPayURI = "/cgi-bin/midas/sandbox/cancelpay"
getPayURI = "/cgi-bin/midas/pay"
getSandboxPayURI = "/cgi-bin/midas/sandbox/pay"
getPresentURI = "/cgi-bin/midas/present"
getSandboxPresentURI = "/cgi-bin/midas/sandbox/present"
getOrderURI = "/wxa/business/getpayfororder"
getSandboxOrderURI = ""
)
var jsonIter = jsoniter.ConfigCompatibleWithStandardLibrary
// CommonError model
type CommonError struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}