service

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVenueService

func NewVenueService(VenueRepository repository.VenueRepositoryImpl) service.VenueServiceImpl

Types

type InstrumentService

type InstrumentService struct {
	InstrumentRepository repository.InstrumentRepositoryImpl
}

func NewInstrumentService

func NewInstrumentService(instrumentRepository repository.InstrumentRepositoryImpl) *InstrumentService

func (*InstrumentService) GetAllInstrument

func (is *InstrumentService) GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error)

func (*InstrumentService) GetByID

func (is *InstrumentService) GetByID(ctx context.Context, id uint) (*entity.Instrument, error)

func (*InstrumentService) GetCity

func (is *InstrumentService) GetCity(ctx context.Context, idProvince, idCity string) (*rajaongkir.RajaOngkirResponseCity, error)

func (*InstrumentService) GetCost

func (*InstrumentService) GetProvince

func (is *InstrumentService) GetProvince(ctx context.Context, idProvince string) (*rajaongkir.RajaOngkirResponseProvince, error)

func (*InstrumentService) RentInstrument

func (is *InstrumentService) RentInstrument(ctx context.Context, id uint, req *entity.RentInstrument, idUser uuid.UUID) (*entity.RentInstrument, error)

type StudioService

type StudioService struct {
	StudioRepository repository.StudioRepositoryImpl
}

func NewStudioService

func NewStudioService(studioRepository repository.StudioRepositoryImpl) *StudioService

func (*StudioService) GetAll

func (ss *StudioService) GetAll(ctx context.Context) ([]*entity.Studio, error)

func (*StudioService) GetByID

func (ss *StudioService) GetByID(ctx context.Context, id uint) (*entity.Studio, error)

func (*StudioService) RentStudio

func (ss *StudioService) RentStudio(ctx context.Context, studioID uint, userID uuid.UUID, req *entity.RentStudio) (*entity.RentStudio, error)

type UserService

type UserService struct {
	Repository repository.UserRepositoryImpl
}

func (*UserService) Login

func (*UserService) Profile

func (us *UserService) Profile(ctx context.Context, id uuid.UUID) (*entity.User, error)

func (*UserService) Register

func (us *UserService) Register(req *entity.UserRegister, ctx context.Context) (*entity.User, error)

func (*UserService) UpdateUser

func (us *UserService) UpdateUser(req *entity.UserUpdate, ctx context.Context, id uuid.UUID) (*entity.User, error)

func (*UserService) UploadPhoto

func (us *UserService) UploadPhoto(file *multipart.FileHeader, id uuid.UUID, ctx context.Context) (*entity.User, error)

func (*UserService) VerifyAccount

func (us *UserService) VerifyAccount(id uuid.UUID, ctx context.Context) (*entity.User, error)

type VenueService

type VenueService struct {
	VenueRepository repository.VenueRepositoryImpl
}

func (*VenueService) GetAllVenue

func (vs *VenueService) GetAllVenue(ctx context.Context) ([]*entity.Venue, error)

func (*VenueService) GetListApplyVenue

func (vs *VenueService) GetListApplyVenue(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)

func (*VenueService) GetVenueByID

func (vs *VenueService) GetVenueByID(ctx context.Context, id uint) (*entity.Venue, error)

func (*VenueService) RentVenue

func (vs *VenueService) RentVenue(ctx context.Context, userID uuid.UUID, venueDayID uint) (*entity.ApplyVenue, error)

Jump to

Keyboard shortcuts

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