feedmsg

package
v0.0.0-...-c2969df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedRichMsgImageModel

type FeedRichMsgImageModel struct {
	PicURL   string `json:"picURL"  form:"picURL"`
	FilePath string `json:"filePath"  form:"filePath"`
	// (Optional)
	Caption string `json:"caption,omitempty"`
}

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 FeedRichMsgVideoModel struct {
	FileURL  string `json:"fileURL"  form:"fileURL"`
	FilePath string `json:"filePath"  form:"filePath"`
	// (Optional)
	Caption string `json:"caption,omitempty"`
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL