package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Jun 25, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func MsgSend(orgid, userids *string, content interface{})
1.根据 access_token 和 user_id 发送消息
func MsgSendObject(orgid *string, payload interface{})
根据实用方式改的接口,传payload
type MessageNews struct {
MsgType string `json:"msgType"`
UserIds string `json:"userIds"`
Msg struct {
NewsList News `json:"newsList"`
} `json:"msg"`
}
type MessageText struct {
MsgType string `json:"msgType"`
UserIds string `json:"userIds"`
Msg struct {
Content string `json:"content"`
} `json:"msg"`
}
type News struct {
Title string `json:"title"`
Description string `json:"description"`
PicURL string `json:"picUrl"`
URL string `json:"url"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.