request

package
v2.0.1-beta31 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardExt

type CardExt struct {
	Code      string `json:"code"`
	Openid    string `json:"openid "`
	Timestamp string `json:"timestamp "`
	Signature string `json:"signature "`
}

type Filter

type Filter struct {
	IsToAll bool `json:"is_to_all"`
	TagID   int  `json:"tag_id"`
}

type Image

type Image struct {
	*MediaPreview

	Image MediaInfo `json:"image"`
}

type MPVideo

type MPVideo struct {
	*MediaPreview

	MPVideo MediaInfo `json:"mpvideo"`
}

type MediaInfo

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

type MediaPreview

type MediaPreview struct {
	MediaPreviewInterface

	ToUser   string `json:"touser"`
	ToWXName string `json:"towxname"`
	MsgType  string `json:"msgtype"`
}

---------------------------------------------

func (*MediaPreview) GetMsgType

func (media *MediaPreview) GetMsgType() string

func (*MediaPreview) GetToUser

func (media *MediaPreview) GetToUser() string

type MediaPreviewInterface

type MediaPreviewInterface interface {
	GetMsgType() string
	GetToUser() string
}

type NPNews

type NPNews struct {
	*MediaPreview

	MPNews *MediaInfo `json:"mpnews"`
}

type Reception

type Reception struct {
	ToUser []string `json:"touser"`
	Filter *Filter  `json:"filter"`
}

type Text

type Text struct {
	*MediaPreview

	Text MediaInfo `json:"text"`
}

type Voice

type Voice struct {
	*MediaPreview

	Voice MediaInfo `json:"voice"`
}

type WXCard

type WXCard struct {
	*MediaPreview

	WXCard *WXCardInfo `json:"wxcard"`
}

type WXCardInfo

type WXCardInfo struct {
	CardID  string   `json:"card_id"`
	CardExt *CardExt `json:"card_ext"`
}

Jump to

Keyboard shortcuts

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