Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { SaveGuestEvent(*entities.Guest, uint) error FindGuestEvent(string, uint) (*entities.Guest, error) FindAllGuestEvent(uint) ([]entities.Guest, error) Delete(string) error RemoveGuestEvent(string, uint) error }
func NewPostgresRepo ¶
func NewPostgresRepo(db *gorm.DB) Repository
type Service ¶
type Service interface { SaveGuestEvent(*entities.Guest, uint) error GetGuestEvent(string, uint) (*entities.Guest, error) GetAllGuestEvent(uint) ([]entities.Guest, error) DeleteGuest(string) error RemoveGuestEvent(string, uint) error }
func NewGuestService ¶
func NewGuestService(repo Repository) Service
Click to show internal directories.
Click to hide internal directories.