services

package
v0.0.0-...-176e0db Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShowcaseRoomService

type ShowcaseRoomService struct {
	Collection *mongo.Collection
}

func NewShowcaseRoomService

func NewShowcaseRoomService(db *mongo.Database) ShowcaseRoomService

func (ShowcaseRoomService) CreateShowcaseRoom

func (service ShowcaseRoomService) CreateShowcaseRoom(showcaseRoom models.ShowcaseRoom) error

func (ShowcaseRoomService) DeleteShowcaseRoom

func (service ShowcaseRoomService) DeleteShowcaseRoom(id, authUserId string) error

func (ShowcaseRoomService) GetShowcaseRoomById

func (service ShowcaseRoomService) GetShowcaseRoomById(id, authUserId string) (*models.ShowcaseRoom, error)

func (ShowcaseRoomService) GetShowcaseRooms

func (service ShowcaseRoomService) GetShowcaseRooms(showOnlyListed bool) ([]models.ShowcaseRoom, error)

func (ShowcaseRoomService) GetShowcaseRoomsByUser

func (service ShowcaseRoomService) GetShowcaseRoomsByUser(userId string) ([]models.ShowcaseRoom, error)

func (ShowcaseRoomService) UpdateShowcaseRoom

func (service ShowcaseRoomService) UpdateShowcaseRoom(id, authUserId string, showcaseRoom models.ShowcaseRoom) error

Jump to

Keyboard shortcuts

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