Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(ctx context.Context, params *request.RequestDepartmentInsert) (*response.ResponseDepartmentCreate, error)
- func (comp *Client) Delete(ctx context.Context, id int) (*response.ResponseDepartmentDelete, error)
- func (comp *Client) Get(ctx context.Context, id int) (*response.ResponseDepartmentGet, error)
- func (comp *Client) List(ctx context.Context, id int) (*response.ResponseDepartmentList, error)
- func (comp *Client) SimpleList(ctx context.Context, id int) (*response.ResponseDepartmentIDList, error)
- func (comp *Client) Update(ctx context.Context, params *request.RequestDepartmentUpdate) (*response.ResponseDepartmentUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Create ¶
func (comp *Client) Create(ctx context.Context, params *request.RequestDepartmentInsert) (*response.ResponseDepartmentCreate, error)
创建部门 https://developer.work.weixin.qq.com/document/path/90205
func (*Client) Delete ¶
删除部门 https://developer.work.weixin.qq.com/document/path/90207
func (*Client) Get ¶
获取单个部门详情 https://developer.work.weixin.qq.com/document/path/95351
func (*Client) List ¶
获取部门列表 https://developer.work.weixin.qq.com/document/path/90208
func (*Client) SimpleList ¶
func (comp *Client) SimpleList(ctx context.Context, id int) (*response.ResponseDepartmentIDList, error)
获取子部门ID列表 https://developer.work.weixin.qq.com/document/path/95350
func (*Client) Update ¶
func (comp *Client) Update(ctx context.Context, params *request.RequestDepartmentUpdate) (*response.ResponseDepartmentUpdate, error)
更新部门 https://developer.work.weixin.qq.com/document/path/90206
Click to show internal directories.
Click to hide internal directories.