Replying

This commit is contained in:
2024-03-31 21:19:51 +08:00
parent b49e57337a
commit 3956547619
3 changed files with 36 additions and 16 deletions

View File

@ -7,7 +7,6 @@ type MessageType = uint8
const (
MessageTypeText = MessageType(iota)
MessageTypeAudio
MessageTypeFile
)
type Message struct {
@ -19,6 +18,8 @@ type Message struct {
Attachments []Attachment `json:"attachments"`
Channel Channel `json:"channel"`
Sender ChannelMember `json:"sender"`
ReplyID *uint `json:"reply_id"`
ReplyTo *Message `json:"reply_to" gorm:"foreignKey:ReplyID"`
ChannelID uint `json:"channel_id"`
SenderID uint `json:"sender_id"`
}