entities

package
v0.0.0-...-12d4a3b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageRequest

type MessageRequest struct {
	Content   string             `json:"content" bson:"content"`
	RoomID    primitive.ObjectID `json:"room_id" bson:"room_id"`
	SenderID  primitive.ObjectID `json:"sender_id" bson:"sender_id"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at"`
}

type RoomRequest

type RoomRequest struct {
	Name      string    `json:"name" binding:"required" bson:"name" example:"warzone"`
	CreatedAt time.Time `json:"created_at" bson:"created_at" swaggerignore:"true"`
}

Jump to

Keyboard shortcuts

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