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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentServiceImpl

type InstrumentServiceImpl interface {
	GetAllInstrument(ctx context.Context) ([]*entity.Instrument, error)
	GetByID(ctx context.Context, id uint) (*entity.Instrument, error)
	RentInstrument(ctx context.Context, id uint, req *entity.RentInstrument, idUser uuid.UUID) (*entity.RentInstrument, error)
	GetProvince(ctx context.Context, idProvince string) (*rajaongkir.RajaOngkirResponseProvince, error)
	GetCity(ctx context.Context, idProvince, idCity string) (*rajaongkir.RajaOngkirResponseCity, error)
	GetCost(ctx context.Context, id uint, req *entity.ShippingCost) ([]*rajaongkir.RajaOngkirResponseCost, error)
}

type StudioServiceImpl

type StudioServiceImpl interface {
	GetAll(ctx context.Context) ([]*entity.Studio, error)
	GetByID(ctx context.Context, id uint) (*entity.Studio, error)
	RentStudio(ctx context.Context, studioID uint, userID uuid.UUID, req *entity.RentStudio) (*entity.RentStudio, error)
}

type UserServiceImpl

type UserServiceImpl interface {
	Register(req *entity.UserRegister, ctx context.Context) (*entity.User, error)
	VerifyAccount(id uuid.UUID, ctx context.Context) (*entity.User, error)
	Login(req *entity.UserLogin, ctx context.Context) (*entity.ResponseLogin, error)
	UploadPhoto(file *multipart.FileHeader, id uuid.UUID, ctx context.Context) (*entity.User, error)
	UpdateUser(req *entity.UserUpdate, ctx context.Context, id uuid.UUID) (*entity.User, error)
	Profile(ctx context.Context, id uuid.UUID) (*entity.User, error)
}

type VenueServiceImpl

type VenueServiceImpl interface {
	GetAllVenue(ctx context.Context) ([]*entity.Venue, error)
	GetVenueByID(ctx context.Context, id uint) (*entity.Venue, error)
	RentVenue(ctx context.Context, userID uuid.UUID, venueDayID uint) (*entity.ApplyVenue, error)
	GetListApplyVenue(ctx context.Context, userID uuid.UUID) ([]*entity.ApplyVenue, error)
}

Jump to

Keyboard shortcuts

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