Documentation ¶
Index ¶
- type Client
- func (comp *Client) Accept(ctx context.Context, userID string) (*response2.ResponseWork, error)
- func (comp *Client) BatchDelete(ctx context.Context, userIDs []string) (*response2.ResponseWork, error)
- func (comp *Client) Create(ctx context.Context, data *response3.RequestUserDetail) (*response2.ResponseWork, error)
- func (comp *Client) Delete(ctx context.Context, userID string) (*response2.ResponseWork, error)
- func (comp *Client) EmailToUserID(ctx context.Context, email string, emailType int) (*response.ResponseConvertToUserID, error)
- func (comp *Client) Get(ctx context.Context, userID string) (*response.ResponseGetUserDetail, error)
- func (comp *Client) GetActiveStat(ctx context.Context, date string) (*response.ResponseUserActiveCount, error)
- func (comp *Client) GetDepartmentUsers(ctx context.Context, departmentID int, fetchChild int) (*response.ResponseGetSimpleUserList, error)
- func (comp *Client) GetDetailedDepartmentUsers(ctx context.Context, departmentID int, fetchChild int) (*response.ResponseGetUserList, error)
- func (comp *Client) GetJoinQrCode(ctx context.Context, sizeType int) (*response.ResponseJoinCode, error)
- func (comp *Client) Invite(ctx context.Context, params *power.HashMap) (*response.ResponseMobileToUserID, error)
- func (comp *Client) ListID(ctx context.Context, cursor string, limit int) (*response.ResponseListID, error)
- func (comp *Client) MobileToUserID(ctx context.Context, mobile string) (*response.ResponseMobileToUserID, error)
- func (comp *Client) OpenIDToUserID(ctx context.Context, openID string) (*response.ResponseOpenIDToUserID, error)
- func (comp *Client) Update(ctx context.Context, data *response3.RequestUserDetail) (*response2.ResponseWork, error)
- func (comp *Client) UserIdToOpenID(ctx context.Context, userID string) (*response.ResponseUserIDToOpenID, 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, *batchJobs.Client, *exportJobs.Client, *linkedCorp.Client, *tag.Client, error, )
func (*Client) Accept ¶
二次验证 https://developer.work.weixin.qq.com/document/path/90203
func (*Client) BatchDelete ¶
func (comp *Client) BatchDelete(ctx context.Context, userIDs []string) (*response2.ResponseWork, error)
批量删除成员 https://developer.work.weixin.qq.com/document/path/90335
func (*Client) Create ¶
func (comp *Client) Create(ctx context.Context, data *response3.RequestUserDetail) (*response2.ResponseWork, error)
创建成员 https://developer.work.weixin.qq.com/document/path/90195
func (*Client) Delete ¶
删除成员 https://developer.work.weixin.qq.com/document/path/90198
func (*Client) EmailToUserID ¶
func (comp *Client) EmailToUserID(ctx context.Context, email string, emailType int) (*response.ResponseConvertToUserID, error)
邮箱获取userid https://developer.work.weixin.qq.com/document/path/95895
func (*Client) Get ¶
func (comp *Client) Get(ctx context.Context, userID string) (*response.ResponseGetUserDetail, error)
获取成员 https://developer.work.weixin.qq.com/document/path/90196
func (*Client) GetActiveStat ¶
func (comp *Client) GetActiveStat(ctx context.Context, date string) (*response.ResponseUserActiveCount, error)
获取企业活跃成员数 https://developer.work.weixin.qq.com/document/path/92714
func (*Client) GetDepartmentUsers ¶
func (comp *Client) GetDepartmentUsers(ctx context.Context, departmentID int, fetchChild int) (*response.ResponseGetSimpleUserList, error)
获取部门的成员 https://developer.work.weixin.qq.com/document/path/90200
func (*Client) GetDetailedDepartmentUsers ¶
func (comp *Client) GetDetailedDepartmentUsers(ctx context.Context, departmentID int, fetchChild int) (*response.ResponseGetUserList, error)
获取部门成员详情 https://developer.work.weixin.qq.com/document/path/90201
func (*Client) GetJoinQrCode ¶
func (comp *Client) GetJoinQrCode(ctx context.Context, sizeType int) (*response.ResponseJoinCode, error)
获取加入企业二维码 https://developer.work.weixin.qq.com/document/path/91714
func (*Client) Invite ¶
func (comp *Client) Invite(ctx context.Context, params *power.HashMap) (*response.ResponseMobileToUserID, error)
邀请成员 https://developer.work.weixin.qq.com/document/path/90975
func (*Client) ListID ¶
func (comp *Client) ListID(ctx context.Context, cursor string, limit int) (*response.ResponseListID, error)
获取成员ID列表 https://developer.work.weixin.qq.com/document/path/96067
func (*Client) MobileToUserID ¶
func (comp *Client) MobileToUserID(ctx context.Context, mobile string) (*response.ResponseMobileToUserID, error)
手机号获取userid https://developer.work.weixin.qq.com/document/path/95402
func (*Client) OpenIDToUserID ¶
func (comp *Client) OpenIDToUserID(ctx context.Context, openID string) (*response.ResponseOpenIDToUserID, error)
openid转userid https://developer.work.weixin.qq.com/document/path/90202
func (*Client) Update ¶
func (comp *Client) Update(ctx context.Context, data *response3.RequestUserDetail) (*response2.ResponseWork, error)
更新成员 https://developer.work.weixin.qq.com/document/path/90197
func (*Client) UserIdToOpenID ¶
func (comp *Client) UserIdToOpenID(ctx context.Context, userID string) (*response.ResponseUserIDToOpenID, error)
userid与openid互换 https://developer.work.weixin.qq.com/document/path/90202