mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-03 02:54:41 +08:00
25 lines
520 B
Go
25 lines
520 B
Go
package feishu
|
|
|
|
type ShareChatMessage struct {
|
|
MsgType MsgType `json:"msg_type"`
|
|
Content ShareChatContent `json:"content"`
|
|
}
|
|
|
|
type ShareChatContent struct {
|
|
ShareChatID string `json:"share_chat_id"`
|
|
}
|
|
|
|
func (m *ShareChatMessage) Body() map[string]interface{} {
|
|
m.MsgType = MsgTypeShareChat
|
|
return structToMap(m)
|
|
}
|
|
|
|
func NewShareChatMessage() *ShareChatMessage {
|
|
return &ShareChatMessage{}
|
|
}
|
|
|
|
func (m *ShareChatMessage) SetShareChatID(ID string) *ShareChatMessage {
|
|
m.Content.ShareChatID = ID
|
|
return m
|
|
}
|