Documentation ¶
Index ¶
- type ShowcaseRoomService
- func (service ShowcaseRoomService) CreateShowcaseRoom(showcaseRoom models.ShowcaseRoom) error
- func (service ShowcaseRoomService) DeleteShowcaseRoom(id, authUserId string) error
- func (service ShowcaseRoomService) GetShowcaseRoomById(id, authUserId string) (*models.ShowcaseRoom, error)
- func (service ShowcaseRoomService) GetShowcaseRooms(showOnlyListed bool) ([]models.ShowcaseRoom, error)
- func (service ShowcaseRoomService) GetShowcaseRoomsByUser(userId string) ([]models.ShowcaseRoom, error)
- func (service ShowcaseRoomService) UpdateShowcaseRoom(id, authUserId string, showcaseRoom models.ShowcaseRoom) error
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
Click to show internal directories.
Click to hide internal directories.