feat: initial commit
This commit is contained in:
29
internal/domain/entity/message.go
Normal file
29
internal/domain/entity/message.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
type MessageType string
|
||||
|
||||
const (
|
||||
MessageTypeText MessageType = "text"
|
||||
MessageTypeVoice MessageType = "voice"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
MessageID int64
|
||||
ChatID int64
|
||||
UserID int64
|
||||
Username string
|
||||
Type MessageType
|
||||
Text string
|
||||
VoiceFileID string
|
||||
Timestamp time.Time
|
||||
Metadata map[string]any
|
||||
}
|
||||
|
||||
type VoiceMessage struct {
|
||||
FileID string
|
||||
Duration int
|
||||
MimeType string
|
||||
FileSize int
|
||||
}
|
||||
Reference in New Issue
Block a user