You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alipayopen/params.go

19 lines
508 B

package alipayopen
import (
"go.dtapp.net/gorequest"
"go.dtapp.net/gotime"
)
func (c *Client) newParamsWithType(_method string, param ...gorequest.Params) gorequest.Params {
params := gorequest.NewParamsWith(param...)
params.Set("app_id", c.GetAppId())
params.Set("method", _method)
params.Set("format", "JSON")
params.Set("charset", "utf-8")
params.Set("sign_type", "RSA2")
params.Set("timestamp", gotime.Current().SetFormat(gotime.DateTimeFormat))
params.Set("version", "1.0")
return params
}