message

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCard_

type ActionCard_ struct {
	Title          string `json:"title"`
	Text           string `json:"text"`
	BtnOrientation string `json:"btnOrientation"`
	SingleTitle    string `json:"singleTitle"`
	SingleURL      string `json:"singleUrl"`
	HideAvatar     string `json:"hideAvatar"`
	BtnS           []Btn_ `json:"btns"`
}

ActionCard_ 整体跳转actionCard

type At_

type At_ struct {
	AtMobiles []string `json:"atMobiles"`
	IsAtAll   bool     `json:"isAtAll"`
}

At_ At类型

type Btn_

type Btn_ struct {
	Title     string `json:"title"`
	ActionURL string `json:"actionURL"`
}

Btn_ Btn类型

type FeedCard_

type FeedCard_ struct {
	Links []Link_ `json:"links"`
}

FeedCard_ FeedCard类型

type Link_ struct {
	Text       string `json:"text"`
	Title      string `json:"title"`
	PicUrl     string `json:"picUrl"`
	MessageUrl string `json:"messageUrl"`
}

Link_ link类型

type Markdown_

type Markdown_ struct {
	Title string `json:"title"`
	Text  string `json:"text"`
	At    At_    `json:"at"`
}

Markdown_ markdown类型

type Message

type Message struct {
	MsgType    MsgType_    `json:"msgtype"`
	Text       Text_       `json:"text"`
	Link       Link_       `json:"link"`
	Markdown   Markdown_   `json:"markdown"`
	ActionCard ActionCard_ `json:"actionCard"`
	FeedCard   FeedCard_   `json:"feedCard"`
}

type MsgType_

type MsgType_ string
const (
	TextStr       MsgType_ = "text"
	LinkStr       MsgType_ = "link"
	MarkdownStr   MsgType_ = "markdown"
	ActionCardStr MsgType_ = "actionCard"
	FeedCardStr   MsgType_ = "feedCard"
)

type Text_

type Text_ struct {
	Content string `json:"content"`
	At      At_    `json:"at"`
}

Text_ text类型

Jump to

Keyboard shortcuts

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