request

package
v3.0.45 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	MsgType     string       `json:"msgtype"`
	Image       *Image       `json:"image,omitempty"`
	Link        *Link        `json:"link,omitempty"`
	MiniProgram *MiniProgram `json:"miniprogram,omitempty"`
	Video       *Video       `json:"video,omitempty"`
	File        *File        `json:"file,omitempty"`
}

func (*Attachment) GetMsgType added in v3.0.34

func (attachment *Attachment) GetMsgType() string

type File

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

type FileOfMessage

type FileOfMessage struct {
	MsgType string `json:"msgtype"` // "file"
	File    *File  `json:"file"`
}

func (*FileOfMessage) GetMsgType

func (media *FileOfMessage) GetMsgType() string

type Image

type Image struct {
	MediaID string `json:"media_id"` // "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"`
}

func (*ImageOfMessage) GetMsgType

func (media *ImageOfMessage) GetMsgType() string
type Link struct {
	Title  string `json:"title"`  //  "消息标题",
	PicURL string `json:"picurl"` //  "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"`
}

func (*LinkOfMessage) GetMsgType

func (media *LinkOfMessage) GetMsgType() string

type MessageTemplateInterface

type MessageTemplateInterface interface {
	GetMsgType() string
}

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"`
}

func (*MiniProgramOfMessage) GetMsgType

func (media *MiniProgramOfMessage) GetMsgType() string

type RequestAddMsgTemplate

type RequestAddMsgTemplate struct {
	ChatType       string                     `json:"chat_type"`
	ExternalUserID []string                   `json:"external_userid"`
	Sender         string                     `json:"sender"`
	Text           *TextOfMessage             `json:"text"`
	Attachments    []MessageTemplateInterface `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 []MessageTemplateInterface `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"`
}

func (*VideoOfMessage) GetMsgType

func (media *VideoOfMessage) GetMsgType() string

Jump to

Keyboard shortcuts

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