model

package
v0.0.0-...-57f6101 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown     = 0
	Attachment  = 1
	Audio       = 2
	Contact     = 3
	ChatHistory = 4
	Emoticon    = 5
	Image       = 6
	Text        = 7
	Location    = 8
	MiniProgram = 9
	Money       = 10
	Recalled    = 11
	Url         = 12
	Video       = 13
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyword

type Keyword struct {
	Id       int64
	Word     string
	IsOpened int64
}

type MessagePayload

type MessagePayload struct {
	Text         string `json:"text,omitempty"`
	VoiceUrl     string `json:"voiceUrl,omitempty"`
	ImageUrl     string `json:"imageUrl,omitempty"`
	VideoUrl     string `json:"videoUrl,omitempty"`
	Title        string `json:"title,omitempty"`
	Description  string `json:"description,omitempty"`
	ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
	Url          string `json:"url,omitempty"`
	Name         string `json:"name,omitempty"`
	FileUrl      string `json:"fileUrl,omitempty"`
	Content      string `json:"content,omitempty"`
}

type Room

type Room struct {
	Id               int64
	RoomId           string
	RoomName         string
	RoomMemberNumber int64
	OpenMonitor      int64
}

type WechatMessage

type WechatMessage struct {
	MessageId   string         `json:"messageId"`
	ChatId      string         `json:"chatId"`
	RoomTopic   string         `json:"roomTopic,omitempty"`
	RoomId      string         `json:"roomId,omitempty"`
	ContactName string         `json:"contactName"`
	ContactId   string         `json:"contactId"`
	Payload     MessagePayload `json:"payload"`
	Type        int            `json:"type"`
	Timestamp   int            `json:"timestamp"`
}

func (*WechatMessage) GetContent

func (p *WechatMessage) GetContent() string

type WechatMessageData

type WechatMessageData struct {
	Data WechatMessage `json:"data"`
}

Jump to

Keyboard shortcuts

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