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) Get(id int) (*response.ResponseDepartmentGet, 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://developer.work.weixin.qq.com/document/path/90205
func (*Client) Delete ¶
func (comp *Client) Delete(id int) (*response.ResponseDepartmentDelete, error)
删除部门 https://developer.work.weixin.qq.com/document/path/90207
func (*Client) Get ¶ added in v2.0.8
func (comp *Client) Get(id int) (*response.ResponseDepartmentGet, error)
获取单个部门详情 https://developer.work.weixin.qq.com/document/path/95351
func (*Client) List ¶
func (comp *Client) List(id int) (*response.ResponseDepartmentList, error)
获取部门列表 https://developer.work.weixin.qq.com/document/path/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://developer.work.weixin.qq.com/document/path/90206
Click to show internal directories.
Click to hide internal directories.