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 (
|
2025-10-24 10:46:46 +08:00
|
|
|
VERSION = "2025-10-24"
|
2025-10-11 16:27:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2026-08-18 15:18:23 +08:00
|
|
|
|
|
|
|
|
// AddGameSignTag 给企微客户添加来源游戏大类标签
|
|
|
|
|
func (c *Client) AddGameSignTag(req *AddGameSignTagReq) (resp *AddGameSignTagResp, err error) {
|
|
|
|
|
resp = CreateAddGameSignTagResp()
|
|
|
|
|
err = c.DoAction(req, resp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AddGameIdTag 给企微客户添加来源子游戏标签
|
|
|
|
|
func (c *Client) AddGameIdTag(req *AddGameIdTagReq) (resp *AddGameIdTagResp, err error) {
|
|
|
|
|
resp = CreateAddGameIdTagResp()
|
|
|
|
|
err = c.DoAction(req, resp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AddUserRegGameTag 按玩家注册的子游戏/根游戏给企微客户打标签
|
|
|
|
|
func (c *Client) AddUserRegGameTag(req *AddUserRegGameTagReq) (resp *AddUserRegGameTagResp, err error) {
|
|
|
|
|
resp = CreateAddUserRegGameTagResp()
|
|
|
|
|
err = c.DoAction(req, resp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|