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.
18 lines
421 B
18 lines
421 B
package alipayopen
|
|
|
|
import (
|
|
"context"
|
|
"github.com/dtapps/go-library/utils/gorequest"
|
|
)
|
|
|
|
func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error) {
|
|
// 参数
|
|
params := gorequest.NewParamsWith(notMustParams...)
|
|
// 请求
|
|
request, err := c.request(ctx, c.newParamsWithType(_method, params))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return request.ResponseBody, err
|
|
}
|