Documentation ¶
Index ¶
- type Client
- func (comp *Client) Accept(userID string) (*response2.ResponseWork, error)
- func (comp *Client) BatchDelete(userIDs []string) (*response2.ResponseWork, error)
- func (comp *Client) Create(data *response3.RequestUserDetail) (*response2.ResponseWork, error)
- func (comp *Client) Delete(userID string) (*response2.ResponseWork, error)
- func (comp *Client) Get(userID string) (*response.ResponseGetUserDetail, error)
- func (comp *Client) GetActiveStat(date string) (*response.ResponseUserActiveCount, error)
- func (comp *Client) GetDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetSimpleUserList, error)
- func (comp *Client) GetDetailedDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetUserList, error)
- func (comp *Client) GetJoinQrCode(sizeType int) (*response.ResponseJoinCode, error)
- func (comp *Client) Invite(params *power.HashMap) (*response.ResponseMobileToUserID, error)
- func (comp *Client) MobileToUserID(mobile string) (*response.ResponseMobileToUserID, error)
- func (comp *Client) OpenIDToUserID(openID string) (*response.ResponseOpenIDToUserID, error)
- func (comp *Client) Update(data *response3.RequestUserDetail) (*response2.ResponseWork, error)
- func (comp *Client) UserIdToOpenid(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 {
*kernel.BaseClient
}
func NewClient ¶
func NewClient(app kernel.ApplicationInterface) *Client
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) ( *Client, *batchJobs.Client, *exportJobs.Client, *linkedCorp.Client, *tag.Client, )
func (*Client) Accept ¶
func (comp *Client) Accept(userID string) (*response2.ResponseWork, error)
二次验证 https://open.work.weixin.qq.com/api/doc/90000/90135/90203
func (*Client) BatchDelete ¶
func (comp *Client) BatchDelete(userIDs []string) (*response2.ResponseWork, error)
批量删除成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90198
func (*Client) Create ¶
func (comp *Client) Create(data *response3.RequestUserDetail) (*response2.ResponseWork, error)
创建成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90195
func (*Client) Delete ¶
func (comp *Client) Delete(userID string) (*response2.ResponseWork, error)
删除成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90198
func (*Client) Get ¶
func (comp *Client) Get(userID string) (*response.ResponseGetUserDetail, error)
获取成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90196
func (*Client) GetActiveStat ¶
func (comp *Client) GetActiveStat(date string) (*response.ResponseUserActiveCount, error)
获取企业活跃成员数 https://open.work.weixin.qq.com/api/doc/90000/90135/92714
func (*Client) GetDepartmentUsers ¶
func (comp *Client) GetDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetSimpleUserList, error)
获取部门的成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90200
func (*Client) GetDetailedDepartmentUsers ¶
func (comp *Client) GetDetailedDepartmentUsers(departmentID int, fetchChild int) (*response.ResponseGetUserList, error)
获取部门成员详情 https://open.work.weixin.qq.com/api/doc/90000/90135/90201
func (*Client) GetJoinQrCode ¶
func (comp *Client) GetJoinQrCode(sizeType int) (*response.ResponseJoinCode, error)
获取加入企业二维码 https://open.work.weixin.qq.com/api/doc/90000/90135/91714
func (*Client) Invite ¶
邀请成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90975
func (*Client) MobileToUserID ¶
func (comp *Client) MobileToUserID(mobile string) (*response.ResponseMobileToUserID, error)
userid与openid互换 https://open.work.weixin.qq.com/api/doc/90000/90135/90202
func (*Client) OpenIDToUserID ¶
func (comp *Client) OpenIDToUserID(openID string) (*response.ResponseOpenIDToUserID, error)
userid与openid互换 https://open.work.weixin.qq.com/api/doc/90000/90135/90202
func (*Client) Update ¶
func (comp *Client) Update(data *response3.RequestUserDetail) (*response2.ResponseWork, error)
更新成员 https://open.work.weixin.qq.com/api/doc/90000/90135/90197
func (*Client) UserIdToOpenid ¶
func (comp *Client) UserIdToOpenid(userID string) (*response.ResponseUserIDToOpenID, error)
userid与openid互换 https://open.work.weixin.qq.com/api/doc/90000/90135/90202