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.
go-library/service/jd/api.go

15 lines
302 B

package jd
import (
"context"
)
func (c *Client) Post(ctx context.Context, _method string, notMustParams ...Params) ([]byte, error) {
// 参数
params := NewParamsWithType(_method, notMustParams...)
// 请求
request, err := c.request(ctx, params)
// 定义
return request.ResponseBody, err
}