user

package
v2.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func (*Client) Accept

func (comp *Client) Accept(userID string) (*response2.ResponseWork, error)

二次验证 https://developer.work.weixin.qq.com/document/path/90203

func (*Client) BatchDelete

func (comp *Client) BatchDelete(userIDs []string) (*response2.ResponseWork, error)

批量删除成员 https://developer.work.weixin.qq.com/document/path/90335

func (*Client) Delete

func (comp *Client) Delete(userID string) (*response2.ResponseWork, error)

删除成员 https://developer.work.weixin.qq.com/document/path/90198

func (*Client) EmailToUserID added in v2.0.7

func (comp *Client) EmailToUserID(email string, emailType int) (*response.ResponseConvertToUserID, error)

邮箱获取userid https://developer.work.weixin.qq.com/document/path/95895

func (*Client) GetActiveStat

func (comp *Client) GetActiveStat(date string) (*response.ResponseUserActiveCount, error)

获取企业活跃成员数 https://developer.work.weixin.qq.com/document/path/92714

func (*Client) GetDepartmentUsers

func (comp *Client) GetDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetSimpleUserList, error)

获取部门的成员 https://developer.work.weixin.qq.com/document/path/90200

func (*Client) GetDetailedDepartmentUsers

func (comp *Client) GetDetailedDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetUserList, error)

获取部门成员详情 https://developer.work.weixin.qq.com/document/path/90201

func (*Client) GetJoinQrCode

func (comp *Client) GetJoinQrCode(sizeType int) (*response.ResponseJoinCode, error)

获取加入企业二维码 https://developer.work.weixin.qq.com/document/path/91714

func (*Client) ListID added in v2.0.7

func (comp *Client) ListID(cursor string, limit int) (*response.ResponseListID, error)

获取成员ID列表 https://developer.work.weixin.qq.com/document/path/96067

func (*Client) MobileToUserID

func (comp *Client) MobileToUserID(mobile string) (*response.ResponseMobileToUserID, error)

手机号获取userid https://developer.work.weixin.qq.com/document/path/95402

func (*Client) OpenIDToUserID

func (comp *Client) OpenIDToUserID(openID string) (*response.ResponseOpenIDToUserID, error)

openid转userid https://developer.work.weixin.qq.com/document/path/90202

func (*Client) UserIdToOpenID

func (comp *Client) UserIdToOpenID(userID string) (*response.ResponseUserIDToOpenID, error)

userid与openid互换 https://developer.work.weixin.qq.com/document/path/90202

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL