model

package
v0.0.0-...-eb2022f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEventListingInput

type CreateEventListingInput struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	OrganizerID string `json:"organizerId"`
	URL         string `json:"url"`
}

type CreateUserInput

type CreateUserInput struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Role     string `json:"role"`
}

type DeleteEventResponse

type DeleteEventResponse struct {
	DeleteEventID string `json:"deleteEventId"`
}

type DeleteUserResponse

type DeleteUserResponse struct {
	DeleteUserID string `json:"deleteUserId"`
}

type EventListing

type EventListing struct {
	ID          string `json:"_id" bson:"_id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Organizer   *User  `json:"organizer"`
	URL         string `json:"url"`
}

type UpdateEventListingInput

type UpdateEventListingInput struct {
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	URL         *string `json:"url,omitempty"`
}

type UpdateUserInput

type UpdateUserInput struct {
	Name     *string `json:"name,omitempty"`
	Email    *string `json:"email,omitempty"`
	Password *string `json:"password,omitempty"`
	Role     *string `json:"role,omitempty"`
}

type User

type User struct {
	ID       string `json:"_id" bson:"_id"`
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Role     string `json:"role"`
}

Jump to

Keyboard shortcuts

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