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