douyin-go icon indicating copy to clipboard operation
douyin-go copied to clipboard

[建议] 能否将 Manager 中的 client 导出?

Open LinkinStars opened this issue 3 years ago • 0 comments
trafficstars

// Manager Manager结构体
type Manager struct {
	client      *client.Client
	Credentials *auth.Credentials
}

在实际使用中想使用 client 的 CallWithJson 方法,但是发现 client 没有导出,外部没办法使用。

具体原因是因为需要对接企业号相关接口,发现企业号相关接口当前 sdk 没有对接,故想自己调用实现。

所以建议将 client 导出,修改为:

// Manager Manager结构体
type Manager struct {
	Client      *client.Client
	Credentials *auth.Credentials
}

LinkinStars avatar Dec 13 '21 03:12 LinkinStars