WeChat.Work.Contacts.Department (wechat v0.4.0)
通讯录管理-部门管理
Link to this section Summary
Link to this section Types
Link to this type
department_id()
Specs
department_id() :: integer()
每个部门都有唯一的id - 官方文档
在管理后台->“通讯录”->“组织架构”->点击某个部门右边的小圆点可以看到
Link to this section Functions
Link to this function
list(client)
Specs
list(WeChat.Work.client()) :: WeChat.response()
获取部门列表 - 官方文档
获取指定部门及其下的子部门(以及及子部门的子部门等等,递归)。
如果不填 department_id
,默认获取全量组织架构
Link to this function
list(client, department_id)
Specs
list(WeChat.Work.client(), department_id()) :: WeChat.response()