Пример #1
0
func NewClient(srv corp.AccessTokenServer, clt *http.Client) *Client {
	return (*Client)(corp.NewClient(srv, clt))
}
Пример #2
0
// 兼容保留, 建議實際項目全局維護一個 *corp.Client
func NewClient(srv corp.AccessTokenServer, clt *http.Client) Client {
	return Client{
		Client: corp.NewClient(srv, clt),
	}
}