Skip to content

rx_message里的rx是啥意思呀? #148

@shuaiyy

Description

@shuaiyy

rx是啥的缩写呢,这个消息只是企业微信APP的消息吗?

我想复用这个结构实现处理 群机器人Webhook的回调消息。

// RxMessage 一条接收到的消息
type RxMessage struct {
	// FromUserID 发送者的 UserID
	FromUserID string
	// SendTime 消息发送时间
	SendTime time.Time
	// MsgType 消息类型
	MsgType MessageType
	// AgentID 企业应用 ID,可在应用的设置页面查看
	AgentID int64
	// Event 事件类型 MsgType为event存在
	Event EventType
	// ChangeType 变更类型 Event为change_external_contact存在
	ChangeType ChangeType
	extras messageKind
// --------- 类型变更  ---------------
	// MsgID 消息 ID, int64 --> string
	MsgID string
// ---------- 新增字段 ---------------
	// WebhookUrl 是否是webhook推送的消息
	WebhookUrl string
	// ChatType 消息类型
	ChatType ChatType
	// ChatID 消息 ID
	ChatID string

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions