repository

package
v0.0.0-...-41aeae6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 SeedDays

func SeedDays(db *mysql.DB) error

func SeedInstrument

func SeedInstrument(db *mysql.DB) error

func SeedStudio

func SeedStudio(db *mysql.DB) error

func SeedTime

func SeedTime(db *mysql.DB) error

func SeedVenue

func SeedVenue(db *mysql.DB) error

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) GetAll

func (sr *StudioRepository) GetAll(ctx context.Context) ([]*entity.Studio, error)

func (*StudioRepository) GetByID

func (sr *StudioRepository) GetByID(ctx context.Context, id uint) (*entity.Studio, error)

func (*StudioRepository) RentStudio

func (sr *StudioRepository) RentStudio(ctx context.Context, rentStudio *entity.RentStudio) (*entity.RentStudio, error)

func (*StudioRepository) Update

func (sr *StudioRepository) Update(ctx context.Context, studio *entity.Studio) (*entity.Studio, error)

func (*StudioRepository) UpdateEndTime

func (sr *StudioRepository) UpdateEndTime(ctx context.Context, studioID, timeID uint, status bool) error

func (*StudioRepository) UpdateStartTime

func (sr *StudioRepository) UpdateStartTime(ctx context.Context, studioID, timeID uint, status bool) error

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func (*UserRepository) Create

func (ur *UserRepository) Create(user *entity.User, ctx context.Context) (*entity.User, error)

func (*UserRepository) FindByEmail

func (ur *UserRepository) FindByEmail(email string, ctx context.Context) (*entity.User, error)

func (*UserRepository) FindByID

func (ur *UserRepository) FindByID(id uuid.UUID, ctx context.Context) (*entity.User, error)

func (*UserRepository) Update

func (ur *UserRepository) Update(user *entity.User, ctx context.Context, id uuid.UUID) (*entity.User, error)

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) GetAll

func (vr *VenueRepository) GetAll(ctx context.Context) ([]*entity.Venue, error)

func (*VenueRepository) GetApplyVenueByUserID

func (vr *VenueRepository) GetApplyVenueByUserID(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)

func (*VenueRepository) GetByID

func (vr *VenueRepository) GetByID(ctx context.Context, id uint) (*entity.Venue, error)

func (*VenueRepository) GetVenueDayByID

func (vr *VenueRepository) GetVenueDayByID(ctx context.Context, venueDayID uint) (*entity.VenueDay, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL