Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedRichMsgImageModel ¶
type FeedRichMsgModel ¶
type FeedRichMsgModel struct {
Msgtype string `json:"msgtype" form:"msgtype"` //rich text image video
MsgID string `json:"msgID" form:"msgID"`
MsgTime string `json:"msgTime" form:"msgTime"`
Text FeedRichMsgTextModel `json:"text" form:"text"`
Image FeedRichMsgImageModel `json:"image" form:"image"`
Video FeedRichMsgVideoModel `json:"video" form:"video"`
Link string `json:"link" form:"link"`
// (Optional)
FeedChatId int64 `json:"feed_chat_id,omitempty"`
}
func NewFeedRichMsg ¶
func NewFeedRichMsg(msgType, msgID, msgTime, textContent, textContentEx, textContentExPic, imagePicURL, imageFilePath string) FeedRichMsgModel
func NewFeedRichMsgV2 ¶
func NewFeedRichMsgV2(msgType, msgID, msgTime, textContent, textContentEx, textContentExPic, imagePicURL, imageFilePath, link string) FeedRichMsgModel
func NewFeedRichMsgV3 ¶
func NewFeedRichMsgV3(msgType, msgID, msgTime, textContent, textContentEx, textContentExPic, textContentMarkdown, imagePicURL, imageFilePath, imageCaption, videoFileURL, videoFilePath, videoCaption, link string) FeedRichMsgModel
func (*FeedRichMsgModel) ToString ¶
func (msg *FeedRichMsgModel) ToString() (res string)
type FeedRichMsgTextModel ¶
type FeedRichMsgTextModel struct {
Content string `json:"content" form:"content"`
ContentEx string `json:"contentEx" form:"contentEx"`
ContentExPic string `json:"contentExPic" form:"contentExPic"`
ContentMarkdown string `json:"contentMarkdown" form:"contentMarkdown"`
ContentHTML string `json:"contentHTML" form:"contentHTML"`
}
type FeedRichMsgVideoModel ¶
type PushMsgModel ¶
type PushMsgModel struct {
VideoURL string `json:"videoURL" form:"videoURL"` //视频地址
PicURL string `json:"picURL" form:"picURL"` //图片地址
Content string `json:"content" form:"content"` //文本内容
ServerChannel string `json:"serverChannel" form:"serverChannel"` //频道 token
ServerToken string `json:"serverToken" form:"serverToken"` //验证 token
ServerRouter string `json:"serverRouter" form:"serverRouter"` //openAPI URL
}
Click to show internal directories.
Click to hide internal directories.