45 lines
		
	
	
		
			849 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			849 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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-24"
 | 
						|
)
 | 
						|
 | 
						|
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
 | 
						|
}
 | 
						|
 | 
						|
// IsUserBind 判断账号是否绑定跟进人
 | 
						|
func (c *Client) IsUserBind(req *IsUserBindReq) (resp *IsUserBindResp, err error) {
 | 
						|
	resp = CreateIsUserBindResp()
 | 
						|
	err = c.DoAction(req, resp)
 | 
						|
	if err != nil {
 | 
						|
		return
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 |