21 lines
450 B
Go
21 lines
450 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Message represents a chat message (channel or DM).
|
|
type Message struct {
|
|
Base
|
|
|
|
ID string `json:"id"`
|
|
Timestamp time.Time `json:"ts"`
|
|
FromUserID string `json:"fromUserId"`
|
|
FromNick string `json:"from"`
|
|
Target string `json:"to"`
|
|
Type string `json:"type"`
|
|
Body string `json:"body"`
|
|
Meta string `json:"meta"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|