2025-10-11 16:27:35 +08:00
|
|
|
package wx_work
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
|
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
VERSION = "2025-10-10"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var HOST = requests.Host{
|
|
|
|
|
Default: "wx-work.api.gaore.com",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Client struct {
|
|
|
|
|
sdk.Client
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewClient() (client *Client, err error) {
|
|
|
|
|
client = new(Client)
|
|
|
|
|
err = client.Init()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetVipQrCode 获取大客户跟进人二维码
|
|
|
|
|
func (c *Client) GetVipQrCode(req *GetVipQrCodeReq) (resp *GetVipQrCodeResp, err error) {
|
|
|
|
|
resp = CreateGetVipQrCodeResp()
|
|
|
|
|
err = c.DoAction(req, resp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
2025-10-24 10:45:36 +08:00
|
|
|
|
|
|
|
|
// IsUserBind 判断账号是否绑定跟进人
|
|
|
|
|
func (c *Client) IsUserBind(req *IsUserBindReq) (resp *IsUserBindResp, err error) {
|
|
|
|
|
resp = CreateIsUserBindResp()
|
|
|
|
|
err = c.DoAction(req, resp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|