service

package
v0.0.0-...-6eb8140 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwnerService

type OwnerService interface {
	RegisterBusinessOwner(c context.Context, data dto.OwnerRegistrationReq) (res interface{}, err *helper.ErrorStruct)
	GetRatings(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
	RegisterNewDriver(c context.Context, data dto.DriverRegistrationReq) (res interface{}, err *helper.ErrorStruct)
	GetDrivers(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
	GetOwnerStatusVerified(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)
}

func NewOwnerService

func NewOwnerService(OwnerRepo repository.OwnerRepo) OwnerService

type OwnerServiceImpl

type OwnerServiceImpl struct {
	OwnerRepo repository.OwnerRepo
}

func (*OwnerServiceImpl) GetDrivers

func (a *OwnerServiceImpl) GetDrivers(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)

func (*OwnerServiceImpl) GetOwnerStatusVerified

func (a *OwnerServiceImpl) GetOwnerStatusVerified(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)

func (*OwnerServiceImpl) GetRatings

func (a *OwnerServiceImpl) GetRatings(c context.Context, ownerId string) (res interface{}, err *helper.ErrorStruct)

func (*OwnerServiceImpl) RegisterBusinessOwner

func (a *OwnerServiceImpl) RegisterBusinessOwner(c context.Context, data dto.OwnerRegistrationReq) (res interface{}, err *helper.ErrorStruct)

func (*OwnerServiceImpl) RegisterNewDriver

func (a *OwnerServiceImpl) RegisterNewDriver(c context.Context, data dto.DriverRegistrationReq) (res interface{}, err *helper.ErrorStruct)

Jump to

Keyboard shortcuts

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