ldap-1-backend/public/client/wechat/client.go

16 lines
331 B
Go
Raw Normal View History

package wechat
import (
"github.com/eryajf/go-ldap-admin/config"
"github.com/wenerme/go-wecom/wecom"
)
func InitWeComClient() *wecom.Client {
client := wecom.NewClient(wecom.Conf{
CorpID: config.Conf.WeCom.CorpID,
AgentID: config.Conf.WeCom.AgentID,
CorpSecret: config.Conf.WeCom.CorpSecret,
})
return client
}