package command // Req 请求结构体 type Req struct { Command string `json:"command"` Content string `json:"content"` RawMessage string `json:"raw_message"` UserID string `json:"user_id"` GroupID string `json:"group_id"` MessageID string `json:"message_id"` } // Resp 响应结构体 type Resp struct { Reply string `json:"reply,omitempty"` Messages []Message `json:"messages,omitempty"` UserID string `json:"user_id,omitempty"` } // Message 消息结构体 type Message struct { Type MsgType `json:"type"` Msg string `json:"msg,omitempty"` URL string `json:"url,omitempty"` } // MsgType 消息类型 type MsgType string const ( MsgTypeText MsgType = "text" MsgTypeImage MsgType = "image" MsgTypeFile MsgType = "file" MsgTypeVideo MsgType = "video" )