Discover Packages
github.com/ghaoo/rboot
adapter
bearychat
package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Sep 7, 2021
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
type Attachment struct {
Title string `json:"title,omitempty"`
Text string `json:"text,omitempty"`
Color string `json:"color,omitempty"`
Images []map[string ]string `json:"images,omitempty"`
}
type Request struct {
Token string `json:"token,omitempty"`
TimeStamp int64 `json:"ts,omitempty"`
Text string `json:"text,omitempty"`
TriggerWord string `json:"trigger_word,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
ChannelName string `json:"channel_name,omitempty"`
UserName string `json:"user_name,omitempty"`
}
消息传入请求
type Res struct {
Code int `json:"code,omitempty"`
Request int `json:"request,omitempty"`
}
type Response struct {
Text string `json:"text"`
Notification string `json:"notification,omitempty"`
Markdown bool `json:"markdown,omitempty"`
Channel string `json:"channel,omitempty"`
User string `json:"user,omitempty"`
Attachments []Attachment `json:"attachments,omitempty"`
}
发送消息
Source Files
¶
Click to show internal directories.
Click to hide internal directories.