Documentation ¶
Index ¶
- type Client
- func (comp *Client) BatchGet(ctx context.Context, userID []string, cursor string, limit int) (*response.ResponseBatchGetByUser, error)
- func (comp *Client) FromServiceExternalUserID(ctx context.Context, agentID int, externalUserID string) (string, error)
- func (comp *Client) Get(ctx context.Context, externalUserID string, cursor string) (*weCom.ResponseGetExternalContact, error)
- func (comp *Client) GetFollowUsers(ctx context.Context) (*response.ResponseGetFollowUserList, error)
- func (comp *Client) GetNewExternalUserID(ctx context.Context, externalUserIDList []string) ([]response.NewExternalUserID, error)
- func (comp *Client) GetResignedTransferResult(ctx context.Context, handoverUserID string, takeoverUserID string, ...) (*response.ResponseGetTransferedCustomerList, error)
- func (comp *Client) GetUnassigned(ctx context.Context, pageID int, pageSize int) (*response.ResponseGetUnassignedList, error)
- func (comp *Client) List(ctx context.Context, userID string) (*response.ResponseGetList, error)
- func (comp *Client) Remark(ctx context.Context, data *request.RequestExternalContactRemark) (*response2.ResponseWork, error)
- func (comp *Client) Transfer(ctx context.Context, externalUserID []string, handoverUserID string, ...) (*response.ResponseGetTransferedCustomerList, error)
- func (comp *Client) TransferGroupChat(ctx context.Context, chatIDs []string, newOwner string) (*response3.ResponseGroupChatTransfer, error)
- func (comp *Client) UnionIDToExternalUserID(ctx context.Context, unionID string, openID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) ( *Client, *contactWay.Client, *customerStrategy.Client, *groupChat.Client, *groupWelcomeTemplate.Client, *messageTemplate.Client, *moment.Client, *momentStrategy.Client, *school.Client, *statistics.Client, *tag.Client, *transfer.Client, error, )
func (*Client) BatchGet ¶
func (comp *Client) BatchGet(ctx context.Context, userID []string, cursor string, limit int) (*response.ResponseBatchGetByUser, error)
批量获取客户详情. https://developer.work.weixin.qq.com/document/path/92994
func (*Client) FromServiceExternalUserID ¶ added in v3.2.0
func (comp *Client) FromServiceExternalUserID(ctx context.Context, agentID int, externalUserID string) (string, error)
external_userid转换 https://developer.work.weixin.qq.com/document/path/95884#external-userid%E8%BD%AC%E6%8D%A2
func (*Client) Get ¶
func (comp *Client) Get(ctx context.Context, externalUserID string, cursor string) (*weCom.ResponseGetExternalContact, error)
获取外部联系人详情. https://developer.work.weixin.qq.com/document/path/92114
func (*Client) GetFollowUsers ¶
func (comp *Client) GetFollowUsers(ctx context.Context) (*response.ResponseGetFollowUserList, error)
获取配置了客户联系功能的成员列表. https://developer.work.weixin.qq.com/document/path/92571
func (*Client) GetNewExternalUserID ¶ added in v3.2.0
func (comp *Client) GetNewExternalUserID(ctx context.Context, externalUserIDList []string) ([]response.NewExternalUserID, error)
转换客户external_userid https://developer.work.weixin.qq.com/document/path/97063#%E8%BD%AC%E6%8D%A2%E5%AE%A2%E6%88%B7external-userid
func (*Client) GetResignedTransferResult ¶
func (comp *Client) GetResignedTransferResult(ctx context.Context, handoverUserID string, takeoverUserID string, cursor string) (*response.ResponseGetTransferedCustomerList, error)
查询客户接替结果. https://developer.work.weixin.qq.com/document/path/94082
func (*Client) GetUnassigned ¶
func (comp *Client) GetUnassigned(ctx context.Context, pageID int, pageSize int) (*response.ResponseGetUnassignedList, error)
获取待分配的离职成员列表 https://developer.work.weixin.qq.com/document/path/92124
func (*Client) List ¶
获取外部联系人列表. https://developer.work.weixin.qq.com/document/path/92113
func (*Client) Remark ¶
func (comp *Client) Remark(ctx context.Context, data *request.RequestExternalContactRemark) (*response2.ResponseWork, error)
修改客户备注信息. https://developer.work.weixin.qq.com/document/path/92115
func (*Client) Transfer ¶
func (comp *Client) Transfer(ctx context.Context, externalUserID []string, handoverUserID string, takeoverUserID string) (*response.ResponseGetTransferedCustomerList, error)
分配离职成员的客户 https://developer.work.weixin.qq.com/document/path/94081
func (*Client) TransferGroupChat ¶
func (comp *Client) TransferGroupChat(ctx context.Context, chatIDs []string, newOwner string) (*response3.ResponseGroupChatTransfer, error)
分配离职成员的客户群 https://developer.work.weixin.qq.com/document/path/92127
func (*Client) UnionIDToExternalUserID ¶ added in v3.2.0
func (comp *Client) UnionIDToExternalUserID(ctx context.Context, unionID string, openID string) (string, error)
企业主体unionid转换为第三方external_userid https://developer.work.weixin.qq.com/document/path/93274