entity

package
v0.0.0-...-40c2b8a Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.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 Event

type Event struct {
	ID              primitive.ObjectID `bson:"_id" json:"id"`
	Title           string             `json:"title"`
	Description     string             `json:"description"`
	Slots           int                `json:"slots"`
	RegisteredUsers []string           `json:"registeredUsers,omitempty"`
	Creator         string             `json:"creator"`
	Status          string             `json:"status"`
	EventDate       time.Time          `json:"eventDate"`
	CreatedAt       time.Time          `json:"createdAt"`
	UpdatedAt       time.Time          `json:"updatedAt"`
}

type EventStatus

type EventStatus string
const (
	Open   EventStatus = "open"
	Closed EventStatus = "closed"
)

type EventWithUserState

type EventWithUserState struct {
	Event
	IsRegistered bool `json:"isRegistered"`
	SlotsLeft    int  `json:"slotsLeft"`
}

Jump to

Keyboard shortcuts

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