Documentation ¶
Index ¶
- func NewUserRepository(db *mysql.DB) repository.UserRepositoryImpl
- func NewVenueRepository(db *mysql.DB) repository.VenueRepositoryImpl
- func SeedDays(db *mysql.DB) error
- func SeedInstrument(db *mysql.DB) error
- func SeedStudio(db *mysql.DB) error
- func SeedTime(db *mysql.DB) error
- func SeedVenue(db *mysql.DB) error
- type InstrumentRepository
- func (ir *InstrumentRepository) CreateRentInstrument(ctx context.Context, rentInstrument *entity.RentInstrument) (*entity.RentInstrument, error)
- func (ir *InstrumentRepository) GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error)
- func (ir *InstrumentRepository) GetByID(ctx context.Context, id uint) (*entity.Instrument, error)
- func (ir *InstrumentRepository) Update(ctx context.Context, instrument *entity.Instrument, id uint) (*entity.Instrument, error)
- type StudioRepository
- func (sr *StudioRepository) GetAll(ctx context.Context) ([]*entity.Studio, error)
- func (sr *StudioRepository) GetByID(ctx context.Context, id uint) (*entity.Studio, error)
- func (sr *StudioRepository) RentStudio(ctx context.Context, rentStudio *entity.RentStudio) (*entity.RentStudio, error)
- func (sr *StudioRepository) Update(ctx context.Context, studio *entity.Studio) (*entity.Studio, error)
- func (sr *StudioRepository) UpdateEndTime(ctx context.Context, studioID, timeID uint, status bool) error
- func (sr *StudioRepository) UpdateStartTime(ctx context.Context, studioID, timeID uint, status bool) error
- type UserRepository
- func (ur *UserRepository) Create(user *entity.User, ctx context.Context) (*entity.User, error)
- func (ur *UserRepository) FindByEmail(email string, ctx context.Context) (*entity.User, error)
- func (ur *UserRepository) FindByID(id uuid.UUID, ctx context.Context) (*entity.User, error)
- func (ur *UserRepository) Update(user *entity.User, ctx context.Context, id uuid.UUID) (*entity.User, error)
- type VenueRepository
- func (vr *VenueRepository) CreateApplyVenue(ctx context.Context, applyVenue *entity.ApplyVenue) (*entity.ApplyVenue, error)
- func (vr *VenueRepository) GetAll(ctx context.Context) ([]*entity.Venue, error)
- func (vr *VenueRepository) GetApplyVenueByUserID(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)
- func (vr *VenueRepository) GetByID(ctx context.Context, id uint) (*entity.Venue, error)
- func (vr *VenueRepository) GetVenueDayByID(ctx context.Context, venueDayID uint) (*entity.VenueDay, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepository ¶
func NewUserRepository(db *mysql.DB) repository.UserRepositoryImpl
func NewVenueRepository ¶
func NewVenueRepository(db *mysql.DB) repository.VenueRepositoryImpl
func SeedInstrument ¶
func SeedStudio ¶
Types ¶
type InstrumentRepository ¶
type InstrumentRepository struct {
// contains filtered or unexported fields
}
func NewInstrumentRepository ¶
func NewInstrumentRepository(db *mysql.DB) *InstrumentRepository
func (*InstrumentRepository) CreateRentInstrument ¶
func (ir *InstrumentRepository) CreateRentInstrument(ctx context.Context, rentInstrument *entity.RentInstrument) (*entity.RentInstrument, error)
func (*InstrumentRepository) GetAllInstrument ¶
func (ir *InstrumentRepository) GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error)
func (*InstrumentRepository) GetByID ¶
func (ir *InstrumentRepository) GetByID(ctx context.Context, id uint) (*entity.Instrument, error)
func (*InstrumentRepository) Update ¶
func (ir *InstrumentRepository) Update(ctx context.Context, instrument *entity.Instrument, id uint) (*entity.Instrument, error)
type StudioRepository ¶
type StudioRepository struct {
// contains filtered or unexported fields
}
func NewStudioRepository ¶
func NewStudioRepository(db *mysql.DB) *StudioRepository
func (*StudioRepository) RentStudio ¶
func (sr *StudioRepository) RentStudio(ctx context.Context, rentStudio *entity.RentStudio) (*entity.RentStudio, error)
func (*StudioRepository) UpdateEndTime ¶
func (*StudioRepository) UpdateStartTime ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) FindByEmail ¶
type VenueRepository ¶
type VenueRepository struct {
// contains filtered or unexported fields
}
func (*VenueRepository) CreateApplyVenue ¶
func (vr *VenueRepository) CreateApplyVenue(ctx context.Context, applyVenue *entity.ApplyVenue) (*entity.ApplyVenue, error)
func (*VenueRepository) GetApplyVenueByUserID ¶
func (vr *VenueRepository) GetApplyVenueByUserID(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)
func (*VenueRepository) GetVenueDayByID ¶
Click to show internal directories.
Click to hide internal directories.