model

package
v0.0.0-...-4f43567 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ID        primitive.ObjectID  `bson:"_id,omitempty" json:"id,omitempty"`
	UserIDs   []uuid.UUID         `bson:"users,omitempty" json:"users,omitempty"`
	Label     string              `bson:"label,omitempty" json:"label,omitempty"`
	CreatedAt primitive.Timestamp `bson:"create_at,omitempty" json:"create_at,omitempty"`
}

Chat is the model of Chat

type Message

type Message struct {
	ID        primitive.ObjectID  `bson:"_id,omitempty" json:"id,omitempty"`
	ChatID    primitive.ObjectID  `bson:"chat_id,omitempty" json:"chat_id,omitempty"`
	UserID    uuid.UUID           `bson:"user,omitempty" json:"user,omitempty"`
	Body      string              `bson:"body,omitempty" json:"body,omitempty"`
	CreatedAt primitive.Timestamp `bson:"create_at,omitempty" json:"create_at,omitempty"`
}

Message is the model of Message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL