model

package
v0.0.0-...-e36e409 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEXT  = "text"
	IMAGE = "image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	ErrorCode int    `json:"errcode"`
	ErrorMsg  string `json:"errmsg"`
}

type Message

type Message struct {
	XMLName struct{} `xml:"xml""`

	MsgId        int
	ToUserName   string
	FromUserName string
	CreateTime   int64
	MsgType      string

	// text
	Content string

	// image
	PicUrl string
}

func NewText

func NewText(s string) Message

Jump to

Keyboard shortcuts

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