Documentation ¶
Index ¶
- func NewUserService(ur repository.UserRepositoryImpl) service.UserServiceImpl
- func NewVenueService(VenueRepository repository.VenueRepositoryImpl) service.VenueServiceImpl
- type InstrumentService
- func (is *InstrumentService) GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error)
- func (is *InstrumentService) GetByID(ctx context.Context, id uint) (*entity.Instrument, error)
- func (is *InstrumentService) GetCity(ctx context.Context, idProvince, idCity string) (*rajaongkir.RajaOngkirResponseCity, error)
- func (is *InstrumentService) GetCost(ctx context.Context, id uint, req *entity.ShippingCost) ([]*rajaongkir.RajaOngkirResponseCost, error)
- func (is *InstrumentService) GetProvince(ctx context.Context, idProvince string) (*rajaongkir.RajaOngkirResponseProvince, error)
- func (is *InstrumentService) RentInstrument(ctx context.Context, id uint, req *entity.RentInstrument, idUser uuid.UUID) (*entity.RentInstrument, error)
- type StudioService
- func (ss *StudioService) GetAll(ctx context.Context) ([]*entity.Studio, error)
- func (ss *StudioService) GetByID(ctx context.Context, id uint) (*entity.Studio, error)
- func (ss *StudioService) RentStudio(ctx context.Context, studioID uint, userID uuid.UUID, req *entity.RentStudio) (*entity.RentStudio, error)
- type UserService
- func (us *UserService) Login(req *entity.UserLogin, ctx context.Context) (*entity.ResponseLogin, error)
- func (us *UserService) Profile(ctx context.Context, id uuid.UUID) (*entity.User, error)
- func (us *UserService) Register(req *entity.UserRegister, ctx context.Context) (*entity.User, error)
- func (us *UserService) UpdateUser(req *entity.UserUpdate, ctx context.Context, id uuid.UUID) (*entity.User, error)
- func (us *UserService) UploadPhoto(file *multipart.FileHeader, id uuid.UUID, ctx context.Context) (*entity.User, error)
- func (us *UserService) VerifyAccount(id uuid.UUID, ctx context.Context) (*entity.User, error)
- type VenueService
- func (vs *VenueService) GetAllVenue(ctx context.Context) ([]*entity.Venue, error)
- func (vs *VenueService) GetListApplyVenue(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)
- func (vs *VenueService) GetVenueByID(ctx context.Context, id uint) (*entity.Venue, error)
- func (vs *VenueService) RentVenue(ctx context.Context, userID uuid.UUID, venueDayID uint) (*entity.ApplyVenue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserService ¶
func NewUserService(ur repository.UserRepositoryImpl) service.UserServiceImpl
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 (is *InstrumentService) GetCost(ctx context.Context, id uint, req *entity.ShippingCost) ([]*rajaongkir.RajaOngkirResponseCost, error)
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) 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 (us *UserService) Login(req *entity.UserLogin, ctx context.Context) (*entity.ResponseLogin, 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 ¶
type VenueService ¶
type VenueService struct {
VenueRepository repository.VenueRepositoryImpl
}
func (*VenueService) GetAllVenue ¶
func (*VenueService) GetListApplyVenue ¶
func (vs *VenueService) GetListApplyVenue(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)
func (*VenueService) GetVenueByID ¶
Click to show internal directories.
Click to hide internal directories.