mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-10 11:13:44 +08:00
v2.0
This commit is contained in:
24
server/internal/library/notify/feishu/sharechat.go
Normal file
24
server/internal/library/notify/feishu/sharechat.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user