Documentation
¶
Index ¶
- func NewClient(addr, corpID, corpSecret string, agentID int) error
- func SendMarkdownMessage(markdown string, users []string, parties []string) error
- func SendTextMessage(content string, users []string, parties []string) error
- type Client
- func (c *Client) GetDepartments() (GetDepartmentsResponse, error)
- func (c *Client) GetSimpleUserList(department string) (GetSimpleUserListResponse, error)
- func (c *Client) SendMarkdownMessage(markdown string, users []string, parties []string) error
- func (c *Client) SendTextMessage(content string, users []string, parties []string) error
- type GetDepartmentsResponse
- type GetSimpleUserListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMarkdownMessage ¶ added in v1.0.28
发送markdown消息
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDepartments ¶
func (c *Client) GetDepartments() (GetDepartmentsResponse, error)
func (*Client) GetSimpleUserList ¶
func (c *Client) GetSimpleUserList(department string) (GetSimpleUserListResponse, error)
func (*Client) SendMarkdownMessage ¶ added in v1.0.28
type GetDepartmentsResponse ¶
type GetSimpleUserListResponse ¶
type GetSimpleUserListResponse struct {
Errcode int `json:"errcode"`
Errmsg string `json:"errmsg"`
Userlist []struct {
Userid string `json:"userid"`
Name string `json:"name"`
Department []int `json:"department"`
} `json:"userlist"`
}
func GetSimpleUserList ¶
func GetSimpleUserList(department string) (GetSimpleUserListResponse, error)
获取部门下用户信息
Click to show internal directories.
Click to hide internal directories.