request

package
v2.0.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	MediaID string `json:"media_id"`
}

type Image

type Image struct {
	MediaID string `json:"mediaid"` // "MEDIA_ID",
	PicURL  string `json:"pic_url"` // "http://p.qpic.cn/pic_wework/3474110808/7a6344sdadfwehe42060/0"
}

type ImageOfMessage

type ImageOfMessage struct {
	MsgType string `json:"msgtype"` // "image"
	Image   Image  `json:"image"`
}
type Link struct {
	Title  string `json:"title"`   //  "消息标题",
	PicURL string `json:"pic_url"` //  "https://example.pic.com/path",
	Desc   string `json:"desc"`    //  "消息描述",
	URL    string `json:"url"`     //  "https://example.link.com/path"
}

type LinkOfMessage

type LinkOfMessage struct {
	MsgType string `json:"msgtype"` // "link"
	Link    Link   `json:"link"`
}

type MiniProgram

type MiniProgram struct {
	Title      string `json:"title"`        //  "消息标题",
	PicMediaID string `json:"pic_media_id"` //  "MEDIA_ID",
	AppID      string `json:"appid"`        //  "wx8bd80126147dfAAA",
	Page       string `json:"page"`         //  "/path/index.html"
}

type MiniProgramOfMessage

type MiniProgramOfMessage struct {
	MsgType     string      `json:"msgtype"` // "miniprogram"
	MiniProgram MiniProgram `json:"miniprogram"`
}

type RequestAddMsgTemplate

type RequestAddMsgTemplate struct {
	ChatType       string           `json:"chat_type"`
	ExternalUserID []string         `json:"external_userid"`
	Sender         string           `json:"sender"`
	Text           TextOfMessage    `json:"text"`
	Attachments    []*power.HashMap `json:"attachments"`
}

type RequestGetGroupMsgListV2

type RequestGetGroupMsgListV2 struct {
	ChatType   string `json:"chat_type"`
	StartTime  int64  `json:"start_time"`
	EndTime    int64  `json:"end_time"`
	Creator    string `json:"creator"`
	FilterType int    `json:"filter_type"`
	Limit      int    `json:"limit"`
	Cursor     string `json:"cursor"`
}

type RequestSendWelcomeMsg

type RequestSendWelcomeMsg struct {
	WelcomeCode string           `json:"welcome_code"`
	Text        *TextOfMessage   `json:"text"`
	Attachments []*power.HashMap `json:"attachments"`
}

type TextOfMessage

type TextOfMessage struct {
	Content string `json:"content"` // "content",

}

type Video

type Video struct {
	MediaID string `json:"media_id"` // "MEDIA_ID",
}

type VideoOfMessage

type VideoOfMessage struct {
	MsgType string `json:"msgtype"` // "video"
	Video   Video  `json:"video"`
}

Jump to

Keyboard shortcuts

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