mirror of https://gitee.com/godoos/godoos.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
589 B
24 lines
589 B
package message
|
|
|
|
type message struct {
|
|
// 消息类型
|
|
MsgType string `json:"msgtype" validate:"required,oneof=text image voice file link oa markdown action_card feedCard"`
|
|
}
|
|
|
|
// Message 消息结构
|
|
type Message interface {
|
|
// MessageType 消息类型
|
|
MessageType() string
|
|
|
|
String() string
|
|
}
|
|
|
|
// Response 发送消息返回
|
|
type Response struct {
|
|
Code int `json:"errcode"` // code
|
|
Msg string `json:"errmsg,omitempty"` // msg
|
|
Success bool `json:"success,omitempty"`
|
|
RequestId string `json:"request_id,omitempty"`
|
|
|
|
MessageId string `json:"messageId"`
|
|
}
|
|
|