Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(params *request.RequestDepartmentUpsert) (*response.ResponseDepartmentCreate, error)
- func (comp *Client) Delete(id int) (*response.ResponseDepartmentDelete, error)
- func (comp *Client) List(id int) (*response.ResponseDepartmentList, error)
- func (comp *Client) SimpleList(id int) (*response.ResponseDepartmentIDList, error)
- func (comp *Client) Update(params *request.RequestDepartmentUpsert) (*response.ResponseDepartmentUpdate, 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 RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Create ¶
func (comp *Client) Create(params *request.RequestDepartmentUpsert) (*response.ResponseDepartmentCreate, error)
创建部门 https://open.work.weixin.qq.com/api/doc/90000/90135/90205
func (*Client) Delete ¶
func (comp *Client) Delete(id int) (*response.ResponseDepartmentDelete, error)
删除部门 https://open.work.weixin.qq.com/api/doc/90000/90135/90207
func (*Client) List ¶
func (comp *Client) List(id int) (*response.ResponseDepartmentList, error)
获取部门列表 https://open.work.weixin.qq.com/api/doc/90000/90135/90208
func (*Client) SimpleList ¶
func (comp *Client) SimpleList(id int) (*response.ResponseDepartmentIDList, error)
获取子部门ID列表 https://developer.work.weixin.qq.com/document/path/95350
func (*Client) Update ¶
func (comp *Client) Update(params *request.RequestDepartmentUpsert) (*response.ResponseDepartmentUpdate, error)
更新部门 https://open.work.weixin.qq.com/api/doc/90000/90135/90206
Click to show internal directories.
Click to hide internal directories.