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