Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstrumentRepositoryImpl ¶
type InstrumentRepositoryImpl interface { GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error) GetByID(ctx context.Context, id uint) (*entity.Instrument, error) Update(ctx context.Context, instrument *entity.Instrument, id uint) (*entity.Instrument, error) CreateRentInstrument(ctx context.Context, rentInstrument *entity.RentInstrument) (*entity.RentInstrument, error) }
type StudioRepositoryImpl ¶
type StudioRepositoryImpl interface { GetAll(ctx context.Context) ([]*entity.Studio, error) GetByID(ctx context.Context, id uint) (*entity.Studio, error) RentStudio(ctx context.Context, rentStudio *entity.RentStudio) (*entity.RentStudio, error) Update(ctx context.Context, studio *entity.Studio) (*entity.Studio, error) UpdateStartTime(ctx context.Context, studioID, timeID uint, status bool) error UpdateEndTime(ctx context.Context, studioID, timeID uint, status bool) error }
type UserRepositoryImpl ¶
type UserRepositoryImpl interface { Create(user *entity.User, ctx context.Context) (*entity.User, error) FindByID(id uuid.UUID, ctx context.Context) (*entity.User, error) FindByEmail(email string, ctx context.Context) (*entity.User, error) Update(user *entity.User, ctx context.Context, id uuid.UUID) (*entity.User, error) }
type VenueRepositoryImpl ¶
type VenueRepositoryImpl interface { GetAll(ctx context.Context) ([]*entity.Venue, error) GetByID(ctx context.Context, id uint) (*entity.Venue, error) GetVenueDayByID(ctx context.Context, venueDayID uint) (*entity.VenueDay, error) CreateApplyVenue(ctx context.Context, applyVenue *entity.ApplyVenue) (*entity.ApplyVenue, error) GetApplyVenueByUserID(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error) }
Click to show internal directories.
Click to hide internal directories.