message

package
v0.0.0-...-997a9c5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Poll

func Poll(get login.Gets, c chan MessageRcvd, quit chan string)

Poll 接受消息

func Send

func Send(groupCode int64, msgNum int64, msg string, get login.Gets)

Send 发送信息

Types

type MessageRcvd

type MessageRcvd struct {
	Errmsg string
	Result []struct {
		PollType string `json:"poll_type"`
		Value    struct {
			Content   []interface{} `json:"content"`
			FromUin   int64         `json:"from_uin"`
			GroupCode int64         `json:"group_code"`
			MsgID     int           `json:"msg_id"`
			MsgType   int           `json:"msg_type"`
			SendUin   int64         `json:"send_uin"`
			Time      int           `json:"time"`
			ToUin     int           `json:"to_uin"`
		} `json:"value"`
	} `json:"result"`
	Retcode int    `json:"retcode"`
	Retmsg  string `json:"retmsg"`
}

MessageRcvd 接受消息的JSON

Jump to

Keyboard shortcuts

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