pkg

package
v0.0.0-...-aaa2fb4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Title       string
	Description string
	PicUrl      string `json:"picUrl" yaml:"picUrl" xml:"PicUrl"`
	Url         string
}

type Articles

type Articles struct {
	// XMLName  xml.Name  `xml:"Articles"`
	Articles []Article `xml:"item"`
}

type Image

type Image struct {
	MediaID string `json:"mediaId" yaml:"mediaID" xml:"MediaId"`
}

type ImageResponseBody

type ImageResponseBody struct {
	ResponseBody `yaml:",inline"`
	XMLName      xml.Name `xml:"xml"`
	Image        Image
}

type NewsResponseBody

type NewsResponseBody struct {
	ResponseBody `yaml:",inline"`
	XMLName      xml.Name `xml:"xml"`
	ArticleCount int      `json:"articleCount" yaml:"articleCount" xml:"ArticleCount"`
	Articles     Articles `yaml:",inline"`
}

type RandomResponseBody

type RandomResponseBody struct {
	ResponseBody `yaml:",inline"`
	XMLName      xml.Name `xml:"xml"`
	Items        []string
	Content      string
}

RandomResponseBody is not a regular type from wechat system

type ResponseBody

type ResponseBody struct {
	Keyword string `json:"keyword" xml:"-"`

	MsgType      string `json:"msgType" yaml:"msgType" xml:"MsgType"`
	ToUserName   string
	FromUserName string
	CreateTime   time.Duration
}

type TextRequestBody

type TextRequestBody struct {
	XMLName      xml.Name `xml:"xml"`
	ToUserName   string
	FromUserName string
	CreateTime   time.Duration
	MsgType      string
	Content      string
	MsgId        int
	Event        string
}

type TextResponseBody

type TextResponseBody struct {
	ResponseBody `yaml:",inline"`
	XMLName      xml.Name `xml:"xml"`
	Content      string
}

Directories

Path Synopsis
mock
article
Package mock_article is a generated GoMock package.
Package mock_article is a generated GoMock package.

Jump to

Keyboard shortcuts

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